Jeff Dean's blog



Jeff DeanJeff Dean
Building a fast, lightweight REST service with Rails 3
edit Posted by Jeff Dean on Friday September 17, 2010 at 11:01PM

I recently started building a Rails 3 app that will function as an internal REST service. I wanted it to be as lightweight and fast as possible, both to test and to run. Here are a few ways I configured the app to be a bit faster:

  • Defined a limited route set
  • Removed ActiveResource
  • Removed unnecessary middleware
  • Created a custom controller that inherits from Metal

Jeff DeanJeff Dean
Working with asynchronously loaded javascript
edit Posted by Jeff Dean on Wednesday September 01, 2010 at 12:06PM

My pair and I were recently working on an app that asynchronously loaded the Facebook Javascript SDK but synchronously loaded the jQuery library. We had to invoke some javascript once Facebook and jQuery were both loaded, and this post describes how we did it.