Archive for the ‘Designing Great Software’ Category

REST, Rails, Skinny Controllers and Resources

Posted by Rahoul Baruah on February 27th, 2007 under Designing Great Software, Ruby on Rails and Software Development  •  No Comments

Some time ago I wrote about how I was struggling to understand how the new style RESTful controllers work. In particular, it struck me that everything became a noun, when verbs were equally important.
After a few months of actually using RESTful Rails, I’m still struggling. The new-style controllers are significantly simpler (in particular [...]

Safari, So Good, So What!

Posted by Rahoul Baruah on January 23rd, 2007 under Designing Great Software, Ruby on Rails and Software Development  •  No Comments

I rewrote my application to take advantage of the new Restful Urls in Rails (an article on this coming up). I also got rid of the messy session-managed login code and thought I would use a nice and easy HTTP authentication scheme (so my eventual API can use the same mechanism as the main [...]

Default values in your models

Posted by Rahoul Baruah on January 18th, 2007 under Designing Great Software, Ruby on Rails and Software Development  •  6 Comments

This may be obvious but as it took me a little while to figure it out, I thought I’d share it with you.
If you want you have default values, the easiest way is to set your defaults within the table. But often, that is too late. In your new action, you [...]

Design Decision: Page Width

Posted by Rahoul Baruah on November 25th, 2006 under Designing Great Software, Ruby on Rails and Software Development  •  No Comments

On my new project I have just taken the decision to fix the page width. Each controller must decide whether to use the ‘narrow’ or ‘wide’ layouts - these are identical apart from the width given to the “main_content” div: 750px and 1200px respectively.
Why those values? Well, my target market is [...]

About Turn (or how to use Ruby on Rails with your existing application)

Posted by Rahoul Baruah on June 19th, 2006 under Designing Great Software, Ruby on Rails and Software Development  •  6 Comments

Since I started this blog (or at least refocused my occasional ramblings on using Rails with IIS and SQL Server) I have been meaning to write an article all about adapting your application to work with Rails. Well, this is that article. However, it’s not what I intended it to be, for reasons [...]