1. CSS
  2. Flash
  3. HTML
  4. Illustrator
  5. Java
  6. JavaScript
  7. Maya
  8. Photography
  9. Photoshop
  10. PHP
  11. Ruby
  12. Ruby on Rails
  13. 3ds Max

Ruby on Rails: 8 Tips To Supercharge Your Rails App

  1. Clicks today:
    0
  2. Clicks this month:
    0
  3. Overall rating:
    4.57/5

Ruby on Rails » Basics — about 8 years ago
Ruby on Rails is a elegant framework with an abundance of built in functions. However, sometimes finding and implementing the right ones for your project isn't always easy. Here, we'll review 8 lesser-known tips that will enable you to get the most out of your dynamic web application.

Comments

avatarholman (administrator and creator)about 8 years ago

Good assortment of tips.

Serializing is cool in a lot of cases, but I'd definitely give it a good thought of the implications. You're pulling a lot of database functionality when you go the serialization route. Take user preferences, for example: if you're serializing an array of four user preferences, it becomes much harder to aggregate that data and making a quick query to see which user preference is in use the most is much harder to compute.

Marshaling objects back and forth is not one of Ruby's strong points, either, though for most applications it's probably not a serious concern. Now, if you're dealing with some complex hierarchical objects, serialization can be a pretty wicked-clever way to tuck that away and only pull it up when you need it, so YMMV.

Your Comment

You must be logged in to post a comment.