Function
FUNCTIONS SHOULD DO ONE THING. THEY SHOULD DO IT WELL. THEY SHOULD DO IT ONLY.Sections within Functions
One Level of Abstraction per Function
Reading Code from Top to Bottom: The Stepdown Rule
Use Descriptive Names
Function Arguments
Have No Side Effects
Prefer Exceptions to Returning Error Codes
Don't Repeat Yourself
Last updated