this post was submitted on 24 Mar 2024
203 points (95.5% liked)

Programmer Humor

26466 readers
1239 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
all 43 comments
sorted by: hot top controversial new old
[–] fckreddit@lemmy.ml 40 points 2 years ago* (last edited 2 years ago) (3 children)

I love how JS is just a mutant blob of flesh.

[–] jonesy@aussie.zone 20 points 2 years ago (1 children)
[–] SpaceNoodle@lemmy.world 12 points 2 years ago

Tetsuoooooo

[–] TrickDacy@lemmy.world 5 points 2 years ago (2 children)
[–] xmunk@sh.itjust.works 8 points 2 years ago

I like Javascript... but it is certainly an unholy amalgamation of mismatched parts that, in the end, can get pretty much anything done if you don't mind 100+ node dependencies.

[–] noddy@beehaw.org 4 points 2 years ago

Should've made s typescript one, that is a mutant blob of flesh with a life jacket on it.

[–] owen@lemmy.ca 28 points 2 years ago (3 children)

This is awesome. Rust wearing full plate armor to dinner is hilarious... Also what's up with Scala? lmao

[–] marcos@lemmy.world 11 points 2 years ago

Well, obviously she was already in full plate armor when her friends called, so why take it out?

[–] tatterdemalion@programming.dev 8 points 2 years ago (2 children)

I assume Scala is like a "gateway" (drug) to functional programming by way of also supporting imperative and object oriented paradigms.

[–] BatmanAoD@programming.dev 3 points 2 years ago (1 children)

Probably more importantly, it runs on the JVM and is designed to interoperate with existing Java code. (FWIW, I actually think they made a major mistake in how they handle null Java objects, and that Kotlin did better here; but Kotlin is much newer.)

[–] tatterdemalion@programming.dev 1 points 2 years ago

Oh good point I totally forgot it's a JVM lang.

[–] owen@lemmy.ca 2 points 2 years ago

Ouuu. This makes sense to me, well thought

And being the designated driver.

[–] Haus@kbin.social 12 points 2 years ago (1 children)

My experience in going from C to C++ was different: if you're not converting everything from mallocs with custom addressing systems to the collections framework, you're not living.

[–] Jajcus@kbin.social 10 points 2 years ago (2 children)

My experience with C++ was when C++ was a relatively new thing. Practically the only notable feature provided by the standard library, was that unholy abuse of bit shift operators for I/O. No standard collections or any other data types.

And every compiler would consider something else a valid C++ code or interpret the same code differently.

I am little bit prejudiced since then… and that is probably where the author is coming from too.

Then things were just getting more complicated (templates and other new syntax quirks), to fill the holes in attempts to make C a 'high level language'.

[–] AMDIsOurLord@lemmy.ml 8 points 2 years ago

C++ from 11 onwards started to really shine and since C++17 it's got some good shit inside

[–] tatterdemalion@programming.dev 8 points 2 years ago

Erlang really is the necromancer's language.

Why is Swift... like that?

[–] cicadagen@ani.social 7 points 2 years ago

Thanks for a good morning laugh!

[–] tsonfeir@lemm.ee 5 points 2 years ago (2 children)

Everyone hates on PHP and JavaScript.

[–] CanadaPlus@lemmy.sdf.org 9 points 2 years ago* (last edited 2 years ago) (1 children)

JS, at least, deserves it.

[–] tsonfeir@lemm.ee 3 points 2 years ago (3 children)

How do you feel about TypeScript

[–] muntedcrocodile@lemm.ee 6 points 2 years ago (1 children)

U can try and polish a turd if ya want.

[–] tsonfeir@lemm.ee 2 points 2 years ago (1 children)

Well, what TYPE of turd is it? ;)

[–] muntedcrocodile@lemm.ee 1 points 2 years ago (1 children)
[–] tsonfeir@lemm.ee 1 points 2 years ago

You better catch that.

[–] CanadaPlus@lemmy.sdf.org 4 points 2 years ago* (last edited 2 years ago)

Better. Of course, it's just built over top, so you can still get JavaScript issues in TypeScript, and it's not necessarily going to be obvious. This is particularly an issue if you call JavaScript libraries, which I'm told is standard practice.

[–] MonkderZweite@feddit.ch 3 points 2 years ago

A more polished unholy list of depencies?

[–] xmunk@sh.itjust.works 2 points 2 years ago* (last edited 2 years ago)

The Javascript reference could be read as how every project ends up with an unholy list of npm dependencies - it's awful to look at but it works.

I think the PHP reference was just "idk servers or something?"

[–] CanadaPlus@lemmy.sdf.org 5 points 2 years ago* (last edited 2 years ago) (2 children)

This is epic.

Can anyone explain Java, PHP and Perl to me?

[–] xmunk@sh.itjust.works 9 points 2 years ago (1 children)

Java is extremely widespread in corporate companies - hence the suit and tie. Perl is fair to liken to spelunking deep into a dark cave with only your wits to save you.

PHP seems to be a reference to the fact that it's extremely common on servers... but it also might be a lazy phpbad joke - it's pretty weak either way (if you wanted to play into the server characteristic give it a dozen arms serving the entire restaurant in the background).

[–] frezik@midwest.social 0 points 2 years ago (1 children)

As a Perl dev, I dunno if that's how I'd characterize the language, but I'll take it over yet another "Perl is unreadable line noise lol and what's the deal with airline food" reference.

[–] xmunk@sh.itjust.works 0 points 2 years ago

Yeah, to be honest you can write good code in any language and it'll usually look pretty similar... all the perl stereotypes come from having to maintain shell scripts from someone kludging their way through learning to code... it's the same reason why phpbad, amateurs could get into webdev with php so there's an impression that all php is the php written by amateurs.

Also, bear in mind that over time these languages have converged through feature additions "LISP has functional programming - why can't PHP have first class functions... oh traits look neat, let's add that... you know those statically typed languages sure seem nice..."

[–] maniel@beehaw.org 3 points 2 years ago (1 children)
[–] CanadaPlus@lemmy.sdf.org 1 points 2 years ago

That seems to be the consensus. That's pretty weak, salad people, you know you could have done better.

[–] nieceandtows@programming.dev 4 points 2 years ago (4 children)

So, what makes Haskell god tier?

[–] AMDIsOurLord@lemmy.ml 25 points 2 years ago

Purely functional programming is a pathway to many abilities OOP devs consider to be... Unnatural

[–] CanadaPlus@lemmy.sdf.org 10 points 2 years ago

I think it's more the idea of being an abstract ideal. It's totally pure and often mathematical.

[–] Bonehead@kbin.social 5 points 2 years ago

Nothing...that's just how they perceive themselves.

[–] noddy@beehaw.org 2 points 2 years ago* (last edited 2 years ago)

IMO the ackchyually guy would be a better fit for Haskell. "Ackchyually monad is a monoid in the category of endofunctors!"

[–] pfm@scribe.disroot.org 3 points 2 years ago

I love Lisp dialects!