Clean Code: Difference between revisions
Jump to navigation
Jump to search
Line 11: | Line 11: | ||
* [https://martinfowler.com/bliki/CodeSmell.html Code Smell: Martin Fowler] | * [https://martinfowler.com/bliki/CodeSmell.html Code Smell: Martin Fowler] | ||
* [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] | |||
|valign="top"| | |valign="top"| |
Revision as of 03:09, 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
| ||