Friday, August 31, 2007

7. CodeRulerReview

For this review I looked at Paul Ching's CodeRuler implementation.


Discrepancies noted from Elements of Java and in-class format:

FileLine(s)ViolationComments
MyRuler.java1ICS-SE-Java-2Do not use * in import statements
MyRuler.java112, 113, 114EJS-25Use lowercase for the first word and capitalize only the first letter of each subsequent word that appears in a variable name.
MyRuler.java77, 94, 95, *EJS-8Do not use tabs.
MyRuler.java132EJS-66Null statement - maybe this block should've just been omitted?
MyRuler.java149, 164, 184, *ICS-SE-Eclipse-2Right curly brace should be on same line as if statement


Other notes: I think the code looks pretty presentable aside from the notes above, or at least better than my code. Strategy for knights is acceptable; peasants could use improvement, but strategy is probably OK since it did fine against the bots.

One more note, is only the first castle commanded to produce knights? I'm not sure what the other castles would produce.

Other than this, it looks fine to me.

No comments: