News for hackers. Stuff that matters.
Re:Shell Style Guide from Google by e40 on Saturday June 04, 2016 @08:14PM (#11838931)
And 2 spaces is way too little. 4 is the sweet spot.

Reason: with 2 the visual lines at different indent levels are just too close, in many fonts/sizes.

Re:Shell Style Guide from Google by tomlu on Saturday June 04, 2016 @08:47PM (#11839060)
It's 2 spaces for everything here, even python. I don't like it and don't think I'll ever get used to it, like you say 2 is too little.
Re:Shell Style Guide from Google by rossjudson on Saturday June 04, 2016 @11:07PM (#11839441)
Wrong. 3 spaces is the sweet spot. What is it with you people and powers of two? ;)
Re:Shell Style Guide from Google by lisivka on Sunday June 05, 2016 @10:48AM (#11841220)
It is easy to catch an indentation error with two spaces, while it is harder to make an indentation error with just two spaces. It also easier to type two spaces than 3 or 4 spaces, which is important when program is typed without help of an autoindentation tool. Two spaces are enough for fixed length font, typical in terminal, but also saves screen space, which is just 80 characters in width.