this post was submitted on 16 Jul 2023
706 points (92.4% liked)

Programmer Humor

33658 readers
9 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 

No offence

top 50 comments
sorted by: hot top controversial new old
[–] Ret2libsanity@infosec.pub 84 points 2 years ago (3 children)

C is the sniper you don’t see

[–] Maultasche@feddit.de 14 points 2 years ago (1 children)

And just like in Metal Gear, he dies of old age if you wait a bit.

[–] unicorn@mander.xyz 28 points 2 years ago (11 children)

C is old, ubiquitous and still does not have a good replacement for its low-level cross-platform usecases, so I'll believe it when I see it 😄

[–] ursakhiin@beehaw.org 9 points 2 years ago (5 children)

Rust is doing a very decent job of low-level cross platform. C just has a very long history.

load more comments (5 replies)
load more comments (10 replies)
[–] hglman@lemmy.ml 10 points 2 years ago

C is back at HQ with 2 Stars and enough political capital to serve till they die.

[–] lowleveldata@programming.dev 42 points 2 years ago (15 children)

ah yes programming languages are jokes themselves, and not the programmers using the wrong tools for the wrong job

load more comments (15 replies)
[–] Tolookah@discuss.tchncs.de 40 points 2 years ago (1 children)

C or c++ should be the one in the back, pointing at things...

load more comments (1 replies)
[–] dontblink@feddit.it 40 points 2 years ago (14 children)

May i ask why everyone hates JavaScript so much? It's not ironic it's a real question, i can't really get it, is it just because it doesn't have types? Or there's more?

[–] oktupol@discuss.tchncs.de 55 points 2 years ago (5 children)

I believe the amount of hate and mockery Javascript receives is heavily skewed, simply because almost every programmer who is active today has at least some experience with the language, and with more users there are also more people capable of complaining about it.

I work with languages that are much worse than Javascript, yet they don't receive nearly as much hate because hardly anyone uses them.

One that comes into my mind is ABAP:

[–] NichtElias@sh.itjust.works 44 points 2 years ago (1 children)
[–] oktupol@discuss.tchncs.de 19 points 2 years ago (2 children)

My colleagues and I joke around that SAP stands for Sadness and Pain.

[–] twei@feddit.de 7 points 2 years ago

As you may know SAP is a German company and the name originally was an acronym for SanduhrAnzeigeProgramm, which translates to "hourglass displaying program" - a nod to when busy software would change the mouse cursor into an hour glass - since it was initially conceived as a hardware stress test software - expanding to employee stress tests was just the logical next step.

Things got weird when scammers found a new hustle charging hundreds of dollars per hour pretending it was an ERP solution or similarly outrageous ideas that non-technical people in all kinds of business fell for.

(copied from reddit before it gets deleted)

load more comments (1 replies)
[–] fiah@discuss.tchncs.de 15 points 2 years ago

that's a crime against humanity

[–] QuazarOmega@lemmy.world 9 points 2 years ago

Goddamn, now I'm glad I didn't go forward with an ABAP developer job offer

load more comments (1 replies)
[–] Iteria@sh.itjust.works 20 points 2 years ago (2 children)

Because it's inescapable. Web development is by far the most common type of programming work and even if you're a backend developer you tend to have to touch javascript at some point, so everyone knows the pain of javascript's foot guns and javascript has a lot.

The fact that it's mandatory to do your work invokes bitterness in people. For backend, you can kind of switch around until you find a language you like. For frontend, it's javascript or nothing at all.

Javascript as a language is very out of sync with other commonly used languages. Its footguns are very easy to run into. As a result you have a lot of rituals around just not shooting yourself in the foot. The rituals, libraries, and frameworks around avoiding Javascript's foot guns have been very shifting and changing. Of course, because the javascript ecosystem changes far faster than other languages, there are a lot of rakes for developers to step on to add to the naturally existing foot guns.

Javascript as a language probably shouldn't be the sole language of the internet for a variety of reasons. It's a very hateable language because of how easy it is for newbies to make new terrible code and how common it is. Until something like WASM takes off, the downpour of hate for javascript will continue.

load more comments (2 replies)
[–] fiah@discuss.tchncs.de 20 points 2 years ago

it has a lot of cruft and gotchas and lacks a good standard library (which is why npm is a thing). That means there's a lot of bad javascript code out there and a lot of people who have had bad experiences with it. But, if you take care to not shoot yourself with the included footguns and you know your way around npm, it's a perfectly fine language for its purposes in front- and backend development IMO

[–] masterspace@lemmy.ca 18 points 2 years ago* (last edited 2 years ago) (6 children)

