this post was submitted on 27 Sep 2026
113 points (86.9% liked)

Dull Men's Club

4807 readers
184 users here now

An unofficial chapter of the popular Dull Men's Club.

https://dullmensclub.com/

1. Relevant commentary on your own dull life. Posts should be about your own dull, lived experience. This is our most important rule. Direct questions, random thoughts, comment baiting, advice seeking, many uses of "discuss" rarely comply with this rule.

2. Original, Fresh, Meaningful Content.

3. Avoid repetitive topics.

4. This is not a search engine
Use a search engine, a tradesperson, Reddit, friends, a specialist Facebook group, apps, Wikipedia, an AI chat, a reverse image search etc. to answer simple questions or identify objects. Also see rule 1, “comment baiting”.

There are a number of content specific communities with subject matter experts who can help you.

Some other communities to consider before posting:

5. Keep it dull. If it puts us to sleep, it’s on the right track. Examples of likely not dull: jokes, gross stuff (including toes), politics, religion, royalty, illness or injury, killing things for fun, or promotional content. Feel free to post these elsewhere.

6. No hate speech, sexism, or bullying No sexism, hate speech, degrading or excessively foul language, or other harmful language. No othering or dehumanizing of anyone or negativity towards any gender identity.

7. Proofread before posting. Use good grammar and punctuation. Avoid useless phrases. Some examples: - starting a post with "So" - starting a post with pointless phrases, like "I hope this is allowed" or “this is my first post” Only share good quality, cropped images. Do not share screenshots of images; share the original image.

.

founded 2 years ago
MODERATORS
 

It is SO STUPID that spaces are widely preferred for indentation in code.

