You are viewing...

Bracket usage

Updated on March 27, 2013 at the 09th hour
Posted under:

DISCLAIMER: Expressed views on this blog are my own.

I used to think formatting ifs, fors, while, and just about anything that uses a code block like this was attractive to the eyes:
while(condition)

{

}

I've been coding a lot of javascript lately and think that kind of formatting isn't consistent/attractive anymore with lambda functions, so now I'm back to using
while(condition){

}

as the default for anything javascript. I still use the former for PHP and Java though, it may change to the latter sooner or later.
You just read "Bracket usage". Please share if you liked it!
You can read more recent posts here.