Traister101

joined 1 year ago
[–] [email protected] 0 points 8 months ago* (last edited 8 months ago) (2 children)

Looking at code on somebody else's screen is entirely missing the point of using tabs over spaces. The entire point is that mine looks like how I want and theirs looks like how they want even though the file is identical. We can each have wildly different tab width and it'll look wildly different to each of us when we program. That's again the point.

Code formatters are great! I love them. Using tabs over spaces is objectively a better formatting option. One of my favorite features in code formatters is that they'll swap out spaces to tabs for you insane people who insist on mashing the space bar to indent.

[–] [email protected] 0 points 8 months ago* (last edited 8 months ago) (1 children)

What's yaml have to do with anything? It's like python with syntactic whitespace which is unrelated to this discussion. The Tab vs Space debate is entirely around non syntactic whitespace which doesn't effect how the code is parsed. And yes Python technically does both tabs and spaces but it's all sorts of fucky.

Terminal editors while still used a ton aren't really what I was referring to. Newer terminal editors such as Helix have tab width configured per language most of which default to a width of 4 spaces but toml/yaml both default to 2 spaces. I was mainly referring to GUI editors as frankly that's just what most people use nowadays. JetBrains IDEs, Visual Studio, Eclipse, VS Code, Notepad++ were primarily what I was thinking of as I've used all of them and they all default to a tab width of 4 hence why I said nearly universal. Also I said nearly terminal editors being the only editors I've used that don't default to a width of 4 seems like a fair usage of the term.

[–] [email protected] 4 points 8 months ago (7 children)

Then don't? The whole reason nearly all the spaces guys do 4 spaces is cause that's the nearly universal tab width. You won't like this but the same exact argument can be made for spaces yet I'd bet you haven't even once configured the width of those.

I don't actually change tab width, it's the default 4 spaces equivalent for me but just because I don't take advantage of the ability doesn't mean I should prevent others from doing so.

[–] [email protected] 9 points 8 months ago

Sometimes. I love auto formatting, I spam the shit out of it more than I spam save but it's definitely not perfect. It gets real confused with inconsistent indention like that. Especially with Python it'll fuckup

[–] [email protected] 11 points 8 months ago* (last edited 8 months ago)

It's the new NFTs and Crypto but it's not blatantly a scam so the companies that skipped out on those sure as shit will be hoping onto AI

[–] [email protected] 92 points 8 months ago (17 children)

Tabs are objectively the better choice as it allows each dev individually to decide tab width in their editors. Spaces in contrast don't allow this same flexibility as they are used for much more than simply indentation, for example you likely put a space after each argument or operator IE func(arg1, arg2) or 1 + 2.

[–] [email protected] -1 points 8 months ago* (last edited 8 months ago)

Incredibly I don't think that the USSR is "as bad as the Nazis" nor did I say anything like that. Is that why you morons are calling me a Nazi? Do you guys need a paragraph explaining that yes I do think the Nazis are bad?

I'm not trying to win fuckn internet points I'd still be on reddit if I got turned on by that kinda shit. You people are.

[–] [email protected] 0 points 8 months ago

I read it before I'd even replied. It's got nothing to do with the USSR being facist or not.

[–] [email protected] -4 points 8 months ago

Yeah despite how much I want to fight back I know I'll just be wasting my energy

[–] [email protected] 3 points 8 months ago

Ah shit. Guess you can tell what kinda stuff I like watching

view more: ‹ prev next ›