The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Discovering a world of resources

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
David Heinemeier Hansson

Posts: 512
Nickname: dhh
Registered: Mar, 2004

David Heinemeier Hansson is the lead Ruby developer on 37signal's Basecamp and constructor of Rails
Discovering a world of resources Posted: Jun 28, 2006 9:16 AM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by David Heinemeier Hansson.
Original Post: Discovering a world of resources
Feed Title: Loud Thinking
Feed URL: http://feeds.feedburner.com/LoudThinking
Feed Description: All about the full-stack, web-framework Rails for Ruby and on putting it to good effect with Basecamp
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by David Heinemeier Hansson
Latest Posts From Loud Thinking

Advertisement

Over the past couple of months, my interest in HTTP, resources, and the effects of a CRUD-constrained approach to controllers have lead to a profound simplification in how I develop Rails applications.

I've been putting all of these thoughts to use in my work on Sunrise, the next application from 37signals, and its already proven a treasure trove of extractions.

As often is the case, these extractions see the light of day even before the originating application does. So at both RubyKaigi and RailsConf, I took the opportunity to explain where we are and the immediate future as I see it. Now that both those presentations have been delivered, the slides are available.

Interestingly enough, the most profound benefit I'm witnessing of this renaissance for HTTP has not been related to first-order glories of the protocol itself. But rather to the second-order impact it has on domain modeling. The birth of a new default assumption to design: "What if the whole world could be modeled under the constraints of CRUD?".

That's where the biggest and most satisfying payoff has lied for me personally. It's somewhat similar to the notion that test-driven development is less about tests and more about design. There are two examples in the slides to exemplify the effects of such a transformation.

I believe that's also what gave some people the chills at RailsConf. "Is DHH trying to to tighten the belts on the straight jacket of design once more?", seemed to be the worrying notion. Why yes, I am. But this time its an entirely voluntary committal. The brave new world of resources is accessible by choice, not mandate. And if you want to continue on with your life with a notion of HTTP as merely an inconsequential transfer protocol unworthy of your attention, you'll be more than free to do so.

But. If you choose to partake in the renaissance, be prepared to raise your game to a new level of delight. There's a rejuvenation awaiting you. One that'll simplify your controllers, bless your application with an almost-free REST API, and elevate your domain model even further away from the depths of anemic.

Can I get a hallelujah?

(Jim has a good walk-through of the specifics of the presentation that's worth reading while perusing the slides)

Read: Discovering a world of resources

Topic: What's New in Edge Rails: Create a Hash from XML Previous Topic   Next Topic Topic: What's New in Edge Rails: find_or_initialize_by_...

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use