About this guide

This guide is an (informal) Code Quality guide for CSE 154. The Code quality is vital to any software project as a way to ensure its maintainability. Getting into good code writing habits early important, and thus we expect you to follow these rules when writing code for CSE 154.

Note: Code Quality and Style are often used interchangably, but there really is a subtle difference. Teams in industry strive for code quality, but every organization seems to have it's own "style" guide. These pages contain the CSE 154 "Style Guide" as you are now a member of the CSE 154 programming "team".

Disclaimer: Please note this guide may not be fully complete. We've done our best to be as comprehensive as possible, but it's always possible we may have missed a rule somewhere.

Table of Contents

Why care about style?

We care about writing clean code and following conventions because it makes collaborating easier, reduces the chances of bugs, and because it prepares you for industry, where you are expected to produce clean code.

Understanding style

Code Quality or "style" is not about memorizing a list of rules. Instead, focus on understanding the core principles of clean code: focus on writing code that is readable, concise, modular, and efficient. If you understand these principles, you can independently predict and derive nearly every rule in this guide.

Changelog

  • April 6, 2018
    • Changed the focus to Code Quality.
  • October 2, 2017
    • Removed property ordering rule.
  • April 10, 2017
    • Add CSE 154 Style Guide!