this post was submitted on 01 Mar 2025
220 points (100.0% liked)

Programmer Humor

21882 readers
827 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
 

Probably not a good title to seek upvotes. If it does get upvotes, more programmers get share in your pain ๐Ÿ˜…

you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 59 points 3 weeks ago (6 children)

Figure out if they prefer spaces or tabs, insist on the other.

Please note this won't work on Pythonistas as they've already had their spirit thoroughly broken.

[โ€“] [email protected] 23 points 3 weeks ago

A haiku for you:

Tabs or four spaces

Never a semicolon

Broken in spirit

[โ€“] [email protected] 14 points 3 weeks ago (1 children)

What if you use tabs for indentations and space for alignment?

[โ€“] [email protected] 10 points 3 weeks ago (1 children)

It's alright... but have you considered spaces for indentation and tabs for alignment?

[โ€“] [email protected] 4 points 3 weeks ago

Uh, that would be infuriating to see. (Yes, I can see tabs in KDE Kate)

[โ€“] [email protected] 4 points 3 weeks ago

For python, see which one they use and secretly replace a single indentation with the other.

[โ€“] [email protected] 2 points 3 weeks ago

Tabs set at 1 space.

[โ€“] [email protected] 1 points 3 weeks ago (1 children)

I've only ever heard raging between the two, but never why. I'm guessing there were competing languages with different standards, or maybe historic hardware limiting input sets that kicked this debate off or?

[โ€“] [email protected] 2 points 3 weeks ago (1 children)

A few languages force a decision (usually towards tabs), but otherwise it's just a question of aesthetics vs. accessibility.

[โ€“] [email protected] 3 points 3 weeks ago

I see.

My worst experience was with spaces in code from an engineering professor who used a non-monospace typefont. Sadist. Though it was comic sans, they were probably just dyslexic. Despite the class focusing on numerical methods, we had to hand write Matlab code on paper using proper syntax. I have no clue why. Never learned much numerical method, nor were we ever allowed to use Matlab except on a few "projects" during the term. I found out about the spaces when i had to debug his example code he gave as solutions(which we were graded against). I saw errors and had to confirm i wasn't losing my mind. ...I wasn't. Anyways there was a mix of spaces and tabs to align the comic sans.

TLDR: I couldn't care less. Just don't code in word, and use a monospace font.

[โ€“] [email protected] 1 points 3 weeks ago

Makefiles require tabs. Spaces don't work. I hate it.