this post was submitted on 17 Dec 2025
515 points (96.4% liked)

Programmer Humor

28016 readers
1660 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
 
you are viewing a single comment's thread
view the rest of the comments
[–] marduk 23 points 1 week ago (7 children)

Two, three or four spaces? If you answer wrong I'll never forgive you

[–] ChaosMonkey@lemmy.dbzer0.com 2 points 5 days ago

Depends on the mood.

No one will ever know. That is my editor's job. XD

[–] TeamAssimilation@infosec.pub 16 points 1 week ago

Whatever your place defines as a standard. I’ve seen ugly code in C, JavaScript, Java, etc., that uses them all over the place because they’re not mandatory.

If you don’t have consistent indenting, your code looks like copy/paste from several sources; but if you do have consistent indenting, then the indenting of Python is a non-issue.

[–] qjkxbmwvz@startrek.website 7 points 1 week ago (1 children)

Per the Linux kernel coding style:

Tabs are 8 characters, and thus indentations are also 8 characters. There are heretic movements that try to make indentations 4 (or even 2!) characters deep, and that is akin to trying to define the value of PI to be 3.

[–] hemko@lemmy.dbzer0.com 8 points 6 days ago

First off, I’d suggest printing out a copy of the GNU coding standards, and NOT read it. Burn them, it’s a great symbolic gesture.

[–] fartsparkles@lemmy.world 6 points 1 week ago

I’m rather partial to five myself but only when I’m feeling fancy.