(no title)
darkamaul | 3 months ago
I suspect this affects many developers who cut their teeth on PHP but haven't kept up. The language has become a different beast, which is a strength for the community but a barrier to re-entry.
darkamaul | 3 months ago
I suspect this affects many developers who cut their teeth on PHP but haven't kept up. The language has become a different beast, which is a strength for the community but a barrier to re-entry.
gramakri2|3 months ago
idoubtit|3 months ago
johnisgood|3 months ago
erickf1|3 months ago
segmondy|3 months ago
tim333|3 months ago
danaris|3 months ago
The only one that's caused me any significant stress is the deprecation of the old `mysql` DB interface; I had to refactor a whole bunch of code for that, since I'm maintaining a codebase that's been in continuous use & development since 2001.
The additions to PHP since 5 add more things you can do, but they don't really change the simple things you can do to first learn PHP. You can still just create a .php file and start interspersing HTML and <?php script tags with basic operations.
woodrowbarlow|3 months ago
jm4|3 months ago
Java and C# are a couple other popular languages where the same is also true.
ivolimmen|3 months ago
pjmlp|3 months ago
deaddodo|3 months ago
If you pull out examples of the earliest C, sure, it looks weird. But that C was already obsolete in 1989. Since then, it’s had a minor iteration (e.g. five-eight additions/modifications) every decade-ish (99, 11, 17, 23). Has it changed? Sure. Can it be compared to the iteration and speed of things like C#, Java, C++, etc? No way.
ffsm8|3 months ago
That version 1-latest is understandingly highly different, but these are all decades old languages, which barely changed for some time, but are now all introducing new syntax.
Which I think makes sense, but it's obviously going to leave 9-5 devs behind that don't particularly care for coding and want to invest as little time as possible into their language knowledge.
Capricorn2481|3 months ago
But PHP 5 was released 21 years ago and is unsupported. Companies using it are putting their customers at risk.
_DeadFred_|3 months ago
gnabgib|3 months ago
tehbeard|3 months ago
non of the "modern" things are particularly taxing to teach someone with more than two braincells. If they don't understand them then they haven't kept up with ANY programming trends in the past decade and are best placed infront of the TV with an iPad than left to mess with the possible critical infrastructure of a business.
phplovesong|3 months ago
deaddodo|3 months ago
Adding generics to PHP would make CS fundamentalists somewhat happy, but do nothing to change the fundamental design of PHP nor offer any of the traditional benefits that generics offer to strongly-typed and compiled languages. And would be a massive headache to implement, while bulking an already heavy VM implementation.
senfiaj|3 months ago
dreadnip|3 months ago
TLDR: The PHP compiler isn't really suited for the job, it would introduce a lot of complexity to an already complex codebase and the memory/performance hit would be substantial.