Thursday, November 1, 2007

I Hate Overloads

I just started working the the replacement for Microsoft's Application Blocks. ExceptionManagement, called Microsoft.Practices.EnterpriseLibrary. Specifically, I'm using the Logging class. Guess how many overloads there are for the Write method? NINETEEN!!! 19 overloads, that's right. Imagine if you did not have Intellisense. In my opinion, overloads undermine the whole organization of Object Oriented Programming (OOP), and are to be used SPARINGLY.