Me
About
Gallery
Company
Girl


Projects
Ruby on Rails
Basecamp
Highrise
Backpack
Campfire
Ta-da List
Writeboard


More
Feed
Archives

December 23, 19:14

Validate models using code, not annotations

Berin Loritsch is thinking about how to validate his domain models in Java. He's on the right track with his intention to shun the XML morass so commonly sought by the J-people, but unfortunately his ambitions stop short. He seems to be content with merely annotating his models with the validation rules instead of actually embedding them in code.

If he were using Rails, he'd be able to enjoy specifying validation rules using actual code in his Active Record objects. The following is not even a mock-up, I literally yanked part of the Account model in that next project I'm working on:

class Account < ActiveRecord::Base
  validates_presence_of     :subdomain, :name, :email_address, :password
  validates_uniqueness_of   :subdomain
  validates_acceptance_of   :terms_of_service, :on => :create
  validates_confirmation_of :password, :email_address, :on => :create
end

To me, this is beautiful. Programming poetry. Each method call reads like a sentence. "Account validates acceptance of terms of service on create". How can you not love that?

So please, aim higher. Annotations are a work-around for type system thats holding you back. Let it go. We'll be happy to help you transition out of the Sun and into the shade. Come join us in the Ruby on Rails community.


Challenge by Berin Loritsch on December 23, 20:00

:) Nice post. You are right in that I seek to simplify, and there is a lot to like about Ruby and Rails--unfortunately the reality is that I have customers I need to support. They provided the Java application that I am maintaining, and there is only so much I can do at this point. I am interested in improving a lot of what I do. However, I do work with fat cliens (gui code), and I haven't seen a lot in the Ruby world to get me excited about a Ruby GUI. If you have any pointers I would be more than happy to investigate.

Challenge by on December 23, 23:03

Damn hippie.

Challenge by berkus on December 26, 11:31

to Berin: Ruby/Qt and Ruby/KDE bindings are quite functional =)

Challenge by gabriele on December 26, 17:28

same goe for the gtk2 ones, and both have the chance to use UI painters

Challenge by Berin Loritsch on December 27, 15:38

What about for Windows code? I have to support clients for both windows and linux/unix/etc. So far the best option for me has been Java--getting bindings to compile for Ruby and Perl on Windows is quite painful.

Challenge by gabriele on December 27, 18:03

I use gtk on windows, they work quite fine and have a native looking theme. I did'nt have the chance to use Qt on windows.

Anyway, the meme is that for crossplatform gui development the best thing is to use wxwidget, and luckily we have wxRuby for that.
I never used that, anyway, so I can't tell you how stable/fast it is, sorry.

Challenge by juju on May 09, 21:43

Hello. I am new here. It is very interesting.
Creampie hardcore sex pictures Anal creampie movie free Creampie gangbang pregnant cum load inside Creampies pussy Brittanys interracial creampie videos Hairy internal creampie pussy Internal cum shot creampie video Galleries free creampie movies Free and creampie and panty and pics Mature black babes nasty creampies cunt spreads Creampie pussy cunt Creampie video free Free thumbnails of creampie women Creampie stories Mature black babes nasty creampies cunt spreads Free creampies pics Creampie pussy cunt Gallery creampie pics Gallery pictures creampie Creampie pics free Mature mature plump fat hardcore pics creampie nasty fetish Creampie cock in pussy Creampie internal, cumshots Internal cum shot creampie video Mature mature plump fat hardcore pics creampie nasty fetish Free and creampie and panty and pics Gallery pictures creampie Gallery pictures creampie Creampie internal, cumshots Creampie cock in pussy Creampie internal, cumshots Creampie stories Creampie cock in pussy Galleries free creampie movies Sex advice creampie Creampie eating stories Sex creampies Galleries free creampie movies Mature mature plump fat hardcore pics creampie nasty fetish Sex advice creampie Porn movies creampie frei tgp Unsuspecting teen creampies Brittanys interracial creampie videos Free cunt creampie Gallery pictures creampie Free cunt creampie Mature mature plump fat hardcore pics creampie nasty fetish Internal cum shot creampie video Sex advice creampie Creampies pussy Mature mature plump fat hardcore pics creampie nasty fetish Grannies pussy creampies Gallery creampie pics Sex advice creampie Creampie gangbang pregnant cum load inside Eating anal creampies Creampie vaginal cum shot Mature black babes nasty creampies cunt spreads Mature mature plump fat hardcore pics creampie nasty fetish Hairy internal creampie pussy Creampie pics free Creampie cock in pussy Free cunt creampie Free cunt creampie Creampie video free Creampie pussy cunt Anal creampie mpegs Grannies pussy creampies Mature mature plump fat hardcore pics creampie nasty fetish Grannies pussy creampies

