Please enable JavaScript.
Coggle requires JavaScript to display documents.
Clean Code (Functions (Function Arguments (Have no side effects (Output…
Clean Code
Functions
Blocks and indenting
Do One Thing
One level of abstraction per Function
Stepdown Rule
Switches
use descriptive names
Function Arguments
Common monadic forms
Flag Arguments
Dyadic Forms
Triads
Argument objects
Argument lists
Verbs and Keywords
Have no side effects
Output arguments
Command query separation
Prefer exceptions to returning error codes
Extract Try/Catch blocks
Error Handling is one thing
Error.java
dependency magnet
Don't repeat yourself
Structured programming
Comments
Comments do not make up for bad code
Explain yourself in code
Good comments
Legal Comments
Informative comments
Explanation of intent
Clarification
Warning of consequences
TODO comments
Amplification
Javadocs in public APIs
Bad comments
Mumbling
Redundant Comments
Misleading comments
Mandated comments
Journal comments
Noise comments
Scary noise
Don't use a comment when you can use a function or a variable
Position markers
Closing brace comments
Attributions and bylines
Commented-out code
HTML comments
Inobvious connection
Function headers
Too much information
Javadocs in nonpublic code
Nonlocal information