Any tech that’s sufficiently popular and accessible is also lowering the bar for how good you have to be to use it. Very similar to React nowadays imo. It’s just a dead simple mental model, so it was everywhere.
Also, PHP has come a long way and is now cleaner and faster than it ever was. There’s a lot of weird bloat surrounding the standard library, but the basic syntax is surprisingly simple once you get your head around how arrays work.
It used to have some really strangely behaving functions and syntax. Stuff like inconsistency between throwing and returning error codes, weirdly named standard functions, adding strings with numbers, really really strange but very well known bugs you had to constantly work around and a lots of ambiguous syntax causing strange bugs rather than just crashing to help you out. It also had this horrible feature where if you write $$variable where the $variable contains a string, it’d access the contents of the variable with that string as name, which allows for huge security risks but also lots of “quirky” coding.
It was also one of the most supported languages for web back-ends, so lots of people had the displeasure of working with it.
But AFAIK the newer versions have made it somewhat of a normal language. r/lolphp used to document a lot of those oddities, so you could sort it by top all time if you want to see some weird shit.
But AFAIK the newer versions have made it somewhat of a normal language
Yup! The language maintainers have been slowly and surely standardizing the behavior you mentioned, first deprecating it, then issuing a runtime warning, and finally making those old behaviors throw exceptions in new versions. The latest set of warnings are new in 8.3 and will be fully corrected in 9.0.
I briefly touched PHP in undergrad and never worked with it again. Why do people hate it so much?
Any tech that’s sufficiently popular and accessible is also lowering the bar for how good you have to be to use it. Very similar to React nowadays imo. It’s just a dead simple mental model, so it was everywhere.
Also, PHP has come a long way and is now cleaner and faster than it ever was. There’s a lot of weird bloat surrounding the standard library, but the basic syntax is surprisingly simple once you get your head around how arrays work.
Because they unironically think it stands for “PHP Hates Programmers”
It used to have some really strangely behaving functions and syntax. Stuff like inconsistency between throwing and returning error codes, weirdly named standard functions, adding strings with numbers, really really strange but very well known bugs you had to constantly work around and a lots of ambiguous syntax causing strange bugs rather than just crashing to help you out. It also had this horrible feature where if you write
$$variable
where the$variable
contains a string, it’d access the contents of the variable with that string as name, which allows for huge security risks but also lots of “quirky” coding.It was also one of the most supported languages for web back-ends, so lots of people had the displeasure of working with it.
But AFAIK the newer versions have made it somewhat of a normal language. r/lolphp used to document a lot of those oddities, so you could sort it by top all time if you want to see some weird shit.
Yup! The language maintainers have been slowly and surely standardizing the behavior you mentioned, first deprecating it, then issuing a runtime warning, and finally making those old behaviors throw exceptions in new versions. The latest set of warnings are new in 8.3 and will be fully corrected in 9.0.