DEV Community

Discussion on: Tabs are objectively better than spaces, and here's why

Collapse
 
raddevus profile image
raddevus • Edited

This is a good and well thought out argument and I liked reading it, because tabs versus spaces is always in the back of my mind. However, I hate that I am now thinking about it. 😄

I just opened up a recent project in Visual Studio Code and examined a few of the different files. HTML - tabs, JS files are spaces. Oy!! 😖
I also decided to DuckDuckGo on "Visual Studio Code spaces versus tabs" and I found out that Visual Studio Code itself "decides which to use by looking at the file" via stackoverflow -- Urp!!!
I'm also now thinking about the actual file itself...
Do files with tabs have those \t characters in them?

So, files with tabs could be quite a bit smaller than ones with tabs, right (since every space is another char but one tab could = 4 spaces or whatever)?
Oh, man, why did I read this article? Ignorance is bliss. 😓
It's a good article. Thanks for sharing. 😁

Collapse
 
darkwiiplayer profile image
𒎏Wii 🏳️‍⚧️

First of all, thanks for the feedback 😊

So, files with tabs could be quite a bit smaller than ones with tabs

That used to be an argument for tabs, but honestly, these days file size for source code isn't really that important anymore. Semantics is really the more important factor these days 😄