Tabs vs. Spaces: The War Is Over

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

5 points · 16 comments · view on lemmy.world

16 Comments

SkyNTP@lemmy.ml · 9 pts · 1y

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.

bizarroland@lemmy.world · 7 pts · 1y

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

davel@lemmy.ml · 3 pts · 1y

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

SubArcticTundra@lemmy.ml · 3 pts · 1y (7 replies)

It might have ended differently had they fixed tabs

Sylvartas@lemmy.dbzer0.com · 11 pts · 1y (6 replies)

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 ?

derpgon@programming.dev · 4 pts · 1y (5 replies)

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.

mumblerfish@lemmy.world · 3 pts · 1y

I was thinking you meant Torvalds

Sylvartas@lemmy.dbzer0.com · 3 pts · 1y (3 replies)

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

derpgon@programming.dev · 2 pts · 1y (2 replies)

Czech Technical University in Prague.

Sylvartas@lemmy.dbzer0.com · 2 pts · 1y (1 reply)

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

derpgon@programming.dev · 2 pts · 1y

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

MadMadBunny@lemmy.ca · 3 pts · 1y

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

Gebruikersnaam@lemmy.ml · 2 pts · 1y

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

moseschrute@lemmy.ml · 2 pts · 1y

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.

geneva_convenience@lemmy.ml · 1 pts · 1y (1 reply)

This article is the worst propaganda I have ever read

koavf@lemmy.ml · 1 pts · 1y

Then you have lived a charmed life.