The second is duplication, what the Pragmatic Programmers call violations of the DRY (Don't Repeat Yourself) principle.
第二个是复制,The Pragmatic Programmers中称其为对DRY(不要重复自己,Don ' t Repeat Yourself)原则的违背。
You also want to adhere to the DRY (Don't repeat yourself) principle as much as possible.
您可能还希望能够尽可能多地坚持DRY(不要重复自己)这个原则。
不要重复自己(Don ' t repeat yourself, DRY)。
应用推荐