基于 UML特定领域语言(DSL)支持
本系列的上一期介绍了如何使用特定领域语言(DSL)来捕获域惯用模式。
The preceding installment of this series introduced the subject of using domain-specific languages (DSLs) to capture domain idiomatic patterns.
作者也讨论了统一建模语言(UML)概要文件对于特定领域语言的用途,比如SOA。
The authors also discuss the use of Unified Modeling Language (UML) profiles for domain-specific languages, such as SOA.
在上个月的这一专栏中,我讲述了使用特定领域语言(dsl)的示例,在您的代码中定义为通用设计习惯。
In last month's installment, I showed examples of using domain-specific languages (DSLs) to harvest idiomatic patterns, defined as common design idioms in your code.
未来的VS版本将会基于一套新的建模工具,同时支持统一建模语言(uml)和特定领域语言(DSL),另外还包括架构资源管理器。
The future VS version will be based on a new set of modeling tools, which support both Unified modeling Language and Domain Specific Language, and will include Architecture explorer.
对于更高级的用户,他们懂一点逻辑,懂得如何创建测试场景,可以使用编辑器和功能测试的领域特定语言去构造测试。
For more advanced users, who understand a little logic and how test scenarios should be created, they can use the editor to construct tests using a functional testing DSL (domain specific language).
当基于DSL(领域特定语言)来记录应用程序的架构文档时有没有特殊的模式可遵从?
Are there any special architecture documentation patterns one should follow in documenting the architecture of applications that are based on Domain Specific Languages (DSL)?
领域特定语言(DSL)用于描述单一域中的元素(可能范围很小)。
A domain specific language (DSL) is used to describe the (possibly narrow) elements of a single domain.
捕获太多的细节就像是在使用某个模型或领域特定语言来开发代码。
Capturing too much detail is like developing code using a model or domain-specific language.
当前,我们主要专注于领域特定语言。
它没有依赖XML映射文件以及字符串识别符来组成组件,而是提供了健壮的领域特定语言。
Rather than relying on XML mapping files and string identifiers to wire up components, Ninject provides a robust domain-specific language.
从语言设计的角度来看,外部领域特定语言能够提供最大程度的灵活性,因为内部领域特定语言语言必须遵循宿主语言的解析和语言语义。
From the language design perspective, an external DSL provides the greatest flexibility, since internal DSLs must respect the parsing and language semantics of the host language.
InfoQ:Groovy在创建领域特定语言(DSL)方面扮演了什么角色?
InfoQ: What role does Groovy play in creating the Domain Specific Languages (DSLs)?
下一次,我将谈谈领域特定的语言以及它们在Rubyon Rails中的作用。
Next time, I'll talk about domain-specific languages and their role in Ruby on Rails.
WebDSL是一种领域特定语言,用于开发具有丰富数据模型的动态Web应用。
WebDSL is domain-specific language for developing dynamic web applications with a rich data model.
关于哪些是构成好的领域特定语言设计的因素,还有待于我们去逐步发掘。
There’s still a lot to be discovered about what constitutes a good language design for DSLs.
也可以只暴露过程语言的子集,创建非常简单的领域特定过程语言,例如文档管理系统中用来指定批准的语言。
It's also possible to only expose a subset of the process language, creating very simple domain specific process languages, for example to specify approvals in a document management system.
这些求解方法同时提供了创建诸如领域特定语言之类强大工具的能力。
The evaluation methods also provide the ability to easily create very powerful tools such as Domain Specific Languages.
规则语言是一种特定于领域的语言,包含定义业务规则的构造。
A rules language is a domain specific language, containing constructs for defining of the business rules.
内部和外部领域特定语言其实各有所长。
As for the internal versus external language decision, each has its advantages.
比如,SQL为处理与数据库打交道的问题,提供了刚刚好的编程语言功能,使之成为一个领域特定语言。
For example, SQL provides just enough of a programming language to handle the problems of working with databases, making it a domain-specific language.
领域特定语言的演进和代码的演进其实如出一辙,唯一的例外是一旦要在生产中开始使用领域特定语言,那么就必须考虑如何把已有的代码移植过去。
Evolving the language works in much the same way as evolving code, with the exception of once the DSL is in production use, migration of existing scripts might have to be addressed.
领域特定语言也可以对自身进行裁剪以适应当前的问题领域,从而有助于增进业务团队和开发团队之间的沟通。
DSLs provide the option to tailor the language itself to the problem at hand, facilitating communication between the business and the development team.
rjp:除了新的工具和开发流程这些问题,使用领域特定语言还需要用新的思维方式思考问题。
RJP: in addition to the issues of new tools and processes, using DSLs requires a different way of thinking about the problem.
MF:我想目前为止我们还没有就在大范围内开发领域特定语言积累足够的经验。
MF: I don't think we have enough experience yet at DSLs being developed in a more widespread way.
领域特定语言,也称为DSL,为特定的问题领域提供了一种方便的语意来表达自己的目标。
Domain-Specific Languages, or DSLs, provide a convenient syntactical means for expressing goals in a given problem domain.
领域特定语言更多的只是一种帮助不同角色之间进行更深入和更精确沟通的工具。
DSLs are more of a tool to help a deeper and more precise conversation between different roles.
rjp:目前大众对领域特定语言及其用途,实现领域特定语言的相关工具和技术都缺乏了解。
RJP: There is a lack of understanding of DSLs, their USES, and the tools and techniques needed to implement them.
MF:和其它许多事情一样,我不认为领域特定语言的代码和其它代码有多大的区别。
MF: Like so many things, I don't think there's much of a difference between these and any other kind of code.
MF:和其它许多事情一样,我不认为领域特定语言的代码和其它代码有多大的区别。
MF: Like so many things, I don't think there's much of a difference between these and any other kind of code.
应用推荐