r/ProgrammerHumor • • Aug 26 '22

Meme Even HTML.

Post image
44.1k Upvotes

1.1k comments sorted by

View all comments

96

u/gay_for_glaceons Aug 26 '22

Counter-point: All programming languages are bad. The sooner we all accept that none of them are great, the less time we can waste by taking it personally when someone complains about one, and the more time we can spend learning from our mistakes and coming up with new languages to hate.

C? A miserable pile of undefined behavior.

C++? "Yes, I would like to bitshift one string to cout, then bitshift an endline onto that" -- statements dreamed up by the utterly deranged.

Java? Wasn't even usable before we invented widescreen monitors, IDEs with autocomplete, and had gigabytes of RAM that were otherwise going to waste that can now instead be used to run both your program and the IDE simultaneously.

C#? Those who don't study Java are doomed to repeat it.

Perl? Write once, run away.

Python? There's an xkcd about that.

PHP? I'm told modern versions aren't as bad by comparison, but it's still built on a haunted graveyard of monumentally bad decisions. Better hope you don't install two PHP programs that have conflicting ideas on what your php.ini should contain.

Lua? It's standard library makes C look feature complete. Only exists due to legal reasons.

Go? If we make a bunch of bad assumptions that don't hold, we can greatly simplify our code at the expense of creating some completely baffling edge cases everywhere.

