Observations of a C# .NET web developer collective.
Don't use boolean method parameters.
Why? Because it makes your code unreadable and inextensible.
e.g. render(true) is meaningless but render(PageMode.Readonly) is semantic and unambiguous.
No comments:
Post a Comment