• Home
  • About

stonean

Feeds:
Posts
Comments

Stage Improvements?

February 2, 2008 by stonean

I spent some time lurking on the RubyOnRails list and eventually engaged in a couple of conversations. I came away with three important notes:

1) As this was my first publicly announced code released, I realized I should have done this earlier. Great to get feedback.
2) Some simple design changes were made to further DRY up some code from simply reading other posts (not related to Stage). i.e. moved error_messages_for to the form partial.
3) Listening to others challenge the architecture with their own, well thought out ideas, has been nice. Even though I don’t agree with some of the interpretations of design concepts, it was good.

The main goal for this generator is simplicity. I want to get to the HTML as quickly as possible. There obviously has to be some code to format the data as required and I would like to keep that code to a minimum. I also don’t want to “junk up” the controller with presentation (HTML) code. This is why I involved the helpers. In order to minimize code in my _data.html.erb file, I thought of calling one method (defined in the helper) to house the presentation logic.

I think using the helper in this fashion is the correct approach. However, I also think there is probably a better way to do this, so if you have any ideas, please let me know. If you think it’s a completely wrong approach I would also like to hear your ideas.

To those of you who have some code you would like to release but never can seem to find the time, I highly recommend doing so. I think it’s good experience.

Posted in RubyOnRails, Stage | No Comments Yet

  • Open Source


    Lockdown (GitHub)
    RuHL (GitHub)

  • Recommend Me

  • twitter: stonean

    • So I submitted my RailsConf proposal, called it Beyond MVC. We shall see. I do such a bad job talking about myself, the bio sucked. 7 hours ago
    • @ubermuda that's good to know, thank you! 1 day ago
    • @chanmix51 cool, thanks! 1 day ago
    • In vi, :set list to show hidden characters, to revert, :set nolist Very handy. 1 day ago
    • Team just did their first PechaKucha [ http://vurl.me/EEP ] session. I love this format and am very impressed with results! 2 days ago
  • Categories

    classy-inheritance Code Style DataMapper Fusion git Haml Interview Questions jQuery lockdown Merb MysqlUtils Process Quick Tips REST RSpec Ruby RubyOnRails rubytrends Stage thoughts Uncategorized


  • Archives

    • November 2009
    • May 2009
    • April 2009
    • March 2009
    • February 2009
    • January 2009
    • December 2008
    • November 2008
    • October 2008
    • August 2008
    • July 2008
    • June 2008
    • May 2008
    • April 2008
    • March 2008
    • February 2008
    • January 2008
    • December 2007
    • November 2007

Blog at WordPress.com.

Theme: Mistylook by Sadish.