I know it doesn't matter to the compiler, but for best programming practices are any of these a superior style to the other?
function myfunction () {
}
or
function myfunction ()
{
}
I have seen both and sometimes I see:
function myfunction ()
{
if (something) {
}
}
so it is mixed.
I remember seeing some people say that one of those is "bad" (the first one), but I don't know why. Is one better than the other and please why? Thank you.
EDIT: Thank you for your answers. If you like one style over the other, though, can you tell me why, please, not just that you prefer one. I understand now it is subjective, but really thought there might have been some objective reason. Apparently, not.
EDIT: I see this was closed as argumentative. That is absolutely false. I was genuinely concerned. I appreciate all the answers. I agree, after reading the answers, it is subjective, but did not know that before.