On 9/29/06, Dr Nic [email protected] wrote:
You’re quoting techniques need some practise! I don’t think I said that
Indeed, indeed, I deleted the “Trans wrote”, I am very bad at that,
sorry
for the confusion
so flawed too. E.g. lots of programing conventions asking for methods to
In JQuery - the javascript library - everything is centered around a
“jquery” object which holds 1+ dom objects in it. All methods on the
jQuery object should return that same set of objects (via the jQuery
object container) so that you can chain method calls.The idea of returning a proxy object (in the Magic Dot example of
.map.lengths) was very nifty. It works the normal way AND works in the
magical way.
Thx credits go to BDD of course
The more and more examples I see and concoct myself like this the more I
am happy to give up the core assumptions of “object oriented
programming” etc, and adopt “happy syntax programming”. Syntax that
reads nicely and makes sense as to what it will do and what it will
return.
You are heading for the future, I’ll try to keep up with your ideas.
Now if I could just get the code I originally wrote to work on
ActiveRecord associations I’d be such a happy camper. I’m in love with
that syntax.Nic
–
Posted via http://www.ruby-forum.com/.
Robert
–
Deux choses sont infinies : l’univers et la bêtise humaine ; en ce qui
concerne l’univers, je n’en ai pas acquis la certitude absolue.
- Albert Einstein