News for hackers. Stuff that matters.
Re:What's the deal with tab size (8 spaces) in the GitHub UI? by lioeters on Monday September 20, 2021 @10:04PM (#28601302)
This is why I don't use tabs, and instead use 2 spaces for indentation like a sane and reasonable person.
Re:What's the deal with tab size (8 spaces) in the GitHub UI? by LanternLight83 on Monday September 20, 2021 @10:43PM (#28601538)
I haven't seen any poll results (yet!), but I bet we're in a pretty small minority. Two spaces is jist what i find most aesthetically pleasing. Four seems to be the standard among my peers, and the apparent fact that the standard is historically eight boggles my mind.
Re:What's the deal with tab size (8 spaces) in the GitHub UI? by lioeters on Monday September 20, 2021 @11:00PM (#28601656)
Well, it was (kind of) a joke about "sane and reasonable" because everyone seems to have their favorite reasons for preferring one way or another.

I agree about it being aesthetically pleasing. For me it's the easiest spacing to read and scan code horizontally and diagonally.

And apparently:

> using spaces instead of tabs is associated with as high a salary difference as an extra 2.4 years of experience.

https://stackoverflow.blog/2017/06/15/developers-use-spaces-...

Re:What's the deal with tab size (8 spaces) in the GitHub UI? by FiggyPudding on Tuesday September 21, 2021 @10:16AM (#28605211)
I cowardly use tabs viewed as 2 spaces so if needed in the future some quick lazy code like sed can convert it to 4 spaces or something if someone demands.