Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Locked thread
Mao Zedong Thot
Oct 16, 2008


Jimmy Carter posted:

Let's get to the real issue:

there is a shocking proportion of the population that uses the caps lock key as a shift key.

need to type your password?
*press caps lock*
*press the one character to be capitalized*
*press caps lock*

Tbh you don't even count as a human being if your caps isn't mapped to ctrl

Adbot
ADBOT LOVES YOU

Moist von Lipwig
Oct 28, 2006

by FactsAreUseless
Tortured By Flan

Shaggar posted:

when you use tabs, everyone gets exactly what they want because they control the tabstop independent of the code.

when you use spaces you get a mess of poo poo because people use different space counts for each soft tab.

shaggar was right, sadly

Bloody
Mar 3, 2013

tabs : strongly typed :: spaces : weakly typed

My Linux Rig
Mar 27, 2010
Probation
Can't post for 6 years!
lol there are people who use spaces???? what nubs

akadajet
Sep 14, 2003

My Linux Rig posted:

lol there are people who use spaces???? what nubs

i know right?

Triglav
Jun 2, 2007

IT IS HARAAM TO SEND SMILEY FACES THROUGH THE INTERNET
Indentation
link ▽
Indent 2 spaces. No tabs.

Use blank lines between blocks to improve readability. Indentation is two spaces. Whatever you do, don't use tabs. For existing files, stay faithful to the existing indentation.

https://google.github.io/styleguide/shell.xml?showone=Indentation#Indentation

Mao Zedong Thot
Oct 16, 2008


Triglav posted:

Indentation
link ▽
Indent 2 spaces. No tabs.

Use blank lines between blocks to improve readability. Indentation is two spaces. Whatever you do, don't use tabs. For existing files, stay faithful to the existing indentation.

https://google.github.io/styleguide/shell.xml?showone=Indentation#Indentation

if you're writing shell you've got bigger problems than worrying about how to indent

Gazpacho
Jun 18, 2004

by Fluffdaddy
Slippery Tilde
that's really dumb considering that bash is coded with a preference for tabs, it's literally the only language where i use tabs for precisely that reason

e: it helps that shell scripting is sufficiently obscure that anything with 3 indentation levels immediately gets broken up

Gazpacho fucked around with this message at 00:59 on Jun 5, 2016

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord

Gazpacho posted:

that's really dumb considering that bash is coded with a preference for tabs, it's literally the only language where i use tabs for precisely that reason

e: it helps that shell scripting is sufficiently obscure that anything with 3 indentation levels immediately gets broken up

there's also make

Adbot
ADBOT LOVES YOU

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord

so loving future posted:

if you're writing shell you've got bigger problems than worrying about how to indent

  • Locked thread