That attitude affects idiomatic patterns as well.
此态度也影响了惯用模式。
Code blocks, expressiveness, and idiomatic patterns.
代码块、表达性和惯用模式。
Idiomatic patterns represent common design idioms in your code.
惯用模式代表代码中常用的设计习惯。
But it also helps you discover the idiomatic patterns that exist in your code.
但是,它也有助于发现代码中存在的惯用模式。
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或框架予以提取。
One of the goals of emergent design is to find idiomatic patterns of use within your application.
紧急设计的目标之一是找到应用程序中使用的惯用模式。
A portion of emergent design is the ability to see and harvest idiomatic patterns from existing code.
一部分紧急设计能够从现有代码中查看和捕获惯用模式。
More-expressive languages make it easier to find idiomatic patterns because the code contains less noise.
表达性更好的语言可以帮助开发人员更加轻松地发现惯用模式,因为代码中包含的无用信息更少。
This works well for idiomatic patterns in emergent design because domain patterns are frequently declarative.
这对于紧急设计中的惯用模式很有效,因为域模式通常都是声明性的。
One of the key enablers for emergent design is the ability to harvest and use the idiomatic patterns you uncover.
紧急设计的一个关键性促进因素是捕获和使用您发现的惯用模式的能力。
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和属性作为获取惯用模式的方法。
One of the difficulties for emergent design lies in finding idiomatic patterns and other design elements hidden in code.
紧急设计的难题之一是寻找隐藏在代码中的惯用模式和其他设计元素。
Several previous installments of this series focus on the obvious first step in emergent design: discovering idiomatic patterns.
本系列的前几期主要关注紧急设计中显而易见的第一步:发现惯用模式。
Leveraging the language's expressiveness makes it easier to see idiomatic patterns emerge because the medium of design is clearer.
充分利用语言的表达性有利于更容易地发现惯用模式,因为设计的媒介更清晰。
Most of the open source frameworks you use are sets of related idiomatic patterns that have to do with solving a particular problem.
您使用的大多数开源框架都是与解决特定问题相关的惯用模式集。
The more expressive your design, the easier it is to modify it and eventually harvest idiomatic patterns from it via emergent design.
设计的表达性越强,就越容易修改,并最终通过紧急设计从中收获惯用模式。
You can also capture some categories of idiomatic patterns using metaprogramming and attributes (see " Leveraging reusable code, Part 2").
您也可以捕获一些使用元程序和属性的惯用模式(见 “ 演化架构和紧急设计:利用可重用代码,第 2部分”)。
The preceding installment of this series introduced the subject of using domain-specific languages (DSLs) to capture domain idiomatic patterns.
本系列的上一期介绍了如何使用特定领域语言(DSL)来捕获域惯用模式。
Extracting idiomatic patterns as APIs is a perfectly valid technique and probably the most common way to leverage the reusable gems you uncover.
将APIs作为惯用模式进行提取是一种极其有效的方法,而且可能是利用您所发现的可重用gems最常见的方式。
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.
连贯接口提供一种简单的方式来更改编写代码的方式,以便您更容易看到一直竭力识别的惯用模式。
A few installments ago, I began covering the harvesting of domain idiomatic patterns (solutions to emergent business problems) using 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
这些模式代表对构建软件特定部分时遇到的问题的常用解决方案。
In the next installment, I continue showing how to harvest idiomatic patterns, with a collection of techniques usually used for building domain-specific languages.
在下一期中,我们将继续展示如何通过用于构建域特定语言的一系列方法获取惯用模式。
In this installment, I'll wrap up this discussion of using DSLs to harvest idiomatic patterns by showing how to build more-sophisticated DSLs in Ruby, leveraging JRuby.
在此部分,通过显示如何在Ruby中建立更复杂的DSL,以及利用JRuby,我将结束使用dsl来获取惯用模式的讨论。
应用推荐