Straw Poll - K&R vs BSD
- by Gordon Mackie JoanMiro
No holy wars please - (ultimately a standardised and consistently-observed house-style on a project always wins out whatever is chosen), but I am genuinely interested in the preferences of people for K&R style formatting:
public bool CompareObjects(object first, object second) {
if (first == second) {
return true;
} else {
return false;
}
}
over BSD style:
public bool CompareObjects(object first, object second)
{
if (first == second)
{
return true;
}
else
{
return false;
}
}
K&R seems to be making a bit of a comeback recently (I'm an old programmer, so I've seen these things fluctuate); do people think K&R looks more professional, more cool, more readable, is compactness when viewing more important than extending the structure down the screen?
Please use the 2 community wiki answers below to vote for K&R vs. BSD. Polls shouldn't earn rep for the first person that manages to type "BSD FTW!"
My God! This question is nearly 2 years old and people are still down-voting it; ENOUGH!