3 ms·
Why is the longest method size 13 lines? That to me is an indication that functions are actually not doing enough themselves, and rely heavily on delegation to
by sidlls 10y ago
Why is the longest method size 13 lines? That to me is an indication that functions are actually not doing enough themselves, and rely heavily on delegation to other functions (e.g. far too many functions are simply a few lines consisting of calls to other functions, possibly far-removed from the context, with little or no logic "built-in" to the function itself). Usually when I see that sort of thing it's because the functions were designed for unit-testability instead of utility in a programming project.
- ehnto 10y agoThat is what I see going on. Lots of abstraction and glue code and very little actual logic. There seems to be a tipping point where code goes from utilities informed by best practice to a collection of best practices informed by utility. I think Laravel can be an abstraction too far in some circumstances, but it is a mostly clean and enjoyable framework to work with. Certainly in the historic context of PHP frameworks.