News for hackers. Stuff that matters.
Re:My Biggest Regret as a Programmer by frenchy on Wednesday April 06, 2016 @10:53AM (#11439152)
Back in the day when I was just learning to program, I wrote a BBcode library in JavaScript. Not knowing any better, I made very liberal use of globals throughout my code.

I later went to go port my code to PHP 4 (that was current at the time). To my surprise I was getting all these errors about how crappy of a programmer I was (both from globals and from misspellings and related problems).

I'm honestly not sure how people hate PHP so hard and yet don't mind JavaScript.

Re:My Biggest Regret as a Programmer by quicklyfrozen on Wednesday April 06, 2016 @05:30PM (#11442284)
For me it was things like "function_returning_array()[0]" working in JS but not PHP and other unexpected parsing weirdness like that. (Though I don't really mind PHP, just much of the code written in it :-) )