第七:不要重复自己讲的话。
如果遵循“不要重复自己”原则,您会了解单一副本是权威副本。
If you "don't repeat yourself," you know that the single copy is the canonical copy.
这是Rails的DRY(不要重复自己)原则的基本例子。
This is a prime example of Rails' DRY (Don't Repeat Yourself) principle.
您可能还希望能够尽可能多地坚持DRY(不要重复自己)这个原则。
You also want to adhere to the DRY (Don't repeat yourself) principle as much as possible.
不要重复自己(Don ' t repeat yourself,DRY)。
而他们在子类违反干燥原理(不要重复自己):如果所有的子类具有相同的功能,为什么要写它重复在每一个阶级?
To instead have them in the subclass violates the principle of DRY (don't repeat yourself) : if all the subclasses have the same function, why write it repeatedly in every class?
根据 "不要重复自己"(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.
低重复:不要重复自己(Don ' t Repeat Yourself, DRY)是Rails社区的一个常见术语。
Low repetition: Don't Repeat Yourself, or DRY, is a common buzzword within the Rails community.
在某些方面,它们表示一种对DRY (Don ' tRepeat Yourself不要重复自己)原则的违反,这个规则是被实用主义程序员所推崇的。
In some ways, they represent a violation of the DRY (Don't Repeat Yourself) principle, espoused by the Pragmatic Programmers.
第二个是复制,ThePragmatic Programmers中称其为对DRY(不要重复自己,Don ' t Repeat Yourself)原则的违背。
The second is duplication, what the Pragmatic Programmers call violations of the DRY (Don't Repeat Yourself) principle.
他们阐述了“不要重复自己”(Don ' t Repeat Yourself,DRY)的原则:如果您将同一信息存放在多个地方,它将失去同步,并且您不会再信任它的任何特定实例。
They explain the Don't Repeat Yourself (DRY) principle: If you have the same information in more than one place, it will get out of sync, and you no longer can trust any particular instance of it.
Grails利用“约定优于配置(conventionover configuration)”和“不要重复自己(don ' t repeat yourself)”的原则,极大地减少了编写典型Web应用程序所需的代码量。
Grails leverages the principles of convention over configuration and don't repeat yourself to greatly reduce the amount of code you need to write for a typical Web application.
不要重复你自己。
做自己的加油站,自己给自己鼓劲,重复自己的念咒(下一条会详细说),不要害怕让人觉得很疯狂。
Be your own cheerleader, give yourself pep talks, repeat your mantra (below), and don't be afraid to seem crazy to others.
Rails应用程序中的最后原则是不要重复你自己(Don't Repeat Yourself,DRY)。
The final principle that shows up in Rails applications is Don't Repeat Yourself (DRY).
用自己的语言归纳是很重要的,不要重复原文。
It is important to use your own words, not just copy a phrase from the book.
但是孩子还是有伤痛的:他不是能够自由的做自己想做的事,他会被重复的告知不要做某事,或者是对他所做的事接受惩罚。
But a child has his pains: he is not so free to do what he wishes to do; he is repeatedly told not to do something, or being punished for what he has done.
我强调过很多次当今游戏大多都存在重复这个问题,如果我们期望制造出的下一个游戏能热卖,那么我们最好不要再借鉴其他游戏而是要反省自己,首先要认识到游戏中存在的问题然后通过简单的方法解决这些问题。
If there is one thing that makes a game repetitive, it's our own lack of ability to see that a simple single idea, no matter how cool it is, doesn't always make for an exciting game in the long run.
打那以后,我从许许多多像刚才我重复的那个一样的错误中学到很多,我了解到要更实际些,不要对自己太过自信。
Since then, I have learned from many mistakes such as the one I just repeated, I have learned to be more practical and not to be too sure of myself.
你的时间是有限的,所以不要将它浪费在重复他人的人生上。别让他人繁杂的观点淹没你自己内心深处的声音。
Your time is limited, so don't waste it living someone else's life, don't let the noise of others' opinions drown out your own inner voice.
你的时间是有限的,所以不要将它浪费在重复他人的人生上。别让他人繁杂的观点淹没你自己内心深处的声音。
Your time is limited, so don't waste it living someone else's life, don't let the noise of others' opinions drown out your own inner voice.
应用推荐