here we go again

  • 0 Posts
  • 3 Comments
Joined 1 year ago
cake
Cake day: June 10th, 2023

help-circle
  • I’ve made a point to learn and understand commonly “mocked” languages. The reasons they’re ridiculed for are often very tightly related to the reasons why they’re powerful in unique ways.

    It’s hard to defend some parts of PHP, but it doesn’t deserve the hatred it gets. Its standard library is a self-contradictory mess, yes. But it’s backwards-compatible with previous language versions to a fairly remarkable degree. This backwards-compatability might seem strange now, but not that long ago, this guarantee meant it could evolve very rapidly as a language and ecosystem without risking losing users to a continual barrage of updates necessary to keep atop of, lest your application fail. I think this is the reason it overtook PERL as the first major “server-side” dynamic website language of choice.

    It has that goofy dollar sign variable syntax, yes. I personally think a special syntax for variable access vs function calls is one of the reasons coding beginners found it slightly easier to use - you didn’t need to keep so much track of name collisions and stuff. $thing is always a piece of data, a noun. thing is always a keyword or function, a verb. You can thing($thing), it’s OK, they’re different. You’re verbing a noun.

    It could grow fast and be picked up quick, so it’s no wonder to me it persists, ever-improving, in the midst of all these extremely popular, extremely modern languages in use today. Wikipedia, Facebook, WordPress, Slack, Etsy, indeed even kbin, the piece of Fediverse software I’m writing this on now.



  • Imagine if the straw started life as a solid cylinder and you had to bore out the inside to turn it into a straw

    This would mean a straw has a hole, yes. It would be like a donut indeed - donuts are first whole, then have the hole punched out of them. This meets a dictionary definition of a hole (a perforation). A subtractive process has removed an area, leaving a hole.

    But straws aren’t manufactured this way, their solid bits are additively formed around the empty area. I personally don’t think this meets the definition.

    Your topological argument is strong though - both a donut and straw share the same topological feature, but when we use these math abstractions, things can be a bit weird. For instance, a hollow torus (imagine a creme-filled donut that has not yet had its shell penetrated to fill it) has two holes. One might not expect this since it looks like it still only obviously has one, but the “inner torus” consisting of negative space (that represents the hollow) is itself a valid topological hole as well.