nus-cs2103-AY2122S2 / forum

13 stars 1 forks source link

Clarification on answer: Practice Quiz 1 #295

Closed kavxya closed 2 years ago

kavxya commented 2 years ago
Screenshot 2022-04-29 at 2 34 54 PM

Hi! Can anyone help to confirm if the correct answer is magic numbers and SLAP as written on the comments or SLAP and coupling as seen on the quiz!

Thank you!

domlimm commented 2 years ago

Hello @kavxya, I don't think SLAP should be the answer.

SLAP is encouraged, so not to be avoided/minimised. I believe!

Anyone else please feel free to chime in!

image

ckcherry23 commented 2 years ago

Hi @kavxya! I think SLAP and magic numbers should be the right answer. I believe coupling is more of a design concept and it also comes under Design Fundamentals in the textbook.

Screenshot 2022-04-29 at 2 46 14 PM
damithc commented 2 years ago

@kavxya don't confuse the main question with the justification. In this particular case, they are two different questions altogether.

kavxya commented 2 years ago

Thank you for the clarification!

domlimm commented 2 years ago

@damithc hello prof, I just attempted this question and got it wrong too. Does that mean in the quiz we need to answer the question, X, in the Justification: X instead of answering based on the main question?

EDIT: Seems like it!

damithc commented 2 years ago

(main question) to be avoided/minimized: magic numbers, coupling -- select these options (justification) more related to coding: magic numbers, SLAP -- write these in the text box