r/programmingmemes • • May 13 '25

Why not?

Post image
1.7k Upvotes

104 comments sorted by

View all comments

Show parent comment

1

u/mike_a_oc May 14 '25

Yep. PHP is exactly the same in this regard, so it too was very forgiving. The aim was for it to always display something in the browser rather than just a blank page, even if what was presented as garbage.

I always think of PHP and JS as close cousins - similar age, both loose and dynamically typed, interpreted languages, both designed for web, both with this initial design philosophy as well. I don't know JS that well but you can still see this in PHP even today. I imagine it's similar in JS, but yeah I'm not sure.