Quote:
|
Originally Posted by prozac424242
actually I rememberd what I learned i college intro to computer science class ten years ago (oops dont want to give away my age)
The curly brackets { and } should be as the upper left and lower left corners of a box, a box in which you should have intented so that you could draw a literal box around a printout of each block of code.
HTML Code:
function onCreated()
{
//code goes here
each indent I do for two spaces
if (something==1)
{
//more code here
}
}
function onWhatever()
{
//slap Unixmad just becasue
}
the white space above and below each code block or nested code block
can help you visualize the box in which the block of code belongs in.
that's how I was taught.
|
Wow, that is some ugly formatting right there..