Ranter
Join devRant
Do all the things like
				++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
				Sign Up
			Pipeless API
				From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
				Learn More
			Comments
		- 
				
				I was taught Allman (which I still prefer), but I use whichever one is standard for the language. For C# for example I use Allman, for Java I use K&R.
 - 
				
				Gexgekko929yI learned by my own and I've always used K&R because it looks cleaner. After years someone asked me to use Alman and it is hard to change habits now.
 - 
				
				Cool, didn't know there were names for this. I prefer K&R but use Allman for C# and anywhere else it's standard. Can't stand it in CSS though 😲
 - 
				
				
jmhg926779yAllman all the way for me. It helps me see code blocks much easier when using a text editor like Notepad++ or vim. - 
				
				I've been learning Elm recently and I'm getting used to the comma first style it uses:
Model =
{ foo: bar
, x: y
, a: b
} - 
				
				
BartBB6849yMy exact thought. the second line in the while loop is not indented. @DustInCompetent
Allman all the way! Simply looks cleaner, in my opinion. - 
				
				
vzqzac7529yWhen I code in C/C++ I use Allman, but when in JavaScript I use K&R because I test using standard, second is more readable in my opinion, the first one was teach to me at the uni and as I was a newbie in programming it was seeded in my brain haha - 
				
				@DustInCompetent haha did not realize the shitty indentations, I copypasted it from wikipedia
 - 
				
				@Gexgekko i use a code formatter hook, which formats the code for me before saving the file. So I can attach to the project styles I'm working on.
 - 
				
				K&R gives me the creeps. Seriously. No joke. Idk what causes this. But I love Allman!
 - 
				
				
svandeun4099y@brunmcray my eyes bleed x-(
On a side note Allman all the way for me and braces for each and every if/while/for/...
Only exception I tolerate : one liners like : if(...) Blah;
But even then I prefer adding braces and Allman... - 
				
				I started learning on my own, and started by using K&R style because why waste a whole another line for a bracket... Lol, also mostly habit at this point in life
 


How many of you naturally used Allman style, even though your first programming class taught you to use K&R?
undefined