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(不要重复自己)这个原则。
The principle of "don't repeat yourself" (DRY) mandates that, if you must create both human- and machine-readable versions of data, you shouldn't need to maintain the two data formats separately.
根据 "不要重复自己"(DRY)的原则,如果必须为数据创建人类可读和机器可读的版本,那么应该不需要分别维护两种数据格式。
应用推荐