- We design and build extraordinary applications for companies looking to make the next great idea a reality.
- learn more
A Look Back At Past Posts
Updates to past posts:
TankEngine
Thanks to Gregg and Jason at RailsEnvy for mentioning TankEngine on their podcast. The git repository now has 54 watchers and 3 forks. Thanks, everybody who is watching. I'm hoping for some updates soon.
Plugin testing
This is always what I'm afraid of, I write a big post on something, then a commenter points out a plugin that already does it reasonably well. In this case, the commenter mentioned the plugin_test_helper library, which allows you to pretty easily include a Rails environment inside your plugin for testing. The only problem I had with it is that if you have an actual application has this plugin installed, it seems to do odd things to the environment load -- I wound up limiting the init.rb of the plugin to only do something if the RAILS_ENV was specifically set to test plugins.
REST
After being a little cranky about REST a few weeks ago, I wound up doing some much stricter REST development on part of a new project. The one addition I'd like to make to the previous post is that REST is a very useful abstraction for determining when you need to split off functionality into another controller.
In particular, when you start adding methods to an existing controller with names like "add_subfeature" or "list_subfeature" your code is probably trying to tell you to split off to another RESTful controller, where you can call those things "create" and "index".
I should also mention, with respect to the topic of the last post, that it is possible to include Ajax features within the standard REST methods by triggering different respond_to blocks. That works to a point, but can eventually lead to the kind of bloated controller methods that REST was supposed to avoid.
Project Post-Mortem
The project that included integrated design drafts, named-scope based reporting, and aggressive markup in the helpers had it's post-mortem this week. It was interesting to see how these sort-of prototype structures worked in the context of the larger team project.
On the plus side, everybody seemed to like the integrated design materials, even with the sort of rickety implementation described in the blog post. The designers liked being able to easily integrate wireframes with actual site material, the programmers liked seeing the wireframes as they were working on the real site.
I think the named-scope stuff was basically liked, but the common Ajax controller that I created to manage it across various resources was, I think, generally understood to be "weird", "non-standard", and "probably not the best way to structure the problem".
The HTML markup in the helper files was not liked very much by the rest of the team. Everybody felt it was kind of hard to find where code was, and also that it was harder to modify than traditional ERb. I still think the mechanism has some use as a replacement for content_tag, but it probably needs to be better integrated with the existing partials system for better usage. So I guess we're still looking for the best way to untangle complicated markup.
Topics: Ruby on Rails
Leave a comment
About Pathfinder
Recent
- Firefox Plugin Malware ‘Trojan.PWS.ChromeInject.A’
- Pathfinder releases version 1 of the its Flash Platform microsite (codename Mica)
- Pimp my Rails: Five Plugins & Gems to Make Rails Better
- iPhone: Using Pre-processor Directives for Device Testing
- Subtle OpenGL Projection Matrix Difference Between iPhone Simulator and Device
- App Security: Throw Out the Org Chart!
- Pimp my jQuery: Five plugins to replace the features Prototype and Scriptaculous users expect
- Thanksgiving 2008: What We’re Thankful For (In Rails)
- iPhone SDK: Testing with TextMate & GTM
- GWTQuery - JQuery-like Syntax in GWT
Archives
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- July 2006
- June 2006
- May 2006
- April 2006
- March 2006

