One of the OOP guidelines is DRY - Don’t Repeat Yourself. Good programmers avoid duplicate code. However, there are times when you need to implement the same pattern or template on a regular basis. You may have to repeat the pattern, but why repeat the development?
Techniques to re-implement simple patterns include:
The key is to get it right the first time, and then to always implement it in a consistent manner.
Also, don’t reinvent the wheel. Other people have already developed templates for common patterns. Some examples:
No Comments/Pingbacks for this post yet...
Development Central is the blog of Bill Sorensen, a professional software developer. Much of this will relate to C#, .NET, and OOP in general.
Disclaimer
These postings are provided "AS IS" with no warranties and confer no rights.