logo

Quotes About Function extraction

Instead of commenting sections in long functions, extract smaller functions whose names capture the former sections' intent.
~ Kevlin Henney
If you have to spend effort looking at a fragment of code and figuring out what it's doing, then you should extract it into a function and name the function after the "what".
~ Martin Fowler