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

Programmer Humor

23853 readers
1721 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
[–] embed_me@programming.dev 45 points 1 week ago (15 children)

Sometimes I have the misfortune of working with python code written by someone else and I wonder how a language like this became anything more than a scripting language

[–] addie@feddit.uk 36 points 1 week ago (10 children)

I feel that Python is a bit of a 'Microsoft Word' of languages. Your own scripts are obviously completely fine, using a sensible and pragmatic selection of the language features in a robust fashion, but everyone else's are absurd collections of hacks that fall to pieces at the first modification.

To an extent, 'other people's C++ / Bash scripts' have the same problem. I'm usually okay with 'other people's Java', which to me is one of the big selling points of the language - the slight wordiness and lack of 'really stupid shit' makes collaboration easier.

Now, a Python script that's more than about two pages long? That makes me question its utility. The 'duck typing' everywhere makes any code that you can't 'keep in your head' very difficult to reason about.

[–] pmk 4 points 1 week ago (6 children)

How do you feel about other peoples Go code?

[–] sping 2 points 1 week ago (1 children)

Go code is always an abomination.

[–] addie@feddit.uk 1 points 1 week ago

Succinctly and well put.

load more comments (4 replies)
load more comments (7 replies)
load more comments (11 replies)