Coding Style: I've Finally Succumbed to Peer Pressure
I've always thought code looks more elegant and symmetrical in the old C Style, where the open curly brace has it's own line. Such as...
void main()
{
printf("Hello world");
if(x == true)
{
doSomething();
}
exit();
}
In the last few years, it seems like just about everyone has switched to putting the brace on the same line as the function declaration or if statement. And I'm just tired of my code sticking out. So I've finally accepted that this is the way of the world, and I've started to write my code with the open brace on the same line.
void main(){
... etc.
I{
hope{
you're{
all{
happy!{
}}}}}
void main()
{
printf("Hello world");
if(x == true)
{
doSomething();
}
exit();
}
In the last few years, it seems like just about everyone has switched to putting the brace on the same line as the function declaration or if statement. And I'm just tired of my code sticking out. So I've finally accepted that this is the way of the world, and I've started to write my code with the open brace on the same line.
void main(){
... etc.
I{
hope{
you're{
all{
happy!{
}}}}}
4 Comments:
NOOOO....another one has gone over to the dark side.... :(
By
Anonymous, at 8:50 PM
You mussn't use void main, int main is the right way :P
By
Anonymous, at 5:45 AM
See, back in the day when I was learning C (circa 1996), we were doing main() or void main() or void main(void). Times have changed.
By
adampasz, at 7:43 PM
wow power leveling
wow powerleveling
world of warcraft power leveling
ffxi power leveling
ffxi powerleveling
ffxi
ffxi gil
age of conan
lotro powerleveling
lotro power leveling
lotro goldwow power leveling
wow powerleveling
world of warcraft power leveling
ffxi power leveling
ffxi powerleveling
ffxi
ffxi gil
age of conan
lotro powerleveling
lotro power leveling
lotro goldwow power leveling
wow powerleveling
world of warcraft power leveling
ffxi power leveling
ffxi powerleveling
ffxi
ffxi gil
age of conan
lotro powerleveling
lotro power leveling
lotro goldwow power leveling
wow powerleveling
world of warcraft power leveling
ffxi power leveling
ffxi powerleveling
ffxi
ffxi gil
age of conan
lotro powerleveling
lotro power leveling
lotro goldwow power leveling
wow powerleveling
world of warcraft power leveling
ffxi power leveling
ffxi powerleveling
ffxi
ffxi gil
age of conan
lotro powerleveling
lotro power leveling
lotro goldwow power leveling
wow powerleveling
world of warcraft power leveling
ffxi power leveling
ffxi powerleveling
ffxi
ffxi gil
age of conan
lotro powerleveling
lotro power leveling
lotro goldwow power leveling
wow powerleveling
world of warcraft power leveling
ffxi power leveling
ffxi powerleveling
ffxi
ffxi gil
age of conan
lotro powerleveling
lotro power leveling
lotro gold
By
wow power leveling, at 12:27 AM
Post a Comment
<< Home