Last Updated: February 25, 2016
·
1.768K
· kiddj2015

DRY? - best practice for coding

Don't repeat yourself!

Why?
You don't want to Repeat yourself in any programming language. If it is possible that you don't have to, then don't.

How?
I am talking in the PHP terms here, but it should work in any Programming Language.

Use the MVC type of programming. Model View Controller, so you DRY. Using MVC or MFC depending on what language you are coding in, is very popular when developing large systems.

Hope this helps!

Read this article for more information about MVC for PHP and DRY: http://www.htmlgoodies.com/beyond/php/article.php/3912211/Principles-Of-MVC-for-PHP-Developers.htm

1 Response
Add your response

I couldn't agree with you more.

Anybody who understands the OO concept should be able to separate their logic from their views. This is the basics for most systems I have worked on personally.

over 1 year ago ·