Your indent style.
#1

Today, I saw there are different types of indentation, so I was just wondering which style is mostly used by the community.

You can see the styles here: http://en.wikipedia.org/wiki/Indent_style

My style is Horstmann Style.
Reply
#2

http://en.wikipedia.org/wiki/Indent_style#Variant:_1TBS
Reply
#3

Allman, no doubt
Reply
#4

http://en.wikipedia.org/wiki/Indent_style#Allman_style
Reply
#5

http://en.wikipedia.org/wiki/Indent_...orstmann_style
Reply
#6

http://en.wikipedia.org/wiki/Indent_style#Allman_style
Reply
#7

Allman style
pawn Код:
while (x == y)
{
    something();
    somethingelse();
}
 
finalthing();
Reply
#8

Allman because it's kinda easy and there is alot of tutorials about it so it's easy to learn and it's the most famous aswell.
Reply
#9

http://en.wikipedia.org/wiki/Indent_style#Variant:_1TBS
1TBS
Quote:

This principle is amplified by bracing every if, else, while, etc.—including single-line conditionals—so that insertion of a new line of code anywhere is always "safe" (i.e., such an insertion will not make the flow of execution disagree with the source code indentation).

True.
Reply
#10

http://en.wikipedia.org/wiki/Indent_...nt:_Stroustrup
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)