this post was submitted on 13 Jul 2023
182 points (100.0% liked)

Programmer Humor

32503 readers
467 users here now

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

Rules:

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] Rooki@lemmy.world 20 points 1 year ago (9 children)

And added

  • Shitty
    • Little
    • Indentations
[–] BigBon@lemmy.fmhy.ml 7 points 1 year ago (1 children)

And then you do the same in c with ; for better readability

[–] TwilightKiddy@programming.dev 3 points 1 year ago (1 children)

Sometimes inline stuff is more readable.

[–] fushuan@lemm.ee 3 points 1 year ago* (last edited 1 year ago)

We got that in python too!

your_mom = "the best" if i_got_icecream() else "just good"

Edit: on a more serious note, I'm not sure if python's syntax helps with readability, in the real world everyone indents or you won't really keep your job, and I've read some really shitty python code anyway, indented or not.

If a c/++/js/whatever file is unreadable, grab your favourite flavour of autoformatter and run it to read the thing, but shitty naming won't get fixed by that.

load more comments (7 replies)