7
5mon
16

Tabs vs. Spaces: The War Is Over

https://xn--gckvb8fzb.com/tabs-vs-spaces-the-war-is-over/
SkyNTP - 5mon

Leaded paint was predominant in the 19th and well into the 20th century. That neither made it the right choice, nor did it "win the war". This opinion piece does absolutely nothing to settle the debate, and instead is just dumps more gasoline on the fire.

9
bizarroland @lemmy.world - 5mon

You can have my tabs when you take them from my cold withered body.

7
SubArcticTundra - 5mon

It might have ended differently had they fixed tabs

4
Sylvartas @lemmy.dbzer0.com - 5mon

there is still a problem if any programmers wish to use modern proportional fonts (because a space is no longer the same width as every other character).

Ewww, who uses non monospaced fonts for programming ?

10
Derpgon - 5mon

Probably the same maniac using 8 spaces for indentation in C.

Yes, my uni professor used that, and he was indeed a maniac, a brilliant one.

4
Sylvartas @lemmy.dbzer0.com - 5mon

Lmao I also had a brilliantly mad C teacher who used 8 spaces for indentation. Was yours from eastern Europe by any chance ?

3
Derpgon - 5mon

Czech Technical University in Prague.

2
Sylvartas @lemmy.dbzer0.com - 5mon

Heh. Mine was in France but the guy was from eastern Ukraine

2
Derpgon - 5mon

I mean, it is not unusual for uni C professors using 8 spaces be brilliant madmans 🤣

2
mumblerfish @lemmy.world - 5mon

I was thinking you meant Torvalds

3
davel - 5mon

I’ll use whichever is being used; all I ask for is consistency in a project.

3
MadMadBunny @lemmy.ca - 5mon

Spaces have won?!?! That’s bunshit!!!

3
Gebruikersnaam - 5mon

GDscript also uses tabs, which I thought was an interesting choice by the Godot team. Especially as it seems so heavily inspired by Python.

2
moseschrute - 5mon

Run a code formatter on commit hook. Boom, never complain about tabs, spaces, or any other formatting nonsense ever again. Imo any time spent discussing formatting on PRs is wasted time that could be spent discussing the actual quality of the code.

2
geneva_convenience - 5mon

This article is the worst propaganda I have ever read

1
Justin (koavf)🌻🍉🇪🇭🌿 - 5mon

Then you have lived a charmed life.

1