21 Jul '13, 1pm

@_swanand @derekprior believe it or not, they do: (further evidence that many devs don't read them)

Database constraints and/or stored procedures make the validation mechanisms database-dependent and can make testing and maintenance more difficult. However, if your database is used by other applications, it may be a good idea to use some constraints at the database level. Additionally, database-level validations can safely handle some things (such as uniqueness in heavily-used tables) that can be difficult to implement otherwise. Client-side validations can be useful, but are generally unreliable if used alone. If they are implemented using JavaScript, they may be bypassed if JavaScript is turned off in the user's browser. However, if combined with other techniques, client-side validation can be a convenient way to provide users with immediate feedback as they use your site. Controller-level validations can be tempting to use, but often become unwieldy and difficult to t...

Full article: http://guides.rubyonrails.org/active_record_validations.h...

Tweets

The Perils of Uniqueness Validations

robots.thoughtbot.com 17 Jul '13, 1pm

July 17, 2013 derekprior rails SQL The Perils of Uniqueness Validations Your Rails application probably makes use of uniqu...

@mineroaoki ちょっと古いですが、これとか参考になりませんかね。

railscasts.com 20 Jul '13, 5pm

This episode will show you how to make a model which isn't based on Active Record. You may want to do this if a resource i...

5 rules for running forever from 95-year-old wo...

runnersworld.com 17 Jul '13, 4pm

Orville Rogers began running at a time when many considered it unhealthy. Try telling him that now. The 95-year-old Dallas...

How to "read" a shot of espresso: #coffee #nerdery

How to "read" a shot of espresso: #coffee #nerdery

intelligentsiacoffee.com 21 Jul '13, 2pm

The range of colors that can appear in an espresso are remarkable. Knowing what those colors mean, and how the changes in ...

New York City breaks all-time energy use record

New York City breaks all-time energy use record

treehugger.com 22 Jul '13, 2pm

It was hot and humid on Friday in New York. So hot, in fact, that New York City set an all-time record for energy usage. Y...

Ice, ice, maybe: Snow and ice melting at record speed

Ice, ice, maybe: Snow and ice melting at record...

grist.org 20 Jul '13, 12am

Shutterstock Take a picture — it’ll last longer than the snow cover. You may have noticed it’s been a hot summer so far. J...

Record suicide rate - what's ailing Singapore

Record suicide rate - what's ailing Singapore

yoursdp.org 16 Jul '13, 5am

Singapore recorded 467 suicides in 2012 – the highest number in 20 years. On average, more than one person took his/her ow...

Video Ad Views Surge to Record 20 Billion in June

searchenginewatch.com 18 Jul '13, 7pm

According to the latest data from comScore Video Metrix , 183 million Americans watched more than 44 billion online conten...