Wahoo!!! I'm just a newbie
Java programmer ( does that make me a Proglet??? ) and I have been taking a lot of flak from my associates ( I am being introduced to Java through a college "Algorithms and Data Structures" course). All of the "experienced" Java people in my class use the intolerable
ThisDrivesMeNuts ( ) {
if ( readingCodeLikeThis == true ) {
me = excedrinSizedHeadache.start();
}
}
curly brace style. Having officially rebelled against this style, and developed "my own" style
ThisIsSoMuchBetter ( )
{
myBrain.uncramp( );
}
of curly brace expression, I pictured my days as a Java programmer lonely and desolate, forever ridiculed and ostracized for my illegitimate curly brace placement. You can only imagine the sense of relief and acception I felt when I first laid eyes upon the teachings scrawled in the walls of the
Chicken Coop. Not only were my feelings about curly braces validated, therein I also found criticism for the insidious one-line if,while,for statements.
if ( superHero == theTick ) System.out.println("Spoon!");
Another "standard" practice whose refusal of adoption earned the disdain and reproach of my peers. Once or twice I attempted to leave the statement on the same line, not surrounded by braces, in an attempt to pacify my assailants, but soon found myself pressing the enter key, summoning the stabilizing curly braces, a quick indent and then recompiling before anyone noticed.
Thanks to VanRenseleer I will no longer brace in shame! I have found reassurance and support within the Coop. I will return to this place of knowledge and glean from it every scrap of style it has to offer!
Thank you!