Clean Code: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
 
Line 12: Line 12:
* [https://blog.codinghorror.com/code-smells/ Code Smell: Jeff Atwood]
* [https://blog.codinghorror.com/code-smells/ Code Smell: Jeff Atwood]
* [https://refactoring.guru/refactoring/smells Code Smell: Refactoring]
* [https://refactoring.guru/refactoring/smells Code Smell: Refactoring]
* [[wikipedia:Code_smell|Code Smell: Wiki]]


|valign="top"|
|valign="top"|

Latest revision as of 03:13, 9 March 2022

FUNCTIONS SHOULD DO ONE THING. THEY SHOULD DO IT WELL. THEY SHOULD DO IT ONLY.
Functions should either do something or answer something, but not both.
The proper use of comments is to compensate for our failure to express ourself in code.

References