7

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;

Comments
  • 3
    I kinda like php, its simple and fast to deploy
  • 1
    PHP 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.
  • 1
    @gruhn you hate php because of the $dollar sign 😂
  • 0
    @Letmecode so in brief you just hate PHP because its hat'able' 😮
  • 0
    @gruhn agree with you. but.
  • 0
    @Letmecode i agree with you. php is hateable. myself i hate it. 😉
  • 0
    * 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
  • 0
    * 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
  • 1
    My 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
Add Comment