by Schlaefer · 11y ago · 0 comments
Register globals,
<?php
if ($category == 2) {
echo 'Foo';
}
?>
and be done.We have to remember the PHP origins and audience from way back to understand why this was considered easy to use.
Not that this is particularly important, I guess.
¹no DB, but the "just write your visitor counter into a plain text file" back then
News to me. You have to enter a really high-precision number as a string in Java so it won't be rounded off to fit within a double. This is an unsolved problem.
It's got quirks, we get it. Let's keep improving the language as we go instead of constantly bashing it. I mean PHP is one of the most widely used languages on the web today.. Clearly it's doing something right.
McDonald's is super popular, too, and deserves even more of a ration of shit than they get for feeding people slop.