[ANN] New article at RC&S: If It's Not Nailed Down, Steal It: Pattern Matching, S-Expressions, and Domain Specific Languages in Ruby

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 Britt
Editor-in-Chief, Ruby Code & Style

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 Fugal

···

On 5/23/06, James Britt <james_b@neurogami.com> 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."

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

This is a terrific article. Thanks for sharing.

James Edward Gray II

···

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

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

Jacob Fugal wrote:

...
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

:frowning:

Thanks! I'll go get that sorted out.

···

--
James Britt