6 ms·
PHP is a lot better. But it still has a lot of the same old issues when you look beneath the service. Good luck remembering what all the str* functions they inv
by jfrunyon 5y ago
PHP is a lot better. But it still has a lot of the same old issues when you look beneath the service. Good luck remembering what all the str* functions they invented do and what order their arguments are in. Same for the array functions (don't get me started on implode's three signatures - but that's mostly fixed in 8!).
And may His Noodly Appendages help you if you come across a function being used which has no documentation and a single decade-old comment from someone asking how it works...
And so, to plaster over it's many flaws, people start layering framework upon framework upon framework, each of which slows down the language significantly from all those shiny PHP performance benchmarks you see. And then they wonder why their shiny "what's an array? we need to transit 20 different chained method calls for that" is so slow...
And half of them are documented even more poorly than PHP itself. At least their code is in the same language you're already writing, though.
- corobo 5y agoAre str and array parameter order the only problem people have with PHP these days? Seems to be the only argument I come across now anyway Nice work PHP
- that_guy_iain 5y agoThe argument order flaw is never going away. BC. It's a super minor thing. The non-documented functions are often rare and very minor and obivous functions. This layering framework on top of frameworks sounds made up. Mostly people either use Symfony or Laravel. There aren't layers of frameworks. Your example is nonsensical. Frameworks are slower than simple code, this is true for every language. And Symfony and Laravel are both well documented. This comment overall seems to be written by someone who has come in with very little knowledge on PHP worked on a project for 3-4 months. When you work those style projects you're often working on poorly constructed projects. I'm pretty sure I can jump in on a project written in any language that has been poorly constructed and I will end up going wtf.
- jfrunyon 5y agoI am well aware that it is never going away. I wouldn't call it minor, it's an extremely common source of bugs. The non-documented functions are indeed often rare. That's all that can be said about them. They're about as obvious, on average, as the rest of PHP's functions are obvious. Sure, until you want to have a UI framework, and an API framework, and ... LOL @ Laravel being well documented. There's a tutorial and there's autogen API docs. And that's it. This comment overall seems to be written by someone who has worked with PHP for a few years and thinks he knows everything there is to know about it. I've been using PHP since PHP3 and professionally since PHP4, but thanks.