Ruby DSL Handbook
clean-ruby.com
Ruby DSL Handbook
1–10 of 30 posts
Re: Ruby DSL Handbook
#2http://www.infoq.com/presentations/kilmer-ruby-dsls
Good stuff from a guy who's done some pretty massive DSLs on DARPA projects.
Re: Ruby DSL Handbook
#3Re: Ruby DSL Handbook
#4Signed: everyone who's ever used a DSL which could have been written better as a couple of dozen functions.
Re: Ruby DSL Handbook
#5I think it needs a foreword: "your problem likely is nowhere near needing a DSL, please don't write one just because it makes you look clever". Signed: everyone who's ever used a DSL which could have been written better as a couple of dozen functions.
I had /some/ bad experiences with some DSL, but most of my experiences with them were pretty good (even those who I didn't write).
Re: Ruby DSL Handbook
#6I think it needs a foreword: "your problem likely is nowhere near needing a DSL, please don't write one just because it makes you look clever". Signed: everyone who's ever used a DSL which could have been written better as a couple of dozen functions.
Ruby is a really bad language to write good DSLs in. Metaprogramming is an awkward replacement for better DSL facilities.
Maybe this book can demonstrate better techniques?
Re: Ruby DSL Handbook
#7I think it needs a foreword: "your problem likely is nowhere near needing a DSL, please don't write one just because it makes you look clever". Signed: everyone who's ever used a DSL which could have been written better as a couple of dozen functions.
Almost any problem can be meaningfully and usefully solved by introduction of a DSL. It's a remarkably flexible technique. Ruby is a really bad language to write good DSLs in. Metaprogramming is an awkward replacement for better DSL facilities. Maybe this book can demonstrate better techniques?
Re: Ruby DSL Handbook
#8I think it needs a foreword: "your problem likely is nowhere near needing a DSL, please don't write one just because it makes you look clever". Signed: everyone who's ever used a DSL which could have been written better as a couple of dozen functions.
Almost any problem can be meaningfully and usefully solved by introduction of a DSL. It's a remarkably flexible technique. Ruby is a really bad language to write good DSLs in. Metaprogramming is an awkward replacement for better DSL facilities. Maybe this book can demonstrate better techniques?
Re: Ruby DSL Handbook
#9I think it needs a foreword: "your problem likely is nowhere near needing a DSL, please don't write one just because it makes you look clever". Signed: everyone who's ever used a DSL which could have been written better as a couple of dozen functions.
That you suffered from DSL is probably a sign that this book will be filling a gap :-) I had /some/ bad experiences with some DSL, but most of my experiences with them were pretty good (even those who I didn't write).
I can't remember the joke but the tagline goes, "Code I didn't write" anyone?