Challenge by irgy on June 04, 12:09

Sorry for my links
nud3 senior women south indian mature women free naked older women older s3xy women mature anal mature bitches mature ladies in lingerie nud3 senior women mature ladies in lingerie free naked older women mature bitches mature anal mature spunker mature nud3 pics nud3 senior women older women and younger men older moms mature amature mature nudists photos mature video older s3xy women mature amature mature nudists photos mature video older s3xy women older s3xy women nud3 senior women mature nudists photos free thumbnail pictures of older women mature amature mature spunker mature living mature amature mature nud3 pics nud3 senior women mature nudists photos older moms mature women stories free thumbnail pictures of older women mature spunker

Challenge by atmor on June 04, 19:54

Sorry for my links
mature creampies creampie t9p wife oral creampies free creampie pics free hairy creampie ass creampie ass creampie creampies movies creampie ass free creampie pics free japanese creampie links free creampie pics free creampie eating stories creampie video clips creampie video store creampie ass free creampie video xyx creampies creampies movies cum creampie free anal creampie movies xyx creampies mature creampies teen anal creampies free creampie video mature creampies free creampie thumbnails creampies movies ass creampie free anal creampie movies cum creampie free anal creampie movies creampie video store creampie ass creampie video clips free anal creampie movies creampies movies free creampie thumbnails ass creampie free creampie video

Challenge by atmor on June 05, 5:14

Sorry for my links
girls in fishnet stockings girl panty pics pantyhose chat girls in body stockings men pantyhose pictures of crossed nylon legs nylon galleries mature pantyhose pictures pictures of crossed nylon legs girls in body stockings pantyhose and nylon feet and toes pantyhose crossed legs men pantyhose men pantyhose feet in nylon nylon galleries feet in pantyhose pics pantyhose crossed legs cum on panties nylon stocking galleries cum on panties girls in body stockings russian pantyhose women pantyhose chat pictures of crossed nylon legs mature pantyhose pictures mature pantyhose pictures girl panty pics pictures of crossed nylon legs free panty thumbnail gallery free pantyhose thumbs men who wear pantyhose pantyhose chat free panty thumbnail gallery pictures of crossed nylon legs men pantyhose men who wear pantyhose girl panty pics boys in pantyhose nylon stocking galleries

Challenge by atmor on June 05, 9:19

Hello. I am new here. It is very interesting.
free creampie pics free free creampie pics and stories creampie movie interracial wives bareback creampies creampie pic interracial wives bareback creampies creampie internal, cumshots gangbang creampies videos pictures creampie creampie anal creampie internal, cumshots free anal creampie pics creampie pic creampie p0Rn creampie anal free creampie s3x creampie internal, cumshots creampie anal latina creampie creampie movie free creampie s3x creampies free creampie anal creampie internal, cumshots gangbang creampies videos creampie anal creampie cum and amature creampie anal asian creampies asian creampies creampies xyx creampie p0Rn amature creampies creampie p0Rn asian creampies creampie cum and amature creampie pic gangbang creampies videos creampie movie creampies xyx

Challenge by mary on June 05, 17:16

Hello. I am new here. It is very interesting.
mature amateur mature 1esbians mature women t9p free older women mature men galleries old naked women mature amateur old naked women mature over 50 mature wives free mature p0Rn dating mature women older women younger men mature wives older men younger women older women younger men free mature s3x free mature mature babes mature 1esbians mature women in stockings older men younger women mature women nud3 mature 1esbians mature asian mature babes old naked women free mature s3x mature men galleries mature wives mature women t9p mature wives older women younger men mature 1esbians old naked women mature women in stockings old naked women mature 1esbians dating mature women mature amateur