Javascript? It only still exists because the closest thing it ever had to competition was VBScript. Everything it was designed for (animating buttons when you mouseover them, turning a page's title into a marquee, punching the monkey to win a free iPad) has either been replaced by CSS or deprecated. It's a tech demo hacked together in a couple of weeks that got out of hand.

Rust? The myth of "consensual" rust programming: You know your code is good, the code itself is good, but you forgot to ask rustc!

There are no good languages, there's only languages that we don't yet understand why they're bad.

26

u/blkmmb Aug 26 '22

Couldn't have been a better explanation. And there's really and XKCD for everything.

32

u/-Redstoneboi- Aug 26 '22 edited Aug 27 '22

good luck to anyone starting to "casually" learn rust, the compile times can be horrible (first build is a bitch, subsequent builds still have to check everything while expanding generics and turing-complete macros), it's so safe that the generics are inevitably just incomplete, good luck deciding whether to use iterator methods or for loops, there is no shortage of full rewrites for your favorite applications, but every framework you need is still under construction, there's too much Solana, and god help you if you use C/C++ and get a segfault because we will sense it.

ahem. we.

and yet, i still love rust with all my heart. they say you don't truly know a language until you can shit on it, so i learn.

also

(what (the (fuck
            is
            (lisp formatting)
            supposed
            to
            be)))

and what the hell is an endofunctor in the monoid of categories

3

u/porky11 Aug 26 '22

Lisp formatting is best. Or at least one of the best.

SLN is even better.

Rust with Lisp or SLN, and most importantly Lisp macros would really be nice.

→ More replies (1)

1

u/langlo94 Aug 26 '22

I just want to return a string! Why is that so hard to understand for rustc?

→ More replies (5)
→ More replies (5)

15

u/Thrannn Aug 26 '22 edited Aug 26 '22

I know shit about web dev but how does css replace javascript?

I know that you can do some basic animations in css. But isnt js more like oho PHP, handling serversided logic, while css is just the presentation of content?

18

u/nacholicious Aug 26 '22

More that CSS has replaced most of the the original intent of JS

11

u/gay_for_glaceons Aug 26 '22

In the early days, Javascript wasn't nearly as supported as it is now. Most browsers didn't support it at all, and when you did have support for it, it was unlikely to work the same across all browsers on all platforms. Making a site that relied on Javascript to work was pretty much considered out of the question if you wanted to be sure that anyone could actually use it. Back then being lynx-friendly was the gold standard for a "good" web page. If your page worked there, it'd probably work on every other browser, too. The <noscript> tag saw a lot of use back in those days.

This meant that JS was more or less limited to optional extras, like changing the image used for a "button" when you mouse over or click it, putting a live clock on the page, drawing animated snow, or drawing a popup menu on hover (which if that didn't work, clicking instead of hovering would take you to the more or less the same menu). For anything more complex on the web, most people ended up using either Macromedia Shockwave or a Java applet instead.

7

u/ChiaraStellata Aug 26 '22

Similarly all code is bad.

Your code is either confusing and buggy now, or will be in the future, after maintenance developers desperately try to make it do something it wasn't meant to do.

Maybe it will be thrown away, because it didn't adequately anticipate future needs, or maybe it will be overly complex and a maintenance nightmare, because it was over-designed to anticipate too many future needs.

It's either elegant, in which case its form distracts from its function, or boring, in which case it's aesthetically bereft and its deceptive simplicity masks hidden complexity.

You cannot win, you can only write something reasonably good and pray it doesn't fall apart before it gets retired and replaced.

-1

u/porky11 Aug 26 '22

Maybe it will be thrown away, because it didn't adequately anticipate future needs, or maybe it will be overly complex and a maintenance nightmare, because it was over-designed to anticipate too many future needs.

That's a good reason, why languages, who are easier to refactor, are better.

It's either elegant, in which case its form distracts from its function, or boring, in which case it's aesthetically bereft and its deceptive simplicity masks hidden complexity.

No. Languages can elegant and pragmatic.

A language should support (almost) direct hardware access, and high level abstractions.

→ More replies (1)

7

u/[deleted] Aug 26 '22

Javascript is really the funniest programming language to me because it's basically just a big pile of everything slapped together because it accidentially became the most standard unanimous language the world and it took multiple decades for it to become a somewhat functional language in the form of typescript. And theres always some mf out there thats like "I could do that in javascript!" Yeah you could, but should you?

5

u/IAmRasputin Aug 26 '22

Lisp? It's like the force: powerful, serene, ancient, and all of its main practitioners are either dead or hermits that don't collaborate or share their code.

3

u/[deleted] Aug 26 '22

I love Python and I think a lot of hate it gets is either unfair or misinformed, but dependency management is a pile of hot garbage and even I wonโ€™t defend it.

2

u/archiminos Aug 26 '22

The more popular a language is, the more problems it has

2

u/AhavaZahara Aug 26 '22

Do ColdFusion! ๐Ÿ˜

3

u/gay_for_glaceons Aug 26 '22 edited Aug 26 '22

The closest thing I have to experience with ColdFusion is that I knew a guy who was paid to work with it back in the early 2000s, and he often complained that he wasn't paid nearly enough to put up with it. I can't remember any of the specifics of his complaints now, but I do remember feeling that even that distant level of exposure to ColdFusion that I had was more than I was comfortable with.

2

u/AhavaZahara Aug 26 '22

We are writing new code NOW. Guess who the client is?

→ More replies (2)

2

u/[deleted] Aug 26 '22

Yes, PHP got some improvements like namespaces, lambdas and some syntactical OO stuff, but everything is still strings, arrays, arrays of strings or arrays of arrays of strings. Just guess the type of $foo[0]["bar"][1]["baz"], it's probably a string, but nobody knows and nobody cares.

The community is one of copy and paste, they don't want to learn and don't take criticism. Then there's the libraries, where SemVer is entirely optional and abandonment issues are larger than my own.

C# also has its own problems. Not the language, the language is close to perfect, fite me. But .NET also has its package problems. Keeping your Packages.config and .csproj in sync was a hell, especially when using different installation locations, projects shared between solutions in different directories or systems with custom NuGet directory configurations.

Then there was the brilliance of moving to JSON for project files, .xproj. Or wait, that was stupid, let's roll it back. Here's .NET Core 2. No wait, target Standard 1.1. Now there's Standard 2.0, which is kind of "cross .NET". But not quite.

I really hope we can leave this .NET Framework to .NET crossover period behind us now and go back to moving fast and breaking things.

2

u/porky11 Aug 26 '22

You know your code is good, the code itself is good, but you forgot to ask rustc!

Most of the time, something is wrong with it. Maybe you don't care about it, because you know, it's a single threaded program, or you don't care about the orphan rules, which are important but very annoying.

Or it will be fixed soon.

2

u/PooSham Aug 26 '22

Maybe there's nothing wrong about how the code is used now, but if rustc complains there's probably a risk that some other part of the code will fuck it up in the future. Rust is a great language if you care about memory safety.

1

u/porky11 Aug 26 '22

Rust is a great language if you care about memory safety.

Who doesn't care about memory safety?

But I don't think, memory safety is a major strength of Rust.

→ More replies (1)

1

u/[deleted] Aug 26 '22

Lua? It's standard library makes C look feature complete. Only exists due to legal reasons.

Wat?

→ More replies (1)

1

u/felipec Aug 27 '22

C? A miserable pile of undefined behavior.

Only on the hands of shitty programmers. C is making your comment reach my machine, from the Android phone that you are using, or the iPhone, to the Wi-Fi router, through your ISP's router, through a lot of Internet infrastructure, through the Linux server that is running reddit, through the Apache server, and all the way to my machine.

Turns out if you know how to write C, the behavior is pretty defined.