Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
gruhn3897yPHP has this massive utility function set, which makes it easy to get started but as soon as a project gets bigger this tends to get really messy in my experience. But as @robzombie111 mentioned, frameworks like Laravel can help you keep it tidy.
I personally just don't use it very often because of those $ everywhere. -
aoeu107y* phps wish to be a Unix pipe is cool and all, but starting php is too slow so you can't CGI it anymore, you have to use php-fpm or similar anyway, so now the stdout-thing is just annoying
* APIs are inconsistent. No rule like "most important argument first" here. No Python zen. Just very wierd interfaces everywhere.
* unnecessarily hard to debug. Even the introspection is wierd, and since stdout pipes directly to browser, it can be hard to jack into the info
* string functions, honestly? '"hi"()' should be an error, and 'foo@bar()' is even worse
* ::class, honestly?
* did I mention the really wierd interfaces everywhere?
* why does php have this half-assed version of operator overloading?
* why the shit can you call static functions dynamically? I can sort of understand the other way around, but that's really wierd, and hints at problems in the compiler -
aoeu107y* so, you can overload __get and __set, which does not do what you would thing they would do (overload index operator), you can implement ArrayAccess, and you can extend ArrayObject, but NONE of those methods will allow you to call in_array of your object.
* fucking laravel, holy shit what is that even and why is it legal
I have many more, just not on top of my mind now -
noctemx1157yMy thought on PHP is that there are languages and frameworks these days that do the same things but better and also have more features, plus they scale better
Related Rants
PHP why do people hate you ? personnaly i like React but i prefer vanilla js 😍
Can anyone tell me why people hate PHP. He is a good guy, i think 😅
exit;
undefined
php
choice
js
react