[Rails] Refactoring validations
Johan Sörensen
johans at gmail.com
Tue Dec 14 13:01:55 GMT 2004
Actually, _all_ the stuff in 0.9 looks sweet. Can't wait to play
around with it! (I've been putting off updating to the beta/edge
stuff).
While I'm sure a lot of "purists" has some issues with these kind of
things, but for me, it's stuff like this that makes Rails interesting;
that I don't have to do work that the framework could/should be doing.
"sustainable productivity" ;)
-- johan
On Tue, 14 Dec 2004 13:54:21 +0100, David Heinemeier Hansson
<david at loudthinking.com> wrote:
> On IRC, JS just posted an example of how a Person class with regular
> validations might look:
>
> http://rafb.net/paste/results/UnD6ZG15.html
>
> Here's how the Rails 0.9 refactored version looks:
>
> http://rafb.net/paste/results/gHymzM53.html
>
> Pretty neat ;)
> --
> David Heinemeier Hansson,
> http://www.basecamphq.com/ -- Web-based Project Management
> http://www.rubyonrails.org/ -- Web-application framework for Ruby
> http://macromates.com/ -- TextMate: Code and markup editor (OS X)
> http://www.loudthinking.com/ -- Broadcasting Brain
>
> _______________________________________________
> Rails mailing list
> Rails at lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
--
Johan Sørensen
Professional Futurist
www.johansorensen.com
More information about the Rails
mailing list