News for hackers. Stuff that matters.
Re:Automatic programming: write code that writes code by shane_mcd on Saturday May 12, 2012 @08:37AM (#3963663)
Rails' method_missing is a great example of this and awesome to read through for a thorough mind fuck.
Re:Automatic programming: write code that writes code by gnaritas on Saturday May 12, 2012 @12:07PM (#3964254)
Rails doesn't have a method_missing, Ruby does, it copied it from Smalltalk's #doesNotUnderstand:. Rails is a framework, not a language.
Re:Automatic programming: write code that writes code by shane_mcd on Saturday May 12, 2012 @02:12PM (#3964675)
Oh come on. I meant how it was implemented with AR
Re:Automatic programming: write code that writes code by gnaritas on Saturday May 12, 2012 @05:29PM (#3965192)
I have no idea what you meant, I can only comment on what you said. Had you said activerecord's implementation of method_missing, I'd have understood, but you said Rails.