264
you are viewing a single comment's thread
view the rest of the comments
[-] 30p87@feddit.org 23 points 11 hours ago

Almost any language is OK, but Rust is just so, so fucking ugly

[-] Lembot_0006@programming.dev 18 points 11 hours ago

FORTRAN isn't a beauty either.
And Python is strange as hell with its mandatory tabs.

[-] bleistift2@sopuli.xyz 17 points 11 hours ago

You can use spaces in Python.

[-] marduk@lemmy.sdf.org 17 points 11 hours ago

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

[-] qjkxbmwvz@startrek.website 4 points 6 hours 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.

[-] hemko@lemmy.dbzer0.com 4 points 3 hours 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.

[-] TeamAssimilation@infosec.pub 11 points 10 hours 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.

[-] fartsparkles@lemmy.world 3 points 9 hours ago

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

[-] firelizzard@programming.dev 9 points 9 hours ago

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

[-] KSPAtlas@sopuli.xyz 2 points 3 hours 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

[-] CompactFlax@discuss.tchncs.de 7 points 9 hours ago

White space sensitive languages are evil.

load more comments (18 replies)
load more comments (56 replies)
this post was submitted on 17 Dec 2025
264 points (97.1% liked)

Programmer Humor

27898 readers
2126 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