Changes between Version 6 and Version 7 of ControlSystems/SoftwareTeam/CodingConventions
- Timestamp:
- Oct 31, 2019, 9:07:16 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ControlSystems/SoftwareTeam/CodingConventions
v6 v7 3 3 * Never put cleverness before clarity 4 4 * when choosing between a clever algorithm and one that will do the job and is easier to understand, use the latter. 5 * Understand [https://www.agile-code.com/blog/cohesion-vs-coupling-separate-concerns/ coupling vs. cohesion] deeply. These are the two most important concepts in software engineering, everything else is an attempt to increase cohesion and reduce coupling. Every block of code (class or function) should be a stand-alone black box with cleanly defined inputs and outputs. You should not need several files open to understand how one method works. 5 6 * Tool (and language) wars are for noobs 6 7 * Being kind is better than being right 7 8 8 9 == Coding Conventions == 9 * Understand [https://www.agile-code.com/blog/cohesion-vs-coupling-separate-concerns/ coupling vs. cohesion] deeply. These are the two most important concepts in software engineering, everything else is an attempt to increase cohesion and reduce coupling. Every block of code (class or function) should be a stand-alone black box with cleanly defined inputs and outputs. You should not need several files open to understand how one method works.10 10 * Shift-Alt-F (auto-format) 11 11 * Make comments often about WHY, not what, you are doing