It's wild that Python is getting a shoutout over javascript despite being an even bigger loosely typed mess.

I think it's partially because Python has a reputation as being a serious language for serious people because it's popular amongst data scientists and academics, whereas Javascript is still seen as being popular amongst script kiddies and people building crappy websites for $100 / pop.

That being said, most of the time i hear javascript jokes at work they're pretty tongue in cheek /ironic / the dev isn't really hating on it. I have heard a dev or two make those javascript jokes with a more serious critical tone, and everyone tends to ignore them and not engage because they're pretty clearly just haters who have a general tendency to dislike popular things.

load more comments (6 replies)
[–] SolarMech@slrpnk.net 14 points 2 years ago

It has a rocky start, and a lot of cruft from that era sticked around.

There are also a lot of horrible legacy projects from the pre-ES5 era which are a pain to work with. Often older projects were coded either before people knew how to do javascript right, or before the devs who wrote it knew how to write javascript right.

load more comments (9 replies)
[–] Kolanaki@yiffit.net 34 points 2 years ago

"You guys are stupid. See, they're gonna be lookin' for army guys."

[–] hrxbfrnuructdny@lemmy.world 34 points 2 years ago

Python knows where the real threat is.

[–] nothacking@discuss.tchncs.de 31 points 2 years ago (5 children)

Is python really any better?

[–] superbirra@lemmy.world 17 points 2 years ago (1 children)
[–] Xylight@lemmy.xylight.dev 7 points 2 years ago (17 children)
  • loosely typed: python is the same

  • bad package manager: python is infinitely worse

load more comments (17 replies)
[–] ComradeKhoumrag@infosec.pub 14 points 2 years ago (1 children)

Python is as inefficient as js is ugly

[–] LeFantome@programming.dev 7 points 2 years ago

Well done.

That is like a colleague farewell card that says, “Four years already? It seems like only six months with all that we have accomplished.”

load more comments (3 replies)
[–] quadrotiles@reddthat.com 22 points 2 years ago (2 children)

Ok, admittedly I was using typescript but honestly, I really enjoyed using JavaScript. I kinda feel like people who shit on it have never used it much, or aren't very experienced, or it just wasn't to their taste and they're jumping on the hate train that the others like to conduct.

(I also understand this is a joke dw)

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

I kinda feel like people who shit on it have never used it much, or aren’t very experienced

How much experience do you have? (and don't even think about lying; this is the internet)

[–] quadrotiles@reddthat.com 19 points 2 years ago (4 children)

Definitely 2023 years worth of experience. I taught Jesus himself JS. Which, fun fact, doesn't stand for JavaScript, but stands for JesusScript. I would never lie on the internet.

(4ish years lmao)

load more comments (4 replies)
load more comments (1 replies)
[–] BluDood@lemmy.world 21 points 2 years ago

jokes on you i code the entire stack in JavaScript

[–] rikudou@lemmings.world 21 points 2 years ago (2 children)

Yeah, gonna have to disagree. If I had to choose between JS and Python, I'd shoot myself in the head.

[–] Llewellyn@lemmy.ml 11 points 2 years ago

So you choose JS.

[–] Valmond@lemmy.ml 9 points 2 years ago (9 children)

Python is cool IMO, got loads of libraries and gets your little app up in notime.

Not for larger projects though.

JavaScript is like the unsafest language I have touched in the last 20 years, yikes!

Still would use it as a web front end instead of python ofc.

load more comments (9 replies)
[–] vrighter@discuss.tchncs.de 13 points 2 years ago (5 children)

python in the same league as cpp, rust and c# is the real joke

load more comments (5 replies)
[–] WeDoTheWeirdStuff@kbin.social 12 points 2 years ago
[–] Zellith@lemmy.fmhy.ml 8 points 2 years ago (1 children)

Im just over here in the corner trying to learn Java.

[–] GlitchyDigiBun@lemmy.dbzer0.com 6 points 2 years ago

peaks through the cheap stand-up office blinders from the C# "office" Can you help me debug something rq?

[–] AnonymousLlama@kbin.social 7 points 2 years ago (1 children)

Every few years I go back to giving JS a chance and every time I'm left frustrated. At least it's not as bad as it was a decade ago I guess

load more comments (1 replies)
[–] rms1990@lemmy.ca 7 points 2 years ago

And I'm the smalltalk soldier in my rainbow uni 🌈

[–] LeFantome@programming.dev 7 points 2 years ago (1 children)

PHP is the landmine they are about to step on.

load more comments (1 replies)
load more comments
view more: next ›