this post was submitted on 07 Jun 2026
178 points (97.8% liked)

Programmer Humor

42408 readers
5 users here now

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

Rules:

founded 6 years ago
MODERATORS
top 15 comments
sorted by: hot top controversial new old
[โ€“] eager_eagle@lemmy.world 20 points 4 days ago (1 children)

so she wants to be forgotten?

She wants to cause confusing errors on completely different lines

[โ€“] Natanox@discuss.tchncs.de 6 points 4 days ago (4 children)

Meaningful Indentation > Unnecessary visual clutter

I will die on this hill. Python is wonderfully readable as it saves on unnecessary characters because indentations as well as line breaks are (usually) part of the syntax. Something like C++ with all its :;{}<> is just painful to read, not to mention annoying to write on many non-US keyboard layouts such as german without modifications.

I think having both the indentation and the braces surrounding code is much better than just indentation or braces, since it removes any ambiguity of what code goes to what if, for, or while loop/condition. we already have to memorize precedence to define ambiguous expressions. Why have another set of rules that could otherwise be prevented with braces and indentation?

The indentation is the visual clutter to me.

Linebreaks are meant for casual readability, not end of statement, that's how we write long statements on multiple lines. Therefore, we need a symbol for end-of-statement.

[โ€“] eldavi@lemmy.ml -1 points 4 days ago (1 children)

said like someone who's never had to parse through 10k+ lines of python source without an IDE. lol

[โ€“] anon_8675309@lemmy.world 1 points 4 days ago

Why would you let it grown that size to start with?

[โ€“] somegeek@programming.dev 0 points 4 days ago (1 children)

i code using a german layout and to type any kind of bracket you have to use a modifier key and a number. its awkward, but i am to lazy to switch between layouts and sometimes work on machines where i can't change the layout easily.

python is quite nice to programm on a german layout, because it tends to have fewer braces than other languages.

tl;dr: german keyboard layout "hides" many symbols on a second layer beneath the number row which makes it awkward to use for many programming languages.

[โ€“] roz@lemmy.blahaj.zone 6 points 4 days ago (2 children)

What's worse, that Python doesn't need semicolons, or that if used, they are ignored? ๐Ÿค”

[โ€“] ViatorOmnium@piefed.social 13 points 4 days ago

They are not ignored, you can use them to put multiple statements in one line

[โ€“] usernamesAreTricky@lemmy.ml 5 points 4 days ago* (last edited 4 days ago)
>>> print("proof by counterexample in a python REPL")
proof by counterexample in a python REPL
>>> x = 2; print(x)
2
>>> print("this is not ignored"); print("it's just mostly useless"); print("but you can use as many as you want")
this is not ignored
it's just mostly useless
but you can use as many as you want
[โ€“] vatlark@lemmy.world 3 points 4 days ago (1 children)

She wants to be chosen. In python semicolons are optional in most cases. You choose to add them... mostly because you have been writing a lot of c lately

[โ€“] flying_sheep@lemmy.ml 2 points 4 days ago

And then your auto-formatter removes them in a blink.

[โ€“] darklamer@feddit.org 3 points 4 days ago

LISP master race.