XML

kent logo

CO538 Anonymous Questions and Answers Keyword Index

This page provides a keyword index to questions and answers. Clicking on a keyword will take you to a page containing all questions and answers for that keyword, grouped by year.

To submit a question, use the anonymous questions page. You may find the keyword index and/or top-level index useful for locating past questions and answers.

Keyword reference for duplicating-code

2001

Question 29 (2001):

Do we lose marks if our code has repeating sections - that is if it works according to specification can we still get full marks even if the code is very long?

Answer 29:

Yes -- I'm afraid you will lose marks for this. Source code must not only be correct, it must be easy to see that it is correct (and, hence, maintain). This means that elegance, neatness and simplicity matters. Code that needlessly repeats the same lines with only trivial differences (e.g. in some magic numbers) is none of the above.

Keywords: duplicating-code

Valid CSS!

Valid XHTML 1.0!

This work is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License.
Last modified Mon May 20 13:50:27 2013
This document is maintained by Fred Barnes, to whom any comments and corrections should be addressed.