Tuesday, May 31, 2005

Code in Methods, not Events. But why????

Andy Kramek does a great job explaining why it's better to create new methods instead of relying on existing events.

Certainly, there are always times when you drop code directly into one of the built-in methods but if you think about adding in the new method right off the bat, even for what appears to be a simple job and a few lines of code, you may head off some future refactoring work.

Code in Methods, not Events. But why????

No comments: