21
spooky
7y

I can’t even say what’s wrong with PHP, because— okay. Imagine you have uh, a toolbox. A set of tools. Looks okay, standard stuff in there.

You pull out a screwdriver, and you see it’s one of those weird tri-headed things. Okay, well, that’s not very useful to you, but you guess it comes in handy sometimes.

You pull out the hammer, but to your dismay, it has the claw part on both sides. Still serviceable though, I mean, you can hit nails with the middle of the head holding it sideways.

You pull out the pliers, but they don’t have those serrated surfaces; it’s flat and smooth. That’s less useful, but it still turns bolts well enough, so whatever.

And on you go. Everything in the box is kind of weird and quirky, but maybe not enough to make it completely worthless. And there’s no clear problem with the set as a whole; it still has all the tools.

Now imagine you meet millions of carpenters using this toolbox who tell you “well hey what’s the problem with these tools? They’re all I’ve ever used and they work fine!” And the carpenters show you the houses they’ve built, where every room is a pentagon and the roof is upside-down. And you knock on the front door and it just collapses inwards and they all yell at you for breaking their door.

That’s what’s wrong with PHP.

Comments
  • 8
    Well... Any code is only as good as the programmer who wrote it. If I came across a house with an upside down roof, I'd blame the person who built it, not the tools used to build it. Just sayin'...
  • 3
    @Gogeta70 I wonder if it can be a two-way street? If a language is designed unintuitively then doesn't the person, working with it, have the right to be a little frustrated with it?
  • 10
    How's about when you're copy/pasting you give a source?
    https://eev.ee/blog/2012/...
  • 0
    @alwaysmpe wasn't sure how to add a source so i tagged it as notmyrant when posting
  • 1
    @tisaconundrum Sure, languages that are terribly designed can be frustrating. But it's up to the programmer to determine the right language for the job.

    As for PHP, it's like a dynamically typed C/C++ in terms of syntax, so I can't really understand the hate for PHP. If you ask me, hating on such a language indicates ignorance.

    At the very least, provide an argument for why it's such a terrible language.

    P.S I apologize if I'm coming across as a dick, I'm just tired of these pointless "Using language X is like..." posts.
  • 0
    I've used PHP for years and it's not that bad. Tbh I can't even think of a single example that fits your analogy.

    The thing about PHP is you have to realize it was procedural first and then became object-oriented later, so most of the library functions are just global procedures, but I mean aside from that it's a solid and reliable language.
Add Comment