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
-
I mean it’s quite amazing if you use it right. Especially when using something as eloquent as Laravel
-
neodite6147yJust dumb people. Ignore them.
Most of the people I've seen trash talking it are either not developers for their career, or love node. -
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 😄 -
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.
-
cursee165957yLove all you want.
Like all you want.
Hate all you want.
PHP will always welcome you with
<? ?> -
@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
Related Rants
Why all the php hatred?
rant
hate
php