this post was submitted on 03 Aug 2023
973 points (97.1% liked)

Programmer Humor

32710 readers
754 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
top 50 comments
sorted by: hot top controversial new old
[–] [email protected] 207 points 1 year ago (7 children)

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

Yep.

[–] [email protected] 138 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.

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

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

load more comments (1 replies)
[–] thewebroach 17 points 1 year ago* (last edited 1 year ago) (2 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.

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

Back in the day before enforcing code formatting via linting tools become commonplace, many programmers often ignore formatting at all and do whatever they please, mixing tabs and spaces in the same file, not indenting their code blocks, mixing camel case and snake case, and a whole lot of other formatting eyesores. One day Guido van Rossum decided enough is enough and created a programming language where such programmers are forced to behave, else their program wouldn't run. He named it Python because he often hiss at those annoying programmers during code reviews.

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

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

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

used for things it wasn’t created for.

so, like 90% of all programming languages

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

what was the original goal of python?

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

sssssssssssssss

[–] [email protected] 21 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

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

Looking nice and upsetting people.

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

That tracks

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

Can confirm

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

But they're both programming languages...

[–] Bye 21 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

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

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

[–] Bye 14 points 1 year ago

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

[–] Aceticon 8 points 1 year ago

Not even close.

Most software out there is not consumer facing (there is a huge amount of custom stuff inside companies of all sizes) and even in the consumer space most software nowadays resides in ... smartphones.

Unless, of course, you count HTML (literally a Markup Language, so data formatting for display not code) as programming, in which case I'll leave you to enjoy your fantasy world.

[–] SloppyPuppy 4 points 1 year ago (1 children)

You kinda forget that for each front end you see theres at least 4 times more backend to support it.

Also there are ton of non fron facing software.

Anyway its not really a competition. No one will be offended if you are wrong or not.

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

The back-end functionality is still web functionality. Just because a user doesn't see all the server stuff doesn't mean it's not necessary to support a website. There are billions of websites across the world, and they almost all use some combination of back-end, front-end, database, and server code.

[–] ShadedCosmos 12 points 1 year ago (3 children)

I think they meant javascript is to web dev as python is to software dev

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

it's a 4chan post, they don't "think" they are lawless animals, deprived from any sense of rationality

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

I think it's a 4chan post and thus intentionally dumb.

load more comments (1 replies)
load more comments (1 replies)
[–] mvirts 110 points 1 year ago (1 children)

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

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

the SAD reality!

[–] betternotbigger 56 points 1 year ago

This one triggers the entire spectrum of human emotion.

[–] garyyo 50 points 1 year ago (1 children)

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

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

Many banking systems sync with one another with txt files so... Yeah...

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

If you think that's bad, don't think about how many important communications in the world happen completely verbally.

[–] Aceticon 10 points 1 year ago

Pretty much all online service APIs (Google APIs, Facebook and so on) out there are text-based.

Granted, JSON formatted text, but still absolutelly human readable text.

The reason for that is because it's agnostic of the machine architectures (stuff like endianess) on both sides.

The really crazy stuff in banking are the old binary protocols (like EDF) from the time when bandwidth was way less than now (so, the early 90s and earlier).

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

(Nobody tell him about the Cobol batch jobs that still run overnight.)

[–] PsychedSy 8 points 1 year ago (1 children)

You don't want to know how bad it is. A good friend is a consultant/business analyst for some salesforce-based loan software. Shit's terrifying.

[–] funkless 4 points 1 year ago (1 children)

SFDC itself is written in Java but uses Javascript-esque APEX for whitelabel development?

[–] PsychedSy 2 points 1 year ago

I mostly meant the base level shit with text files and ridiculous APIs. Converting from one servicing system to another sounds kind of fun, though. I've always enjoyed doing horrible things to data. The most recent one I heard is there's a drag and drop visual coding tool that I'm told can't export to apex - just make calls to it.

[–] CriticallyCarmelized 3 points 1 year ago

Many banking systems sync with one another with txt files.

[–] PeteZ 27 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.

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

Javascript is the javascript of JavaScript

[–] Skymt 16 points 1 year ago

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

[–] [email protected] 4 points 1 year ago (2 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?

load more comments (2 replies)
[–] [email protected] 15 points 1 year ago (2 children)
[–] [email protected] 17 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".

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

How is this rage bait? It seems like an inno-

Wait.

Goddamnit.

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

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

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

Wait let's hear him out

load more comments
view more: next ›