News for hackers. Stuff that matters.
Re:PHP Frameworks Code Complexity Comparison by sidlls on Tuesday January 10, 2017 @11:34AM (#13366096)
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.
Re:PHP Frameworks Code Complexity Comparison by ehnto on Wednesday January 11, 2017 @12:04AM (#13371886)
That 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.