That attitude affects idiomatic patterns as well.
此态度也影响了惯用模式。
Code blocks, expressiveness, and idiomatic patterns.
代码块、表达性和惯用模式。
Duplication in code obscures the design because you can't find idiomatic patterns.
代码复制使设计变得更加模糊,因为您无法找到惯用模式。
Every code base has idiomatic patterns; you just have to learn to see them and act.
每个代码库都有惯用模式。您必须学会发现它们并采取行动。
I contend that every code base includes idiomatic patterns, so any project would do.
我认为每个代码库都包括惯用模式,所以可以使用任何项目。
The easiest way to capture idiomatic patterns is to extract them as their own API or framework.
捕捉惯用模式最简单的方式就是将它们作为自身的API或框架予以提取。
More-expressive languages make it easier to find idiomatic patterns because the code contains less noise.
表达性更好的语言可以帮助开发人员更加轻松地发现惯用模式,因为代码中包含的无用信息更少。
Finding idiomatic patterns in code is hard enough, but if your language adds extra cruft, it becomes even harder.
发现代码中的惯用模式已经够难了,但是如果语言中再加上一些额外的晦涩的东西,那就会难上加难。
In this installment, I demonstrated the use of APIs and attributes as techniques for harvesting idiomatic patterns.
在本期中,我们展示了如何使用APIs和属性作为获取惯用模式的方法。
Several previous installments of this series focus on the obvious first step in emergent design: discovering idiomatic patterns.
本系列的前几期主要关注紧急设计中显而易见的第一步:发现惯用模式。
Most of the open source frameworks you use are sets of related idiomatic patterns that have to do with solving a particular problem.
您使用的大多数开源框架都是与解决特定问题相关的惯用模式集。
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.
到目前为止,介绍 DSL作为一种捕获惯用模式的方法可能有点抽象,因此我接下来将使用一个真实的示例作为结束。
Fluent interfaces provide a simple way to change the way you write code so that you can more readily see the idiomatic patterns you've fought to identify.
连贯接口提供一种简单的方式来更改编写代码的方式,以便您更容易看到一直竭力识别的惯用模式。
In the next installment, I continue showing how to harvest idiomatic patterns, with a collection of techniques usually used for building domain-specific languages.
在下一期中,我们将继续展示如何通过用于构建域特定语言的一系列方法获取惯用模式。
These patterns represent common solutions to problems that you've encountered while building a particular piece of software. Idiomatic patterns exist in two styles
这些模式代表对构建软件特定部分时遇到的问题的常用解决方案。
These patterns represent common solutions to problems that you've encountered while building a particular piece of software. Idiomatic patterns exist in two styles
这些模式代表对构建软件特定部分时遇到的问题的常用解决方案。
应用推荐