“那是什么?”她以惯用的坦率语气问道。
当他们惯用的品牌暂时降价时,他们只是避免支付更多的钱。
They simply avoid paying more than they have to when one of their customary brands is temporarily available at a reduced price.
她摒弃了写小说惯用的平铺直叙的写法。
这些美国人初次见面时惯用的问题,怎么回答?
These seem to be the quintessential questions that Americans like to ask each other when they first meet. How can you reply?
用可扩展的接口设计解决方案是非常惯用的实践方法。
Designing solutions with extensible interfaces is a well established practice.
事实证明,双方都更倾向于沟通,尽管他们都想依靠自己惯用的手段占据上风。
Evidence indicates that both parties prefer interaction, though they want to rely on their own tried and tested tactics [of keeping] the upper hand.
他们惯用的伎俩是把全球范围内任何地方发生的不寻常的天气事件都归咎于全球变暖。
One familiar technique they use is to attribute to global warming almost any unusual weather event anywhere in the world.
它似乎刻意表现出苹果的世界一切都是稳定的,安全的,没什么变化--这也是惯用的生意经。
The intended impression, it appears, was to promote the idea that all is stable, safe and samey in Apple's world - that it's business as usual.
然而随着文化遗址的数目接近900处,联合国教科文组织惯用的表扬和批评做法不会贬值吗?
But as the number of sites nears 900, will not the currency of UNESCO's praise and scoldings be devalued?
其它阿拉伯国家、特别是君主国以惯用的威吓、收买与许愿等手段齐上,似成功压制了民众变化的诉求。
Other Arab states, especially the monarchies, have so far parried calls for change with seeming success, using the familiar mix of coercion, co-option and promises.
保尔森提议设立的这一对话机制,放弃了美国惯用的威吓手段,而提倡用建设性的对话来应对中国经济的崛起。
The dialogue, Mr Paulson's brainchild, departs from the US penchant for hectoring and advocates constructive dialogue to manage China's economic rise.
一个惯用的策略就是在某一特定类别的产品提供更多款式,包括一个便宜的普通版本以及一个贵一些的高品质版本。
One ruse is to offer a wider range of products in a particular category, including a no-frills version that will remain cheap and higher-quality ones that grow more costly.
现在,我们的目光落在生物世界令人难以置信的复杂性时,惯用的、整齐划一的概念,如物种、基因和有机体等的短处就暴露无遗。
We now gaze on a biological world of mind-boggling complexity that exposes the shortcomings of familiar, tidy concepts such as species, gene and organism.
饰演那威人的演员穿着动作捕捉惯用的服装,他们的场景的拍摄都在一个仓库里进行,为避免任何干扰,这个仓库里完全没有反光的物体。
Actors performing as Na’vi wore motion-capture suits in the usual way, and their scenes were performed in a warehouse where reflective items were entirely absent, to prevent any interference.
清楚地了解这些资产之后,就可以找到可重用的部分并应用惯用设计原则。
Once you can see them clearly, you can harvest the reusable parts and apply idiomatic design principles.
在本期中,我们展示了如何使用APIs和属性作为获取惯用模式的方法。
In this installment, I demonstrated the use of APIs and attributes as techniques for harvesting idiomatic patterns.
不过,如果您可以将惯用模式从其他代码中凸显出来,这样就可以更容易地看到它的不同。
However, if you can make the idiomatic pattern stand out from other code, it's easier to see that it is in fact something different.
表达性更好的语言可以帮助开发人员更加轻松地发现惯用模式,因为代码中包含的无用信息更少。
More-expressive languages make it easier to find idiomatic patterns because the code contains less noise.
捕捉惯用模式最简单的方式就是将它们作为自身的API或框架予以提取。
The easiest way to capture idiomatic patterns is to extract them as their own API or framework.
在下一期中,我们将继续展示如何通过用于构建域特定语言的一系列方法获取惯用模式。
In the next installment, I continue showing how to harvest idiomatic patterns, with a collection of techniques usually used for building domain-specific languages.
本系列的上一期介绍了如何使用特定领域语言(DSL)来捕获域惯用模式。
The preceding installment of this series introduced the subject of using domain-specific languages (DSLs) to capture domain idiomatic patterns.
我想让我捕获的惯用模式从其余的代码中脱颖而出,DSL提供一个令人信服的机制来实现这一目标。
I want the idiomatic patterns that I harvest to stand out from the rest of my code, and DSLs provide a compelling mechanism for achieving this goal.
到目前为止,介绍 DSL作为一种捕获惯用模式的方法可能有点抽象,因此我接下来将使用一个真实的示例作为结束。
This discussion of DSLs as a way to capture idiomatic patterns may seem a bit abstract up until now, so I'll finish with an example from the real world.
发现代码中的惯用模式已经够难了,但是如果语言中再加上一些额外的晦涩的东西,那就会难上加难。
Finding idiomatic patterns in code is hard enough, but if your language adds extra cruft, it becomes even harder.
在因特网问世的短十几年中,大多数人还习惯用衡量传统传媒的方法衡量其是否成功,那就是看它的观众量。
During the Internet's short life, most people have used a yardstick from traditional media to measure success: audience size.
这是ISO 8601定义并被W3C 采纳的惯用日期格式。
This is the customary date format defined in ISO 8601 and endorsed by the W3C.
它允许将JSON对象映射项中的键转换为Clojure关键字,后者在Clojure中更具惯用语特征。
It converts keys in the map entries of JSON objects to Clojure keywords, which are more idiomatic to work with in Clojure.
它允许将JSON对象映射项中的键转换为Clojure关键字,后者在Clojure中更具惯用语特征。
It converts keys in the map entries of JSON objects to Clojure keywords, which are more idiomatic to work with in Clojure.
应用推荐