by neilwilson · 7y ago · 0 comments
You understand what 'has_kettle_boiled' means.
Inlining functions makes it difficult in a sequence to work out what are the separate steps. Splitting those out into a function - particularly if they take the temporary variables with them - makes it easier to understand what the higher level function does, not harder.
Perhaps we should revisit stepwise refinement as a technique and the need for functions to be loosely coupled and highly cohesive.