Clean Code: A Handbook of Agile Software Craftsmanship (Robert C. Martin Series)
Rate it:
Open Preview
10%
Flag icon
We want our code to be a quick skim, not an intense study.
Tiffany Yeung liked this
12%
Flag icon
The first rule of functions is that they should be small. The second rule of functions is that they should be smaller than that.
12%
Flag icon
FUNCTIONS SHOULD DO ONE THING. THEY SHOULD DO IT WELL. THEY SHOULD DO IT ONLY.
15%
Flag icon
Side effects are lies. Your function promises to do one thing, but it also does other hidden things.
15%
Flag icon
Functions should either do something or answer something, but not both.
Lebo Mametja
This I contend with slightly. It may be useful to return a boolean that tells you whether or not a method has completed successfully. Many APIs (including Java) do this a lot which has sort of normalized this kind of behavior