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:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Easy to learn, hard to master, used for things it wasn’t created for.
Yep.
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.
You don't master Javascript, ever. You just become accustomed to the madness and stop caring, while sometimes doing things right.
Is there a typescript analogue for python? Preferably that adds curly braces?
Type Annotations and other typing-related stuff are built into the language/standard library.
To get a real benefit you should use a static type checker like mypy.
Just be a decent human being and use type hints in python, problem solved.
from __future__ import braces
Give it a go
Go.
Oh, is that what the Go is all about?
I agree.
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.
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.
For real, you really can do anything there, sometimes sacrificing efficiency, but still.
so, like 90% of all programming languages
what was the original goal of python?
sssssssssssssss
The goal for Python 3 was to be an all purpose language that the general population could use for their everyday computing tasks
What was it created for?
Looking nice and upsetting people.
That tracks
Can confirm
But they're both programming languages...
That’s the joke
It’s implying js isn’t a programming language because web stuff isn’t real programming
Web stuff is like 99% of all programming across the world, but okay.
Don’t get mad at me I’m just explaining it
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.
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.
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.
I think they meant javascript is to web dev as python is to software dev
it's a 4chan post, they don't "think" they are lawless animals, deprived from any sense of rationality
I think it's a 4chan post and thus intentionally dumb.
I read it as them both being loose-typed interpreted and widelly used languages.
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.