For the past, I don't know, two hours I've been trying to fix YAML formatting issues that could have been fixed without any human intervention if only tabs were used. (It's a big file, hence the duration.) (I know YAML doesn't support tabs. That's kind of my point.)

I even reluctantly asked Gemini (forced upon me by work; I was hoping it would change my mind in this case) why anyone would prefer spaces. It said the same irrelevant thing most people say: because some tools don't support tabs properly.

Know what that sounds like to me? A problem with the fucking tool.

I don't know if this is the right place to post this, but I can't think of a better option.

top 50 comments
sorted by: hot top controversial new old
[–] masterspace@lemmy.ca 41 points 1 week ago* (last edited 1 week ago) (19 children)

No.

Wanting two different white space characters that are indistinguishable from each other, when a single one will do, is stupid.

Also, YAML is stupid, as is every language that chooses to use whitespace as a delimiter (fight me python nerds).

[–] fonix232@fedia.io 21 points 1 week ago (2 children)

I agree on indentation as delimiter being stupid for a PROGRAMMING language, but for markup/data serialisation languages that are primarily meant to be human readable, it is a great solution.

[–] prettybunnys@piefed.social 11 points 1 week ago

Syntax can be your delimiter, and white space done how the human sees fit. That’s the proper solution, imo

[–] masterspace@lemmy.ca 6 points 1 week ago* (last edited 1 week ago) (3 children)

Yeah well you're wrong.

Braces help everyone, just like punctuation does. Try and read a Cormack McCarthy novel and the importance of punctuation to denote structure for readability will become immediately apparent.

Using whitespace as a delimiter is just nerds min maxing too far.

[–] charokol@lemmy.zip 5 points 1 week ago (1 children)

I don’t know, I’ve never found Python structure remotely hard to read

Except when some chucklehead used two character intents. This is why tabs are superior; if you want to be squinty, be squinty. The rest of us get 8 char intents that make the logic easy to see.

[–] victorz@lemmy.world 5 points 1 week ago (1 children)

Yeah well you're wrong.

Relax, this is clearly a subjective matter.

[–] InternetCitizen2@lemmy.world 6 points 1 week ago (2 children)

Lemmy is a niche of a niche. People can't relax around here.

[–] victorz@lemmy.world 4 points 1 week ago

Some people are just so incredibly "AKQCSHUALLY" about certain things. And they don't even see that there's no right or wrong, it's just your use case vs mine. Narrow-minded af.

load more comments (1 replies)
load more comments (1 replies)
[–] Kolanaki@pawb.social 8 points 1 week ago (2 children)

I agree having two is stupid. That's why it should be a tab instead of multiple spaces.

The indentation doesn't even get parsed. It's just there for human readability.

[–] thenextguy@sh.itjust.works 3 points 1 week ago

Haaave you met python?

load more comments (1 replies)
[–] victorz@lemmy.world 5 points 1 week ago

Everything that doesn't align with my subjective, personal mental model is stupid. 😭

load more comments (16 replies)
[–] brax@sh.itjust.works 18 points 1 week ago (1 children)

I loathe YAML (and Python for that matter). Anything that uses whitespace as syntax is a problem. The exception is Whitespace, it gets a pass for being hilarious.

I couldn't agree more with you though - it's a problem with the tool. If it doesn't support tabs that's not my problem, and if the language used whitespace for style instead of syntax everything would still work fine.

[–] CompactFlax@discuss.tchncs.de 4 points 1 week ago

Whitespace sensitive is devils handiwork, tabs vs soaces is simply making that evident.

[–] BitUnWise@programming.dev 18 points 1 week ago

The classic programming holy war. As far as code is concerned, just have a formatter for the language, whichever tabs or spaces the formatter uses. I just hit tab and let the formatter decide. I most use Rust and I honestly had to lookup if rustfmt used tabs or spaces because I honestly didn't remember.

As for the YAML part, that's just because YAML sucks

[–] thenextguy@sh.itjust.works 17 points 1 week ago

Tabs for indentation / Spaces for alignment

[–] BCsven@lemmy.ca 17 points 1 week ago (2 children)

We have a 40+ year old software (still developed, but some stuff never changed). They have the software read tables from space separated files. They trouble is each line has to line up with columns above it, so if you have a long string in one row, you have to go to every single line and space them with empty space to all line up the same.

To make it even worse it was based on 80 character max, so if your column headers are more than 80, you create a second line with more column headers. So row 1 is your columns, row 2 is your next set of columns. Row 3 are spaced entries to line up with row 1. Row 4 are spaced entries to line up with row 2.

And word wrap dosnt work because column rows have a CR after them.

Its a freaking nightmare. This is why tabs are better

[–] farmgineer@nord.pub 9 points 1 week ago (1 children)

You can probably commiserate with the Japanese postal CSV, some of whose horror is captured here: https://www.dampfkraft.com/posuto.html

[–] BCsven@lemmy.ca 7 points 1 week ago (1 children)

Oh, god. Humans did this formatting abomination twice?

[–] farmgineer@nord.pub 9 points 1 week ago

Japan and IT have an ... Interesting relationship. If you can code, looking at parsing libraries can be interesting. There are all kinds of csv-ish abominations here. Multiple header rows, different headers if a line is empty, etc.

[–] rektdeckard@lemmy.world 4 points 1 week ago (3 children)

That sounds like a simple problem that could safely be fixed in a day or days depending on the size of the data set, with a high degree of confidence.

load more comments (3 replies)
[–] InEnduringGrowStrong@sh.itjust.works 17 points 1 week ago (1 children)

What if... we invented a character with the sole purpose of delimiting indentation?
People could even configure whatever width makes sense to them locally. We could call it fabulations with how fabulous it would be.

load more comments (1 replies)
[–] neidu4@piefed.social 16 points 1 week ago (2 children)

I too prefer tabs. It's always been that way. It annoys me when an editor tries to be smart with spaces, and insert auto indentation instead of an actual tab character. It annoys me even more when I press the tab key, and the editor interprets that as "I guess that means you want spaces.".

I will concede that tabs can be a bit too wide when you end up nesting a bunch of stuff, so I'm fine with them being displayed as a set of spaces, but when I hit tab, I want an actual tab character. Otherwise I would use the spacebar.

[–] 0ops@piefed.zip 12 points 1 week ago (1 children)

Most editors I've used let you set a tab width in units of spaces. I prefer tabs at a width of two spaces. That's the great thing about tabs though, we can all share the same codebase and set the tab width to whatever we each desire

[–] toynbee@lemmy.world 7 points 1 week ago

That's my whole point!

I will concede that tabs can be a bit too wide when you end up nesting a bunch of stuff

Nope, that’s a code smell; if your code is veering off into the rhubarb because you’re nesting like crazy then that’s a signal to break up your function. 8 char tabs help you code better.

[–] HubertManne@piefed.social 13 points 1 week ago (8 children)

tabs have never been a consistant thing. its basically just a certain amount of spaces. I can totally see why tabs would not be used.

[–] andyburke@kbin.earth 16 points 1 week ago

Exactly, and by design: each user is allowed to set their own tab width and not mess everyone else up.

Like 8 space tabs? Go for it.

Want only 2-space indents? Just update your settings.

The semantic mean of a tab is "indent" - it should be up to each user what their idea of an appropriate indent width is.

load more comments (7 replies)
[–] hardcoreufo@lemmy.world 10 points 1 week ago

100% Whitespace should not be a funtional element of a language. Let me format it however looks best to me then just end the line with a ;

[–] Gormadt@slrpnk.net 8 points 1 week ago (1 children)

The kind of coding I do is amateur hour at best and I use tabs instead of spaces

It's neater and (for the kinds of stuff I do) works

Also makes finding my errors easier

[–] toynbee@lemmy.world 7 points 1 week ago

Sounds like you're doing it right, regardless of what style guides say.

[–] kieron115@startrek.website 7 points 1 week ago (1 children)
[–] toynbee@lemmy.world 6 points 1 week ago (1 children)

I knew someone was going to reference this. It's surprising that it took so long.

load more comments (1 replies)
[–] dudeface@lemmy.world 5 points 1 week ago (7 children)

I have worked on projects that get run through automatic formatting when committed to repos

Perhaps you need something like that and you can auto format the way you want on the way out

load more comments (7 replies)
[–] Cethin@lemmy.zip 5 points 1 week ago

The good reason I've heard is because it's consistent. Tabs can change length depending on what's displaying it (this is both a feature and an issue). Spaces will mostly be consistent.

However, you say the issue is with the tool, and I agree, but in a more complex way. A good tool won't really care which you use. A good tool can interpret them identically and adjust the display to your preference. Bad tools are why people will have a preference for one or the other, and the above is the good argument for (and also against) spaces instead of tabs.

[–] pineapplelover@lemmy.dbzer0.com 5 points 1 week ago (1 children)
load more comments (1 replies)
[–] burt@programming.dev 5 points 1 week ago (4 children)

i fought against tabs for years because I figured one character vs four will decrease file size (I'm old enough to remember a time when that mattered) but eventually gave up to spaces as I started working with more and more collaborators and found consistency to be more important than a few bytes. now if only we can solve line endings.

[–] toynbee@lemmy.world 6 points 1 week ago (2 children)

Maybe I'm confused, but it seems like you used to dislike tabs, but now dislike tabs?

load more comments (2 replies)
load more comments (3 replies)
[–] boonhet@sopuli.xyz 4 points 1 week ago (1 children)

I just forget about it because my editor changes my tabs to spaces so I usually hit the tab key anyway. Would prefer tabs, but it is what it is.

load more comments (1 replies)
[–] andyburke@kbin.earth 4 points 1 week ago (1 children)
load more comments (1 replies)
[–] CombatWombat@feddit.online 3 points 1 week ago (2 children)

You should create an elaborate set of tiles making your case and attach them to the asphalt on roads to convince folks to switch.

load more comments (2 replies)
load more comments
view more: next ›