Style checklist

Note: Style is hard. If you are struggling with it, I empathize with you; it's something I struggled with a lot and struggle with again every time I have to work on a project in a new language. I wish I could give you a list saying "this is right and this is wrong," but style is often subjective (although it certainly has objective components) and what may work well in one situation may not work well in another. It really takes a lot of practice to get a good feel for what is good style; sometimes you have to encounter abysmal code in order to understand why something that appears good at first is actually not a good idea. While I obviously cannot pregrade your assignment, if you have specific questions, I am always more than happy to help.

Also note: Don't freak out about style for assignment 1. We won't necessarily be grading easier than normal, but we also understand that you may not have heard much about what makes "good" style yet, and ultimately the assignment 1 style grade will be a very small portion of your final grade. We will do our best to give detailed style feedback on your first assignment, which will help a lot throughout the rest of the quarter.

Decomposition

Commenting

Naming

Spacing

For assignment2: Constants and "magic numbers"