this post was submitted on 28 Jul 2024
1301 points (99.0% liked)

Programmer Humor

19551 readers
1330 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 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] VonReposti@feddit.dk 7 points 3 months ago (2 children)

Funny, the forced indentation is what I hate about Python. If you think a missing semicolon can be hard to catch, don't ever think about a missing whitespace :p

The end keyword really isn't a big deal for me. I find it to be a good way to easily spot the end of a method. But if you wouldn't like it I'd still find it a good compromise to avoid syntax issues due to whitespace.

[–] hglman@lemmy.ml 5 points 3 months ago (1 children)

i can count on one hand how many times ive had white space issues in 15 years of using python. its just not an issue

[–] 0ops@lemm.ee 3 points 3 months ago

Same and agreed, especially if you keep your functions small and focused as you should. 3-5 indents is nbd to keep track of, and if you need more than that... No you don't, refactor.

I've had way more hangups with brackets then indentation, personally, not that either is a super frequent issue, but I'm indenting anyway, so brackets are redundant and just another thing I have to keep track of

[–] JackbyDev@programming.dev 4 points 3 months ago

} helps me easily spot the end of stuff. end just blends into the statements.