WHAT IS DRY PRINCIPLE IN ASP.NET MVC ?

Sachin Singh

Total Post:26

Points:182
Posted by  Sachin Singh
 1052  View(s)
Ratings:
Rate this:
Hi Everyone,

I want to know about the  DRY Principle and how it is so important in ASP.NET MVC.
Please can anyone give me a solution.

Thank you.

  1. Anupam Mishra

    Post:135

    Points:949
    Re: What is DRY Principle in ASP.NET MVC ?

    Hi Sachin,


    DRY  Principle is not specific to any one technology. Just make sure you look at your classes from a functionality standpoint (not even from a copy/paste coder view) and see where the duplication occurs. 
    This process will probably not happen in one sitting, and you will only notice duplication after reviewing your code several months later when adding a new feature. If you have unit tests, you should have no fear in removing that duplication.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!