2 ms·
I disagree with article. For me function is an abstraction of re-usable code to achieve a single goal(or Intended state). Think of the list of function in syst
by jitendrac 7y ago
I disagree with article.
For me function is an abstraction of re-usable code to achieve a single goal(or Intended state). Think of the list of function in system as a list of APIs for a service, the more you create for unintended purpose, the more likely it is a tech-debt.
so, I will say make function for a Goal/Intend in mind, abstract only generic logic to small functions, which have guessable behavior through identifiable by name. Long functions are good if they need to be.