Straw Poll - K&R vs BSD
Posted
by Gordon Mackie JoanMiro
on Stack Overflow
See other posts from Stack Overflow
or by Gordon Mackie JoanMiro
Published on 2008-10-28T12:51:45Z
Indexed on
2010/03/27
0:13 UTC
Read the original article
Hit count: 365
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!
© Stack Overflow or respective owner