A function with one job is easy to trust.
A function with five is a small mystery.
Every extra responsibility
is another reason it can break.
Small functions read like sentences.
Big ones read like apologies.
You don't need it to be impressive.
You need it to be obvious.
Do one boring thing well.
Then stop.
– Serguey Asael Shinder
Top comments (0)