1321
you are viewing a single comment's thread
view the rest of the comments
[-] mexicancartel@lemmy.dbzer0.com 2 points 1 year ago

Why not TABs? I hate 4 spaces cuz it can get real messy sometimes.

[-] CoderKat@lemm.ee 1 points 1 year ago

I normally love tabs and it's what Go uses both by convention and it's semi opinionated formatter. But PEP-8 suggests spaces and ultimately, consistency is more important.

Not having to argue about tabs vs spaces lets us focus on the real problems, like vim vs emacs.

[-] mexicancartel@lemmy.dbzer0.com 1 points 1 year ago

I am aware but don't know why four spaces is suggested. Tabs are consistant and flexible. Using spaces might cause errors in number of spaces and makes code messy.

Also emacs for the win

[-] amanaftermidnight@lemmy.world 1 points 1 year ago

My editor turns tabs into 4 spaces. No more "mixing tabs and spaces" errors afterwards.

[-] mexicancartel@lemmy.dbzer0.com 3 points 1 year ago

Thats the problem. Then you commit. I clone it. I can't use tabs because you turned everything into spaces. Why not turn spaces into tabs?

this post was submitted on 05 Sep 2023
1321 points (97.4% liked)

Programmer Humor

19623 readers
1 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 1 year ago
MODERATORS