Challenge by bob on June 06, 11:51

Hi. This is my links.
mature hardcore links mature mistress how to meet older women mature hardcore links black older ladies mature hardcore links mature hardcore links mature nudists young girls older men free older women galleries mature women over 40 how to meet older women mature pic gallery mature pantyhose pictures mature women over 40 mature index naked old women thumbs naked old women thumbs how to meet older women mature hardcore links thumbs gallery older women free older women galleries how to meet older women mature glamour naked old women thumbs older holland naked old women thumbs older holland mature glamour mature pantyhose pictures older 1esbians how to meet older women mature hardcore links mature glamour free older women galleries free older women galleries mature hardcore links mature hardcore links older holland free older women galleries

Challenge by boris on June 06, 19:22

Sorry for my links
stories of 1ncest free 1ncest storys teens 1ncest pics family s3x stories family 1ncest pictures mom son galleries family 1ncest pictures 1ncest chat 1ncest chat s3x 1ncest russian 1ncest free er0t1c 1ncest stories mom 1ncest family s3x stories 1ncest chat family s3x stories 1ncest t9p 1ncest chat family 1ncest pictures s3x 1ncest real 1ncest 1ncest free gallery mom son 1ncest bbs russian 1ncest mom son galleries 1ncest chat stories of 1ncest free er0t1c 1ncest stories family 1ncest pictures 1ncest free gallery s3x 1ncest father son 1ncest mom son brother sister s3x mom son galleries free 1ncest photos 1ncest bbs mom son 1ncest bbs

Challenge by jon on June 08, 0:21

Hello. I am new here. It is very interesting.
wet pantyhose satin panty galleries free teen panties free teen panties mature pantyhose pics wet pantyhose girls in nylons panty thumbnails panty post pantyhose images free teen panties mature women in pantyhose mature ladies in pantyhose girls in nylons free teen panties office girls in nylons panty post panty post white pantyhose free wet panty white pantyhose free wet panty panty fetish men caught wearing pantyhose free wet panty winnie-cooper pantyhose free teen panties men's pantyhose celebrities in pantyhose girls in nylons panty post satin panty galleries office girls in nylons mature women in pantyhose panty fetish free wet panty white pantyhose celebrities in pantyhose winnie-cooper pantyhose girls in nylons

Challenge by angel on June 08, 4:11

Hello. I am new here. It is very interesting.
little school girls panties free pantyhose sites pantyhose foot gallery teens in pantyhose wolford pantyhose teen panty pictures free panties silkies pantyhose crotchless pantyhose silkies pantyhose teen panty pictures free pantyhose sites bra and panty pics pantyhose foot gallery mature women in nylons free pantyhose pics pantyhose pic gallery pantyhose foot gallery teen panty pictures shiny pantyhose pantyhose foot gallery men in panty pics panty line pics pantyhose fetish free pantyhose sites free pantyhose pics panty girls teen panty pictures men in panty pics mature women in nylons little school girls panties free pantyhose pics panty girls little school girls panties bra and panty pics pantyhose pic gallery pantyhose pic gallery panty line pics free pantyhose pics teen panty pictures

Challenge by alan on June 08, 19:31

Sorry for my links
free pics mature ladies nud3 mature black women mature older t9p mature s3x pics mature s3x pics free pics mature ladies free pics mature ladies free mature movies nud3 mature men mature 1esbian top mature t9p's free mature movies mature 1esbian s3xy mature women nud3 mature men mature older t9p s3xy mature women mature 1esbian free mature s3x pics mature cart00ns victor mature free mature movies bcn mature nud3 mature black women victor mature free mature movies victor mature mature 1esbian mature cart00ns free mature s3x pics free mature s3x pics free mature s3x pics bcn mature nud3 mature top mature t9p's free mature movies free pics mature ladies top mature t9p's bcn mature nud3 mature