Good books on Ruby based DSL [closed]
I'm trying to create a DSL in ruby, can you suggest me some good books? I looked around amazon and safari but so far couldn't find any.
Thanks in advance!
Here are some possible sources:
- Metaprogramming Ruby: Program Like the Ruby Pros (Prag Progs, Feb 2010)
- Martin Fowler's DSL Book (in beta)
Martin Fowler's Domain Specific Languages book contains some Ruby examples in the Internal DSLs section. You can read the work in progress on his web site or if you've got a Safari account then it's available as a rough cut.
There are also some slides here from an Agile DSL Development in Ruby presentation by Obie Fernandez
Metaprogramming Ruby: Domain-Specific Languages for Programmers (PDF here) from an OSCON '05 session by Glenn Vanderburg
There is a relevant chapter One Lair and Twenty Ruby DSLs in the ThoughtWorks Anthology which is available in PDF as an example chapter.
精彩评论