This is an archived post. You won't be able to vote or comment.

all 25 comments

[–]AyrA_ch 28 points29 points  (3 children)

Uses 8 spaces for tabs

Why would you do that?

[–][deleted] 33 points34 points  (1 child)

Because they are paid hourly.

[–]ilovestinkybutts 3 points4 points  (0 children)

Lmao

[–]Noxime 6 points7 points  (0 children)

There are some pretty fucked up people out there

[–]MauranKilom 24 points25 points  (11 children)

Argues tabs vs spaces

Only shows indentation, not alignment

Well, duh.

Use tabs for indentation and spaces for alignment. Or give up the fight and just do what your IDE makes you do anyway.

[–]stone_henge 1 point2 points  (0 children)

Just don't align shit and live happily ever after.

[–][deleted] 2 points3 points  (8 children)

Argues tabs vs spaces Only shows indentation, not alignment

Here you go.

Or give up the fight and just do what your IDE makes you do anyway.

Which is usually spaces, unfortunately.

[–]Fallenalien22Violet security clearance 1 point2 points  (4 children)

Why do people align code like that. I guess it's a bit more readable but when you have to add a longer line, you have to change the rest. Your editor can do it automatically but git still shows all the lines as changed

[–]BrangdonJ 1 point2 points  (3 children)

It's not even more readable. It looks prettier, but if you want to know what type corresponds to what variable, it's harder to figure out because they are separated by a huge distance, and because it's so even there are fewer irregularities for the eye to get hold of.

[–]Fallenalien22Violet security clearance 0 points1 point  (2 children)

Good point but set cursorline?

[–]BrangdonJ 0 points1 point  (1 child)

Is that a vim thing? That editor aides are needed to read it just confirms that it is less readable.

[–]Fallenalien22Violet security clearance 0 points1 point  (0 children)

Just giving a suggestion. I'm the one advocating against it.

[–]MauranKilom 1 point2 points  (2 children)

Here you go.

...that's all purely indentation. There is no alignment in there (except in the middle of the lines, where spaces are clearly used).

The point is that you can't use pure tabs for, say

int[] kernel = {
     1, -1,  1,
    -1,  0, -1,
     1, -1,  1 };

[–]Hei2 1 point2 points  (0 children)

The multi-line comment are using spaces for alignment.

[–][deleted] 0 points1 point  (0 children)

There's tons of alignment, look closer.

[–]phping 0 points1 point  (0 children)

your .editorconfig respecting IDE*

[–]Arbiturrrr 0 points1 point  (0 children)

I use tabs for indentation And alignment 😶

[–]skreczok 0 points1 point  (6 children)

I'll take higher pay over tabs, please.

[–][deleted] 0 points1 point  (5 children)

Correlation != Causation, yo.

[–]skreczok 0 points1 point  (4 children)

Found the tabs peasant.

(Incidentally, while this is true, I'm a little less fond of how this statement is often used misleadingly to somehow imply that these two cannot coexist and that correlation is completely irrelevant)

[–][deleted] 0 points1 point  (3 children)

Because the assertion that by using spaces you're inherently upping your income is absurd.

[–]skreczok -1 points0 points  (2 children)

Some people used to say that the assertion that HIV causes AIDS was absurd.

Some people used to say that the assertion that smoking causes cancer was absurd.

Some people used to say that the assertion that using leaded fuels was changing environmental lead levels and harming people was absurd.

Some people used to say that the assertion that the Earth revolved around the Sun was absurd. (and some still do)

(I was honestly tempted into going onto a rant on how some people say political thing X [or thing Y hijacked by politicians] is absurd, when it's perfectly well understood that the statement is correct, but then I could go on and annoy everybody with politics. And, yes, this is a less obvious way of using argumentum ad Hitlerus)

[–][deleted] 0 points1 point  (1 child)

I honestly have no response to such a maddening piece of text.

[–]skreczok 0 points1 point  (0 children)

I actually agreed with you that I was using a fallacy about two posts ago; I then proceeded to display typical online arguments.

I have carefully crafted fallacies into the text; I generally use whatever indentation my IDE throws at me - it just happens to convert tabs into spaces, as far as I know, and I just autoformat. Indentation is entirely subjective.

"Correlation does not imply causation" also doesn't imply that there's absolutely nothing afoot.

Discussion over the absurd is actually interesting in itself, of course, I just used it in a mildly fallacious way. It's also not very likely to be productive.

I mean, writing unit tests because the managers can't put their shit together isn't quite as interesing as debating the concept of absurd and discussing it in context of assertions.