How important is it for readability that code be in this form:
public void DoStuff()
{
var v = new Object();
v.PropertyID = "abc";
v.Type = "abc";
v.Style = "abc";
v.SetMode(Mode.Abc);
v.Draw();
}
vs.
public void DoStuff()
{
var v = new Object();
v.PropertyID = "abc";
v.Type = "abc";
v.Style = "abc";
v.SetMode(Mode.Abc);
v.Draw();
}
I tend to like the first style best, it makes things easy to read, how would you gently guide people towards the former and away from the latter? Or would you not?
Do people actually write code that looks like the latter? That’s a maintainability nightmare.
I would argue that it’s not so important what your code formatting conventions are — more that you follow them consistently. The former example is not consistent and therefore unreadable and unmaintainable.
If you’re having troubles guiding people toward consistency, have them imagine going back to maintain highly inconsistent code in a year.