DRY原则

Posted longchang

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了DRY原则相关的知识,希望对你有一定的参考价值。

DRY原则:(don’t repeat yourself): writing code more than once is not a good fit for a lazy developer ;)

It also makes your software more difficult to maintain because it becomes harder to make your business logic consistent。

一句话:别写重复代码

以上是关于DRY原则的主要内容,如果未能解决你的问题,请参考以下文章