My pal, Peter, put out a pretty sweet tutorial recently:
http://www.xaop.com/articles/2007/10/07/metaprogramming
Prepare to shit your SQL pants!
T.
My pal, Peter, put out a pretty sweet tutorial recently:
http://www.xaop.com/articles/2007/10/07/metaprogramming
Prepare to shit your SQL pants!
T.
Very interesting, and it’s from the Belgian Ruby U. Group. Didn’t even
know there was one!
Are you suggesting Og could use a
result = query do …
?
(ab)
Trans schreef:
[email protected]
http://rubyforge.org/mailman/listinfo/nitro-general
–
Arne B.
http://www.arnebrasseur.net
http://www.zhongwiki.com
http://www.bankske.org
[email protected]
Yes, very interesting. But don’t we already have stuff like that in Og?
(the Caboose::EZ module).
/lasso
On 11/4/07, Trans [email protected] wrote:
My pal, Peter, put out a pretty sweet tutorial recently:
http://www.xaop.com/articles/2007/10/07/metaprogramming
Prepare to shit your SQL pants!
It’s a simplified version of Kansas. Been doing this for years.
Kirk H.
On Nov 5, 3:38 am, “Lars O.” [email protected] wrote:
Yes, very interesting. But don’t we already have stuff like that in Og?
(the Caboose::EZ module).
I wouldn’t know. I find zero docs for it.
T.
On 11/5/07, Trans [email protected] wrote:
Kansas has a DSL like that?
Yeah. It’s central to why I like Kansas. And that code really
looks like it’s just a simplified reimplementation of some Kansas
code. I like some of the changes to the syntax in his example,
though.
students = ksdbh.select(:Students)
male_students = ksdbh.select(:Students) {|s| s.gender == ‘m’}
males_ordered_by_gpa_between_27_and_40 = ksdbh.select(:Students) do |s|
s.order_by(:gpa)
(s.gender == ‘m’) & (s.age.between(27,40))
end
I’ve had a Kansas rewrite on my todo list for a very long time. I am
taking a closer look at some of his syntax ideas. I like a couple of
them.
Kirk H.
On Nov 5, 10:14 am, “Kirk H.” [email protected] wrote:
On 11/4/07, Trans [email protected] wrote:
My pal, Peter, put out a pretty sweet tutorial recently:
Prepare to shit your SQL pants!
It’s a simplified version of Kansas. Been doing this for years.
Kansas has a DSL like that?
T.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs