More on this book
Community
Kindle Notes & Highlights
Read between
August 18 - December 24, 2019
The first rule of functions is that they should be small. The second rule of functions is that they should be smaller than that.
FUNCTIONS SHOULD DO ONE THING. THEY SHOULD DO IT WELL. THEY SHOULD DO IT ONLY.
Side effects are lies. Your function promises to do one thing, but it also does other hidden things.