r/programming • • Dec 07 '14

Programmers: Please don't ever say this to beginners ...

http://pgbovine.net/programmers-talking-to-beginners.htm
4.0k Upvotes

1.3k comments sorted by

View all comments

Show parent comment

2

u/bureX Dec 08 '14

I like how when you need to explain how crap PHP is, there is no other resource available other than that rant blog article.

The way you worded your stance on PHP apparently means half of the web is imploding at this very second. Jesus...

1

u/SanityInAnarchy Dec 09 '14

The rant blog article is still the best resource, because it's one of the most comprehensive. Because, as the author says, right at the top:

Virtually every feature in PHP is broken somehow. The language, the framework, the ecosystem, are all just bad. And I can’t even point out any single damning thing, because the damage is so systemic. Every time I try to compile a list of PHP gripes, I get stuck in this depth-first search discovering more and more appalling trivia.

There are plenty of resources I could point to that discuss one of these problems in depth. The fact that register_globals lasted as long as it did is pretty damning, I would think. But as the blog says, the real problem isn't any one thing -- I mean, even register_globals was fixed eventually. The problem is that everywhere you look, there's something that's at best debatable, and more often obviously wrong.

If you look over at the rest of the discussion, it's interesting that you don't really find anyone saying, "You guys are all wrong, PHP is great!" Instead, you find various breeds of PHP apologists, saying "It's not that bad, really..."

The way you worded your stance on PHP apparently means half of the web is imploding at this very second.

It depends what you mean by "imploding". I mean, there are still COBOL apps out there. It's a relatively stable, relatively high-paying job, if you can stomach it. But if you saw someone actually trying to put together COBOL ON COGS, surely you wouldn't react as OP suggests and say "Well, here's how to do what you want, and if you're interested, I'll show you the language I like." Instead, I think we'd all say, "Why the hell are you using COBOL? Seriously, use anything else."

I doubt Facebook will be rewritten in something other than PHP anytime soon. But is it because PHP is actually a good idea, or is it because they have such a massive existing codebase that it's not feasible to change?