Tab characters are space efficient and configurable for each person in their editor. Space characters are consistent between developers.
Solution: each tabspace indent is a random width, making it both inconsistent and non-configurable. Also, each character is the size of at least four regular characters, so it鈥檚 not even space efficient
Create a language where tabs are used for indentation while comments are formed by one space character at the beginning of a line, followed by a tab. Exactly eight spaces at the beginning of a line means that line is continuation of the previous one.
My workplace almost came to blows as every 2nd source file was auto-formatted to varying levels of spaces.
I was told this after I complained to my manager that someone came into my project fresh and started autoformatting our code to 1 space on every file they worked on.
30 Comments
T156@lemmy.world · 31 pts · 3y
That's why you get the best of both worlds, and combine them to use tabspaces. Everyone will hate you equally, achieving true equality in the process.
mundane_party@lemmy.world · 25 pts · 3y
Tab characters are space efficient and configurable for each person in their editor. Space characters are consistent between developers.
Solution: each tabspace indent is a random width, making it both inconsistent and non-configurable. Also, each character is the size of at least four regular characters, so it鈥檚 not even space efficient
PrometheusG@lemmy.world · 6 pts · 3y
So, we're using Word?
Estinos@lemm.ee · 6 pts · 3y
MyNameIsRichard@lemmy.ml · 8 pts · 3y
Cries in python
dojan@lemmy.world · 3 pts · 3y
This sounds perfect.
igorlogius@lemmy.world · 7 pts · 3y
thebestaquaman@lemmy.world · 4 pts · 3y
rooster_butt@lemmy.world · 3 pts · 3y
Honestly the best solution is tabs for indentation and spaces for alignment.
Chet_Awesomelad@kbin.social · 15 pts · 3y
I think you put those images the wrong way around, pal 馃槧
shiftenter@kbin.social · 7 pts · 3y
I agree, the others are wrong.
Anarch157a@lemmy.world · 13 pts · 3y
Create a language where tabs are used for indentation while comments are formed by one space character at the beginning of a line, followed by a tab. Exactly eight spaces at the beginning of a line means that line is continuation of the previous one.
Maybe I'll start an Anarchy Programming sublemmy.
ThatSandwichGuy@lemmy.world · 1 pts · 3y
Really nice, I like
Eavolution@kbin.social · 11 pts · 3y
The only solution is to use a curly brace language and write everything on one line.
draggeta@kbin.social · 5 pts · 3y
The real question is spaces around curly braces or not?
T156@lemmy.world · 2 pts · 3y
Have spaces around curly braces modify the behaviour. That way, you can incorporated both.
polskilumalo@lemmygrad.ml · 10 pts · 3y
The only wrong person here is the one with whitespace marked invisible smh
Dirk@lemmy.ml · 12 pts · 3y
I路don't路know路what路you路mean.
jkure2@lemmy.world · 2 pts · 3y
duncesplayed@lemmy.one · 8 pts · 3y
Just set your tab width to 1. No more argument now.
drew_belloc@programming.dev · 8 pts · 3y
Finally someone that speaks the hard truth that we need to hear
DonjonMaister@programming.dev · 7 pts · 3y
I have no problem with either. But I do have a problem with people who use the space bar instead of the tab key.
RiikkaTheIcePrincess@kbin.social · 6 pts · 3y
Hard to imagine how anyone could be so wrong :P
astrsk@kbin.social · 6 pts · 3y
I prefer to use three alt+255
IHawkMike@lemmy.world · 2 pts · 3y
You just reminded me my brothers and I used to use alt+255 back in the DOS days to rename files that we didn't want our parents opening. 馃榿
gvasco@discuss.tchncs.de · 1 pts · 3y
A bit useless if there's no character in front of the lead
Dirk@lemmy.ml · 6 pts · 3y
3 spaces!
Fight me!
zephyr@lemmy.world · 2 pts · 3y
More like
expandmesyphe@kbin.social · 4 pts · 3y
My workplace almost came to blows as every 2nd source file was auto-formatted to varying levels of spaces.
I was told this after I complained to my manager that someone came into my project fresh and started autoformatting our code to 1 space on every file they worked on.
emptyother@lemmy.world · 1 pts · 3y
Understandable. When the code is already written, one follow its defaults no matter what ones own preferences are. Thats just common courtesy.
Mike835@kbin.social · 3 pts · 3y
I've always found it weird people call it white spacing when most coders use night mode on their ide, shouldn't it be black space?
zexu@lemmy.ml · 1 pts · 3y
馃槀馃槀馃槀
Lachy@lemmy.world · 2 pts · 3y
My indentation is secretly the actual program written in the whitespace programming language.
tr00st@lemmy.tr00st.co.uk · 2 pts · 3y
As a JS developer, I prefer to use semicolons for indentation.