New article at RC&S: If It's Not Nailed Down, Steal It: Patt


#1

Topher Cyll has written an outstanding article for Ruby Code & Style[0].

“If It’s Not Nailed Down, Steal It: Pattern Matching, S-Expressions, and
Domain Specific Languages in Ruby.”

Summary:
There’s a whole world of language features that we sometimes miss out on
as Rubyists, such as pattern matching, S-expressions, and external
domain-specific languages. But the good news is that we can have them,
too, as long as we’re not afraid to steal a few things first.

Take a gander, post some comments, and keep having fun with Ruby.

A big thanks to Topher, and thanks also to the RC&S advisory board and
editors for helping get this out.

About RC&S:

Ruby Code & Style is the premiere online zine by and for the Ruby
community. We’re always on the lookout for quality articles geared
towards Ruby developers (and we’re now able to pay the writers). If
you have an idea you think you may want to write about, please drop me a
line: ruby.code.and.style AT gmail DOT com

[0] http://www.artima.com/rubycs/articles/patterns_sexp_dsls.html

James B.
Editor-in-Chief, Ruby Code & Style


#2

On 5/23/06, James B. removed_email_address@domain.invalid wrote:

Topher Cyll has written an outstanding article for Ruby Code & Style[0].

“If It’s Not Nailed Down, Steal It: Pattern Matching, S-Expressions, and
Domain Specific Languages in Ruby.”

Not a comment on the article yet, as I haven’t got that far in (what
I’ve seen so far, looks great, though!). I did notice however that the
something in the formatting engine is messing with some of the code
samples. For example, a line that I assume should look like this:

return 1 if n == 0 || n == 1

Looks instead like this:

return 1 if n 0 || n 1

Just FYI…

Jacob F.


#3

Jacob F. wrote:

return 1 if n 0 || n 1

:frowning:

Thanks! I’ll go get that sorted out.


#4

Great article! Finally, I see what s-exps are about.


#5

On May 23, 2006, at 2:26 PM, James B. wrote:

Topher Cyll has written an outstanding article for Ruby Code & Style
[0].

This is a terrific article. Thanks for sharing.

James Edward G. II