nus-cs2103-AY2122S2 / forum

14 stars 1 forks source link

Practice Exam Part 1 Q16 #305

Closed snoidetx closed 2 years ago

snoidetx commented 2 years ago

Isn't line 4 also wrong because the letter 's' of "string" should be capitalised according to Java coding standard?

Screenshot 2022-05-03 at 1 48 40 PM

Also, I chose line 6 and 8 as well because I do not think abcd is a meaningful name. Are we supposed to ignore such things in the exam?

damithc commented 2 years ago

Good catch @snoidetx Corrected it just now. image

snoidetx commented 2 years ago

Thank you prof! How about my second concern about the naming of abcd? Why are we not supposed to concern about it in this scenario? 🤔

damithc commented 2 years ago

Thank you prof! How about my second concern about the naming of abcd? Why are we not supposed to concern about it in this scenario? 🤔

@snoidetx This question is about coding standard violations, not code quality in general.

snoidetx commented 2 years ago

Thank you prof very much! I get it!