Home > DeveloperSection > Forums > What is DRY Principle in ASP.NET MVC ?
Sachin Singh
Sachin Singh

Total Post:26

Posted on    May-01-2016 11:34 PM


 1 Reply(s)
 924  View(s)
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.

Anupam Mishra

Total Post:135

Posted on    May-01-2016 11:58 PM

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.

Don't want to miss updates? Please click the below button!

Follow MindStick