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)的原则,如果必须为数据创建人类可读和机器可读的版本,那么应该不需要分别维护两种数据格式。
But before you permit yourself a dry British chuckle at the news, we came fourth from bottom - apparently, we're simply not as funny as we think we are.
但是在你看到这一消息想发出几声英国式干笑之前,请注意英国人的幽默感排名倒数第四。显然,英国人根本不像自己所想的那么幽默。
I don't often make jokes, but I replied: "you're talking a lot of DRY ROT yourself."
我不常开玩笑,但我笑他:“你是在说你自己吧。”
The second is duplication, what the Pragmatic Programmers call violations of the DRY (Don't Repeat Yourself) principle.
第二个是复制,ThePragmatic Programmers中称其为对DRY(不要重复自己,Don ' t Repeat Yourself)原则的违背。
Washables can have a lower carbon footprint, but only if you have an energy-efficient washing machine, use a 60-degree wash cycle, limit yourself to 24 nappies, and don't tumble dry or iron them.
只有在你有一个高能效的洗衣机,使用60度洗衣周期,限制在24片尿布以内,不要甩水和熨干的情况下,可洗尿布的碳足迹才会相对比较低。
Buying clothes that don't require dry cleaning, or hand washing them yourself, can reduce your exposure to this chemical.
如果你购买不需要干洗的衣物,或自己手洗它们,就能减少你和这种化学物质接触的机会。
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?
而他们在子类违反干燥原理(不要重复自己):如果所有的子类具有相同的功能,为什么要写它重复在每一个阶级?
To remind yourself of a chore (write a thank-you note, go to the dry cleaner), give yourself an unusual physical reminder.
为了记住某件家庭杂务,你可以用一件不寻常的东西来提醒你。
Use dry mixes instead of trying to toss together all the spices by yourself.
使用混合干菜,你自己不要把各种食材混乱的混合到一起煮。
Django strictly observes the Don't Repeat Yourself (DRY) principle, whereby every distinct piece of code or data lives in only one place.
Django严格遵循Don ' tRepeat Yourself (DRY)原则,因此每个不同的代码片段或数据仅在一个位置上出现。
This approach perfectly epitomizes the DRY (Don't Repeat Yourself) principle, since the persistence logic is implemented once and mixed in domain classes as many times as needed.
这种方式完美地诠释了DRY (DontRepeat Yourself)准则,因为持久化逻辑只实现一次,在需要的时候可以多次混合到领域类中。
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.
他们阐述了“不要重复自己”(Don ' t Repeat Yourself,DRY)的原则:如果您将同一信息存放在多个地方,它将失去同步,并且您不会再信任它的任何特定实例。
As suggested by proponents of the DRY principle (don't Repeat Yourself), when elements that are logically related don't change together uniformly, keeping them in sync can be problematic.
DRY (Don ' tRepeatYourself,不要做重复的工作)原则的支持者建议,当逻辑相关的元素没有被同时统一改变的话,很难保持他们的同步。
The final principle that shows up in Rails applications is Don't Repeat Yourself (DRY).
Rails应用程序中的最后原则是不要重复你自己(Don't Repeat Yourself,DRY)。
Low repetition: Don't Repeat Yourself, or DRY, is a common buzzword within the Rails community.
低重复:不要重复自己(Don ' t Repeat Yourself, DRY)是Rails社区的一个常见术语。
In some ways, they represent a violation of the DRY (Don't Repeat Yourself) principle, espoused by the Pragmatic Programmers.
在某些方面,它们表示一种对DRY (Don ' tRepeat Yourself不要重复自己)原则的违反,这个规则是被实用主义程序员所推崇的。
To dry the hops and lavender yourself, tie them in bunches and hang upside down in a well-ventilated space out of direct sunlight for 2 weeks.
自己弄干酒花和薰衣草:首先把它们捆成若干束并头朝下地悬挂在通风良好且阳光能直射得到的地方2星期。
To avoide electric shocks you should wear protective work cloth protective gloves and insulating rubber overshoes according to regulations and keep yourself dry and clean as well.
为了防止触电事故的发生,除按规定穿戴防护工作服、防护手套和绝缘胶鞋外,还应保持干燥和清洁。
Dry your tears, make yourself pretty and tell Gordon you'd like to have one more heart-to-heart talk.
擦干眼泪,打扮一下,然后对Gordon说你想再开诚布公地谈一次。
Dry your tears, make yourself pretty and tell Gordon you'd like to have one more heart-to-heart talk.
擦干眼泪,打扮一下,然后对Gordon说你想再开诚布公地谈一次。
应用推荐