515
you are viewing a single comment's thread
view the rest of the comments
[-] bleistift2@sopuli.xyz 23 points 8 months ago

You can use spaces in Python.

[-] marduk@lemmy.sdf.org 20 points 8 months ago

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

[-] fartsparkles@lemmy.world 6 points 8 months ago

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

[-] qjkxbmwvz@startrek.website 5 points 8 months ago

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.

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

[-] ChaosMonkey@lemmy.dbzer0.com 2 points 8 months ago

Depends on the mood.

[-] firelizzard@programming.dev 16 points 8 months ago

Indentation-driven control flow is one of the most cursed things ever invented, excluding things explicitly designed to inflict pain or death.

[-] CompactFlax@discuss.tchncs.de 9 points 8 months ago

White space sensitive languages are evil.

[-] KSPAtlas@sopuli.xyz 5 points 8 months ago

Haskell has the choice of both indentation based and brackets for things like do blocks, but most people use indentation based cause it's the norm and looks cleaner

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

Programmer Humor

32950 readers
1325 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 3 years ago
MODERATORS