this post was submitted on 16 Jul 2023
12 points (87.5% liked)

Programmer Humor

32050 readers
1604 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

all 22 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 1 year ago (3 children)

C is the sniper you don’t see

[–] [email protected] 2 points 1 year ago

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

[–] [email protected] 1 points 1 year ago (1 children)

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

[–] [email protected] 1 points 1 year ago

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 😄

[–] [email protected] 1 points 1 year ago

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

[–] [email protected] 1 points 1 year ago

Is python really any better?

[–] [email protected] 1 points 1 year ago (1 children)

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

[–] [email protected] 1 points 1 year ago

So you choose JS.

[–] [email protected] 1 points 1 year ago (1 children)

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

[–] [email protected] 0 points 1 year ago (1 children)
[–] [email protected] 1 points 1 year ago

it is a horribly slow, ugly language, with the most braindead scoping rules (apart from js, of course). The only fast parts of it are libraries written in other languages, because python itself is not up to the task for anything more than glueing code from other, better languages together.

[–] [email protected] 0 points 1 year ago (1 children)

PHP is the landmine they are about to step on.

[–] [email protected] -1 points 1 year ago

Glad C++ will be the one step on it cause it deserves it. I’d take PHP over that shit any day

[–] [email protected] -2 points 1 year ago (2 children)

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

[–] [email protected] 1 points 1 year ago (1 children)

While true, there are some languages that are the wrong tool for every job. JS is one of them. I've dreamt of a future where web frontends switched to something sane but instead we got stuff like typescript which is like trying to erect steel beams in quicksand. For web frontends I can understand that historical reasons have lead to this but whoever came up with node thinking JS would be a great backend language has a lot of explaining to do.

[–] [email protected] 0 points 1 year ago (1 children)

I am also interested if anyone can tell me the exact time in our history when JavaScript turned from "Don't you ever use that anywhere on your websites!" into "It's basically every website".

[–] [email protected] 0 points 1 year ago

It was when better sandboxing came out and the only valid complaints about javascript became invalid.

I was there. It was a good time.

[–] [email protected] 0 points 1 year ago (1 children)

Come on, Javascript is pretty nasty. Trying to read that shit always gives me brain tumors. Why do they need to wrap every fucking thing in a function inside a function inside a function that is passed as a parameter to a function inside another function?

Like, bro, you know people are meant to understand what you just wrote?

It just gives too much freedom and people forget they need to write code that is easy to read for people who aren't totally familiar with the code base.

They even bring that shit into typescript. Like they are already using a language that is meant to fix that shit and they are like, nope, let me create 5 nested functions just because.

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago) (1 children)

Can you give an example of the multi nested functions? I was a TS dev for a while and don't remember anything like that. Unless you mean the promise callback functions. Those were a mess but luckily we've mostly moved away from those

[–] [email protected] 0 points 1 year ago (1 children)

People creating functions as objects inside of other functions. A few days ago saw a person create a function with two object functions inside, then passed one of the functions as an argument to the other function. Then returned the second function.

It's hard to find such a mess in other languages. Yeha, functions as objects are cool. Closures are also cool... But why abuse that shit?

[–] [email protected] 1 points 1 year ago

Ahh I remember that sort of JS programming from way back. Do people still do that?? You can just create a class now