dotNetDave Says…Always Code For Reusability

You can overhear me say this in every one of my code conference sessions! I've been coding for over 25 years, and this way of thinking has allowed me to make changes to the code, later in time, easier.

For example, in a recent project that I was hired to work on about 4 months before it's first release, it was already spaghetti code, so bad that it's very difficult to make changes. Yes, even before it's first release! Also, before it's first release it had over 5,000 code violations!

So please, please always code as if that type, method and even project will be reused, someday in the future. The small amount of time it will take to do this now will save tons of time and money in the future. I guarantee it!

 
McCarter Consulting
Software architecture, code & app performance, code quality, Microsoft .NET & mentoring. Available!