Lebo Mametja

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
Clean Code: A Handbook of Agile Software Craftsmanship (Robert C. Martin Series)
Rate this book
Clear rating
Open Preview