this post was submitted on 03 Aug 2023
849 points (96.9% liked)

Programmer Humor

32371 readers
425 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
all 37 comments
sorted by: hot top controversial new old
[–] Dirk@lemmy.ml 171 points 1 year ago (7 children)

Easy to learn, hard to master, used for things it wasn’t created for.

Yep.

[–] dreadgoat@kbin.social 119 points 1 year ago

used for things it wasn’t created for

I think Python gets a point here, as it is very good at doing what it was created for.
Javascript even sucks at its stated goal.

[–] MaximumOverflow@lemmy.ca 78 points 1 year ago (1 children)

You don't master Javascript, ever. You just become accustomed to the madness and stop caring, while sometimes doing things right.

[–] PeWu@lemmy.ml 1 points 1 year ago
[–] thewebroach@lemmy.world 17 points 1 year ago* (last edited 1 year ago) (1 children)

Gotta say, ive done magical things in Javascript. NodeJS in particular can do damn near anything you set your mind to, and it doesnt give a damn if you use tab or 4 spaces.

[–] PeWu@lemmy.ml 6 points 1 year ago

For real, you really can do anything there, sometimes sacrificing efficiency, but still.

[–] MaxElFantasma@mujico.org 14 points 1 year ago

used for things it wasn’t created for.

so, like 90% of all programming languages

[–] Reborn2966@feddit.it 11 points 1 year ago (2 children)

what was the original goal of python?

[–] Kerrigor@kbin.social 46 points 1 year ago

sssssssssssssss

[–] jerkface@lemmy.ca 19 points 1 year ago

The goal for Python 3 was to be an all purpose language that the general population could use for their everyday computing tasks

[–] Steeve@lemmy.ca 6 points 1 year ago (1 children)
[–] Anticorp@lemmy.ml 28 points 1 year ago (2 children)

Looking nice and upsetting people.

[–] Steeve@lemmy.ca 6 points 1 year ago

That tracks

[–] illectrility@sh.itjust.works 4 points 1 year ago

Can confirm

[–] JackGreenEarth@lemm.ee 3 points 1 year ago (2 children)

But they're both programming languages...

[–] Bye@lemmy.world 17 points 1 year ago (1 children)

That’s the joke

It’s implying js isn’t a programming language because web stuff isn’t real programming

[–] Anticorp@lemmy.ml 3 points 1 year ago (1 children)

Web stuff is like 99% of all programming across the world, but okay.

[–] Bye@lemmy.world 12 points 1 year ago

Don’t get mad at me I’m just explaining it

[–] CheezyWeezle@lemmy.world 1 points 1 year ago

They do share a significant commonality, though; they are both interpreted languages, rather than compiled. Sure, you can compile them, but they are meant to be run interpreted so you can quickly and easily tweak and change things and not have to wait for compilation to see the results. In that regard they are very comparable.

[–] mvirts@lemmy.world 87 points 1 year ago (1 children)

Because JavaScript isn't a programming language, it's a compilation target 😅

[–] darcy@sh.itjust.works 15 points 1 year ago

the SAD reality!

[–] betternotbigger@lemmy.world 48 points 1 year ago

This one triggers the entire spectrum of human emotion.

[–] PeteZ@lemmy.world 19 points 1 year ago (2 children)

I had to do a project once with JavaScript. I did not enjoy the experience. In my opinion, a language where you need a reference to tell true from false is a bad language. So maybe JavaScript is the JavaScript of languages.

[–] Admin@tsck.org 8 points 1 year ago (1 children)

Javascript is the javascript of JavaScript

[–] Skymt@lemmy.world 11 points 1 year ago

It's only JavaScript if it is from the ECMA region in Europe. Otherwise it's just sparkling java...

[–] Liz@midwest.social 2 points 1 year ago (1 children)

I'm not a programmer but I took a class in JavaScript. Unless I'm misunderstanding what you mean by reference, I don't recall that feature of the language. Can you explain?

[–] PeteZ@lemmy.world 1 points 1 year ago

A language reference (a manual). It’s not a language feature.

[–] treadful@lemmy.zip 12 points 1 year ago (2 children)
[–] lemmyvore@feddit.nl 16 points 1 year ago

That's not even good rage bait.

Rage bait would be for example if you said "they could fix everything that's wrong with PHP but Python already exists".

[–] colourlessidea@feddit.de 10 points 1 year ago

Since JavaScript is newer than Python, sure JS is the Python of programming languages /s

[–] _s10e@feddit.de 4 points 1 year ago
[–] cia@lemm.ee 4 points 1 year ago

Wait let's hear him out

[–] garyyo@lemmy.world 1 points 1 year ago

Python is the connective tissue holding together library calls and some of our most advanced AI research is reliant on that. mildly concerning

[–] grapes@lemmy.world 1 points 1 year ago
[–] AlexisFR@jlai.lu 0 points 1 year ago (1 children)
[–] loutr@sh.itjust.works 2 points 1 year ago