Comment

Comment by krapp

>Would you ever consider a job in PHP?

Heh. Most of the programming work I get is with PHP. I wish I could find work not in PHP. I'm still paying off a degree for building business applications in C# - and trying not to forget C# because I never use it. I can't seem to get a chance to forget PHP.

To me, the worst parts of PHP are, first, that the language was designed and intended to be used the way Wordpress (and many small hacky sites) use it - with PHP, HTML, Javascript and CSS all mixed together.

And second, that PHP isn't aware of context - it doesn't treat XML as objects (the way Hack does with XHP) and doesn't escape variables by default. One either has to manually escape every instance of every variable with a function whose name is too damn long (htmlspecialchars) or use a framework which does that for you.

The second point entirely undermines the purpose of PHP, and turns the first into an utter minefield.

parent krapp 9 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton