29 Dec '15, 2pm

Rails' Invalid Object Is An Anti-Pattern

You may think that validations help here. You are almost right. Validations reduce the risk that your system will crash due to invalid state but they are no guarantee. Not to mention that in complex domains validation logic is just damn difficult to implement and despite your great efforts your database is being filled with invalid data. At some point you will see it once some new feature was added that happens to rely on that data but now you need to fix the data that you already have persisted, and often it is a troublesome process.

Full article: http://solnic.eu/2015/12/28/invalid-object-is-an-anti-pat...

Tweets

Invalid Object Is An Anti-Pattern

rubyflow.com 29 Dec '15, 12pm

× The Ruby and Rails community linklog Made a library? Written a blog post? Found a useful tutorial? Share it with the Rub...

#ruby-on-rails: build associated object #Tech #...

abizy.com 02 Jan '16, 9pm

We do not share, store or cache any illegal files on this blog. We only share digital contents those are licensed under “C...

It's a pattern parade at @FrankitasDesign ! Mor...

tangs.com 30 Dec '15, 6am

is the season of giving. So what if you could follow your moral Christmas compass and do some responsible present buying i...

Ring in the #NewYear with some pre-Prohibition ...

christies.com 01 Jan '16, 1am

‘My highlight of the year’ — A review of the year in art and objects Christie's specialists select their favourite lots of...

Hearty Handbag - a knitting pattern by Shiri Designs! #yarn #pattern #handmade

Hearty Handbag - a knitting pattern by Shiri De...

etsy.com 30 Dec '15, 9pm

This adorable warm-hearted handbag is filled with good intentions! A quick yet interesting one-piece knit, this tote makes...