7

Why all the php hatred?

Comments
  • 1
    I mean it’s quite amazing if you use it right. Especially when using something as eloquent as Laravel
  • 2
    Just dumb people. Ignore them.

    Most of the people I've seen trash talking it are either not developers for their career, or love node.
  • 1
    Full disclosure - I do develop in PHP.
    What's wrong? Predictably, consistency, consiness, reliability, lack of proper debugging.
    Core functions should be few. Argument order should be consistent and predictable. Function names should be consistent too ( sometimes has a "_", sometimes it doesn't).
    Should handle errors a lot better.
    I can make a function fail silently without an error by using a ini_set.
    Floats are terribly broken. Sorry but 2 is not 2.000001.
    Just on top of my head 😄
  • 1
    They read an article from 2012 made by an amateur php programmer that straw man argued his way into explaining that the language is bad citing inconsistencies and things that could not be found on his fav (and only known) language and decided to apply sheep mentallity into thinking that the language was bad. Just cringelords being funny.
  • 0
    Love all you want.
    Like all you want.
    Hate all you want.

    PHP will always welcome you with
    <? ?>
  • 1
    @nbamaral fair enough with consistency, php is not good at that.
    However when using a good text editor or an IDE it kinda tells you which argument is where.
    Lack of proper debugging? Have you tried xdebug? You can use breakpoints, set up watchers etc it works perfectly.
    Floats aren’t really php’s fault tho 😉 although you can increase the precision in the ini file from 14 to 17.
    Regarding errors, always (if not using a framework) setup your custom error handlers that make each error into an exception
  • 0
    @CurseMeSlowly not really
Add Comment