this post was submitted on 04 Apr 2024
370 points (96.0% liked)

Programmer Humor

32361 readers
388 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
[โ€“] Carighan@lemmy.world 24 points 7 months ago (1 children)

For bonus points take their code and completely go wild with utterly random indentation and line breaks, just to drive the point home. ๐Ÿ˜ˆ

[โ€“] trolololol@lemmy.world 10 points 7 months ago (1 children)

Pfff just randomly replace tabs with 4 spaces and see the world burn

[โ€“] muntedcrocodile@lemm.ee 3 points 7 months ago (1 children)

4 spaces is the preferred pythons is happy with either but the standard is 4 spaces. Vscodium ensures that.

[โ€“] trolololol@lemmy.world 1 points 6 months ago (1 children)

Your editor is happy with either, but is it happy with both?

[โ€“] muntedcrocodile@lemm.ee 1 points 6 months ago (1 children)

My editor will take either and convert it to 4 spaces. Python can use spaces or tabs but not both in the same file.

[โ€“] trolololol@lemmy.world 1 points 6 months ago (1 children)

Buahahahah I know what to do next commit

[โ€“] muntedcrocodile@lemm.ee 1 points 6 months ago (1 children)

Its the python equivalent of a Greek question mark