28 Mar 2013

General programming rules #1

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