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。
一句话:别写重复代码