2 ms·
I have to say I think the php fig is a joke, and I question the merits of anyone using it. Their own goals are a joke, much less the results. They never set ou
by stephenr 13y ago
I have to say I think the php fig is a joke, and I question the merits of anyone using it. Their own goals are a joke, much less the results.
They never set out to "define the best way to do X". They set out to "find the most common way the most common frameworks do X".
The results are equally questionable. Why would a "Framework Interop Group" need to care about shit like brace placement, indenting, or even file naming.
Their file naming is a big wtf for me, as their "standard" is set out the way it is, to support faux namespaces in pre php 5.3. PHP 5.2 reached 'end-of-life' status 2 1/2 years ago.
What gets me even more is the fucking hoops people constantly jump through to make ever more complex autoloaders for PHP.
there is native support in php for autoloading class files, including namespaces. it takes one line of code to set it up. one function call.
But that's not all: when these geniuses decided they wanted to implement a "reference" class loader, what did they call it? SplClassLoader. Because if enough idiots already follow your shitty "standards" they will think "ooh spl is in PHP this must be endorsed by them too!"??
Their logger interface is fucking laughable - who implements a logger, that has names exactly the same as syslog, and descriptions the same or similar to syslog, but ignores that syslog levels are INTEGERS and thus you can say quite easily "email be about errors below level x"
- porker 13y agoThe most-used logger implementation (Monolog) supports "email me errors below x", even though the log levels aren't integers (if you're right, haven't checked the internal code to verify)