From: Josh Cheek Date: 2011-08-09T15:07:57+09:00 Subject: Re: [ANN] 2011 Gotham Ruby Conference Videos are up --bcaec54ee99e4f6d5004aa0c6248 Content-Type: text/plain; charset=ISO-8859-1 On Tue, Aug 9, 2011 at 12:49 AM, Kevin wrote: > On Mon, Aug 8, 2011 at 10:54 PM, Josh Cheek wrote: > > On Mon, Aug 8, 2011 at 12:23 PM, Stephen Schor >wrote: > > > >> Better late than never. > >> > >> http://vimeo.com/album/1634019 > >> > > > > > > I thought "Less - The Path to Better Design", by Sandi Metz was > > exceptionally good http://vimeo.com/26330100, it focuses on abstract > issues, > > but in a very concrete way (ie it's not one of those blogs/talks that > sound > > great but leave you with no idea how to apply it). > > > > Abstract: The concrete principles of object-oriented design are useful > but > > are built upon powerful concepts that the principles tend to obscure. > When > > design principles become goals in and of themselves, object-oriented > design > > gets a bad name and applications suffer. This talk strips away the > > well-known design principles and exposes the hidden, underlying goals of > > design. It reveals programming techniques that allow you to write less > code > > while creating beautiful, flexible applications. These techniques all > > involve less. Doing less, debugging less, testing less and knowing less, > all > > in service of achieving more. > > > > That was a great talk. I found myself on the verge of tears as the > hell she describes when things go wrong is basically the application I > have to maintain at the moment. TT Though in my case I'll be in a > good spot once I move the validations to the client. > > If you're talking about a web app, you should consider that there are ways around client side validations. If the validation is imperative to the security or integrity of your app, then you should still check it server side (and possibly even in the DBMS itself). In these situations, I think it is fine to "blow up", though. The client side validations are useful to give a nice interface and ensure valid data with smooth interaction for the user. The server side are just to maintain integrity/security, if server side blows up, I don't care about it, it's because of either a bug that should be fixed, or an insidious user, in which case 500 is probably better than a polite explanation of the issue that gives them more knowledge. --bcaec54ee99e4f6d5004aa0c6248--