Am I just super angry and vitriolic today, or does anyone find Metaprogramming Refactoring fairly undersatisfying?
But it's not until Ruby entered the common programmers mind that Metaprogramming actually starts to become common place.
My goodness, did that quote fall through time from maybe 2010 or 2012 when Ruby has usable documentation and has actually entered the common programmer's mind?
I also love the way how the rite of passage for Tcl programmers is writing an efficient control flow operator, for Haskell programmers is calculating the Fibonacci sequence, for Perl programmers is writing a templating system, for Java programmers is writing XML to avoid writing Java, and for Ruby programmers is evidently defining a bunch of functions and symbols and data structures and calling them a DSL.
(My theory? Vitrolic but correct.)
Wow! (Score:1)
It was quite depressing to realise how many folks at Railsconf Europe seemed to be under the impression that Ruby was something really special because it has 'yield'.
I'm not saying it's not special, it's a great language, but not necessarily for the reasons the frothers think it is.
Re: (Score:1)
I particularly enjoy this: (emphasis his)
"This can be done in Lisp too. Has been possible for many years before both Perl and Ruby. The point is that Ruby is getting so much traction for (so called) real programming which means that metaprogramming is now accessible to the masses, as I argue it wasn't when confined to Perl and Lisp."
Clearly the problem all along is that Perl and Lisp confined their features to the language itself, rather than projecting them onto the masses. Ruby = Accessible beca
Re: (Score:1)
Let's try again. Now with extra concentration. "Matz Save Me From Your Followers!"
metaprogramming (Score:1)
The room was packed to the gills, but I ended up being sorely disappointed, even with my relatively low expectations. It was just some clever playing around with features found in any reasonably dynamic language. T
rjbs
Re: (Score:1)
“The Ruby buzz is the sound of a bunch of Java programmers finally discovering how cool Perl is. [bofh.org.uk]”
Re: (Score:1)
I've seen similar talks and examples. I can do the string eval trick in C, if I have a compiler and linker available. That by itself is not so impressive to me in any language that lets you load foreign code at runtime.
That said, Perl's other metaprogramming facilities are a bit clunky. Typeglobs and symbolic references and no true metamodel make things ugly, if not difficult. Ruby has a syntax advantage with its blocks and its class metamodel as well as its fundamental object orientation of primitive
Re: (Score:1)
What really strikes me, though, is how often I see metaprogramming stuff implemented as Ruby source generation instead of Ruby object generation. Oh well; at least I know I can do things cleanly, if I want.
rjbs
Re: (Score:1)
Oh? Really? [neugierig.org]
Re: (Score:2)
- ask
-- ask bjoern hansen [askbjoernhansen.com], !try; do();