> a function shouldn’t have more than 60 lines of code.
I started having headache spikes after reading this sentence that refers to keeping functions "short", in the article about safety critical programs.
I started having headache spikes after reading this sentence that refers to keeping functions "short", in the article about safety critical programs.
The fact that you could safisfy the business requirement with a single function of ~140LOC does not mean the other approach is more verbose, but that you are only thinking on the happy path, and a bunch of edge cases are left undefined.