Tuesday, February 16, 2010

Programmer - Curly brace (bracket) next to line or underneath: which is better practise?

Programmer Question

I like to write my PHP code like this:



function doSomething()
{
// something
}


instead of



function doSomething() {
// something
}


but the second way is how most people do it. Which is considered the best practice?

No comments:

Post a Comment

LinkWithin

Related Posts with Thumbnails