this post was submitted on 28 May 2025
721 points (96.3% liked)

Programmer Humor

23585 readers
1135 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 

Also, do y'all call main() in the if block or do you just put the code you want to run in the if block?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 22 points 3 days ago* (last edited 3 days ago) (3 children)

It really doesn't. It's a scripting language, functions are there but at it's core it runs a script. The issue is that it was so easy to start with that people started doing everything in it, even though it sucks for anything past complex scripts

It is the excel of databases.

[–] [email protected] 13 points 3 days ago (4 children)

What's the difference between a "scripting" language and a "real" one?

[–] [email protected] 3 points 2 days ago

A scripting language controls an existing binary. A non-scripting language is used to create a new binary.

[–] JackbyDev 2 points 2 days ago

Scripting languages are real. Generally people consider dynamic languages scripting languages but it's not that simple.

[–] [email protected] 8 points 3 days ago

Excel recently added the ability to run python code lol

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

compared with other languages at the time, the ease of access and readability makes it worth it. plus, the heavy duty stuff is usually handled by more optimised code line numpy or sklearn...

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

Readability? Me eyes bleed from a day of partially staring at python code, and there is a whole another week of that ahead. Tzinch (Edit: Tzeentch) help me

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

Like in every programming language, it depends who wrote the code. OK, *nearly every programming language, see: LISP.

You can write cryptic, write-only programs in about any language, but you can even write readable and maintainable PERL scripts (despite people claiming this to be impossible).

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

As much as I am inclined to agree with this, still can't

see: LISP

Also, see: Python with more than three lines of logic. I could suspect that's just the me-versus-whitespaces thing, but no, YAML files do not get me dizzy in under thirty seconds of reading. Van Rossum made a huge miscalculation here

[–] PolarKraken 4 points 2 days ago (1 children)

Everyone's welcome to their opinion of course, but I find Python more readable than anything else and I resent the visual clutter required to make intentions plain in other languages. Feels like having a conversation where people say the words "comma", "period", etc.

I also spend more time with Python than anything else and I suspect these two facts about me relate, lol

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

Someone should get their hands on someone like me and someone like you and study their brains. I spend most time with PHP and C++, and Python looks like an attempt to write code like prose literature. Very interesting how much of this is habbit, as it can't be just that: reading prose and poetry in English/Russian/Japanese never produced this kind of resentment

[–] PolarKraken 1 points 21 hours ago* (last edited 21 hours ago) (1 children)

I would love that! I do think there are probably interesting underlying personality factors / preferences for a lot of this stuff as well.

I do think that many of Python's characteristics map to my own personality and I bet there's something to that. Things like syntax of course, but not strictly syntax, also things like "The Zen of Python", and the way its a "jack-of-all-trades, master-of-none". I also really kind of need the freedom and accompanying responsibility to break any "rules" on a whim (Python will happily let you overwrite its own internals while running, for instance), but I almost never do anything that uses it...

I could probably keep going lol. Feels like a "people looking like their pets" scenario, lmao

[–] [email protected] 1 points 6 hours ago* (last edited 6 hours ago)

Thank you for sharing your thoughts :)

Python will happily let you overwrite its own internals while running, for instance

Damn, that's cool and I did not even know. Pretty sure I would not do this in production code, but very glad very this possibility exists