Domain-Specific Languages (Addison-Wesley Signature Series) by Martin Fowler

By Martin Fowler

Whilst rigorously chosen and used, Domain-Specific Languages (DSLs) may perhaps simplify advanced code, advertise potent verbal exchange with consumers, enhance productiveness, and unclog improvement bottlenecks. In Domain-Specific Languages, famous software program improvement specialist Martin Fowler first offers the knowledge software program pros have to come to a decision if and while to make use of DSLs. Then, the place DSLs turn out appropriate, Fowler provides potent ideas for development them, and publications software program engineers in selecting the right ways for his or her functions.
This book’s ideas can be applied with latest object-oriented languages; the writer offers quite a few examples in Java and C#, in addition to chosen examples in Ruby. at any place attainable, chapters are geared up to be self-standing, and such a lot reference subject matters are provided in a well-recognized styles layout.
Armed with this wide-ranging ebook, builders could have the data they should make very important judgements approximately DSLs—and, the place applicable, achieve the numerous technical and enterprise advantages they provide.

The issues coated include:
•      How DSLs evaluate to frameworks and libraries, and whilst these possible choices are sufficient
•      utilizing parsers and parser turbines, and parsing exterior DSLs
•      realizing, evaluating, and selecting DSL language constructs
•      opting for even if to take advantage of code new release, and evaluating code new release strategies
•      Previewing new language workbench instruments for developing DSLs

Show description

Read or Download Domain-Specific Languages (Addison-Wesley Signature Series) PDF

Similar java books

Ruby on Rails for PHP and Java Developers

The net framework Ruby on Rails for constructing database established internet purposes offers a Model-View-Controller framework. the necessary net server WEBrick is incorporated with Ruby on Rails. The framework is configured with the MySQL database via default, yet could be configured with one other database.

The booklet covers constructing internet functions with Ruby on Rails. applied sciences mentioned comprise Ajax, listing prone, and net providers. A comparability is made with personal home page, the main regularly occurring scripting language for constructing internet purposes.

Programming Spiders, Bots, and Aggregators in Java

The content material and providers on hand on the net remain accessed more often than not via direct human keep watch over. yet this can be altering. more and more, clients depend upon computerized brokers that retailer them effort and time by way of programmatically retrieving content material, acting advanced interactions, and aggregating info from varied resources.

Java Database Programming with JDBC: Discover the Essentials for Developing Databases for Internet and Intranet Applications

Teaches you the way to strengthen Java courses, from begin to end, for connecting to databases utilizing Java's new database connectivity surroundings, JDBC. Tells the way to simply set up drivers for many databases. contains a part on programming ODBC Java courses, together with a strong ODBC patron template for constructing your personal purposes.

The Java™ Class Libraries, Volume 2: java.applet, java.awt, java.beans (2nd Edition)

Because the definitive connection with the Java 1. 1. 2 model category libraries, this ebook is a necessary source for either newbie and skilled Java programmers. This quantity offers complete reference documentation for the improvement of applets, consumer interfaces, and Java beans. The programs coated in quantity 2 are: java applet, java awt snapshot, java awt, java awt peer, java awt facts move, java beans, java awt occasion.

Extra info for Domain-Specific Languages (Addison-Wesley Signature Series)

Sample text

You might build several controllers and only then realize that there is a lot of common functionality. I'd then refactor the system to create separation between the model and the configuration code. This separation is the vital step. While I might have a DSL in mind while doing it, I'd be more inclined to get the separation done first, before putting the DSL on top. While I'm here, I should stress something that I wish I didn't need to. Do make sure all your DSL scripts are kept under some form of version control system.

While I don't think anyone would disagree that regular expressions are a DSL, there's plenty of cases that are open to reasonable argument. As a result I think it's worth talking about some of these cases here as they help provide a better idea of how to think about DSLs. Each style of DSL has different boundary conditions, so I'll discuss them separately. As we go through these, it's worth remembering that the distinguishing characteristics of DSLs are their language nature, domain focus, and limited expressiveness.

I use domain language to mean a domain-specific human language and reserve "DSL" for computer languages. So, what has this discussion of the boundaries of DSLs taught us? Hopefully, one thing that is clear is that there are few sharp boundaries. Reasonable people can disagree on what is a DSL. Tests like language nature and limited expressiveness are themselves very blurry, so we should expect the result to exhibit the same blur. And not everyone will use the boundary conditions that I do. In this discussion, I've excluded many things from being a DSL, but this doesn't mean that I don't consider them valuable.

Download PDF sample

Rated 4.53 of 5 – based on 37 votes