Indent Styles

This has been a bit in flux for me lately. What indentation style does everyone follow when it comes to C-like languages (C, C++, Java, C#, JavaScript)? I learned on Allman Style, but quickly came to prefer K&R Style. On the last two projects, it’s been required that I use GNU standards so I was forced to use GNU Style (even though I use vi and therefore don’t benefit at all from EMACS’ treatment of defuns through wacky half-indented braces). So what’s your preference?

  1. #1 by Andrew D. on April 14, 2012 - 12:23 AM

    Voted for Allman, but lately I’ve been using Lisp style because of all the Ruby programming.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: