Skip to main content
Code Review

Return to Answer

In your code, if the business logic changes then you have to domake the change in two places and then you can make a mistake.

In your bossboss's code, the logic is in one place, so maintenance should be easier.

A better explainexplanation: http://en.wikipedia.org/wiki/Don't_repeat_yourself

In your code if the business logic changes then you have to do the change in two places and then you can make a mistake.

In your boss code the logic is in one place so maintenance should be easier.

A better explain: http://en.wikipedia.org/wiki/Don't_repeat_yourself

In your code, if the business logic changes you have to make the change in two places and then you can make a mistake.

In your boss's code, the logic is in one place, so maintenance should be easier.

A better explanation: http://en.wikipedia.org/wiki/Don't_repeat_yourself

Source Link

In your code if the business logic changes then you have to do the change in two places and then you can make a mistake.

In your boss code the logic is in one place so maintenance should be easier.

A better explain: http://en.wikipedia.org/wiki/Don't_repeat_yourself

lang-php

AltStyle によって変換されたページ (->オリジナル) /