Live data from Hacker News

Upgrading Airbnb from Rails 2.3 to Rails 3.0

nerds.airbnb.com

11–20 of 29 posts

Re: Upgrading Airbnb from Rails 2.3 to Rails 3.0

#12
post #11

What were the reasons for upgrading to Rails 3.0 in the first place?

One of the major reasons for using a framework like rails is to take advantage of open source code that frees you to spend time focusing on your company's core competencies. Some of the most useful gems in the rails ecosystem no longer (or never did) support rails 2. This is the biggest reason in my mind, but release notes on rails 3 itself are here http://edgeguides.rubyonrails.org/3_0_release_notes.html

Re: Upgrading Airbnb from Rails 2.3 to Rails 3.0

#13
post #4

I like that you broke out and completed preparatory steps ahead of actually upgrading Rails, but the blog post points out some process smells. Title Upgrading Airbnb from Rails 2.3 to Rails 3.0 Date January 4, 2012 Why are you blogging about upgrading to Rails 3.0.x when the current stable Rails has been 3.1.x for over 4 months? > Our app was running Rails 2.3.8 at the time, and the production instances were a mess.…

Why are they blogging about it now? Look at it as advertising.

Air BnB haven't been in the news for awhile and sales have been slumping, so they coughed up this hairball of a post to stay "top of mind".

Re: Upgrading Airbnb from Rails 2.3 to Rails 3.0

#14
post #4

I like that you broke out and completed preparatory steps ahead of actually upgrading Rails, but the blog post points out some process smells. Title Upgrading Airbnb from Rails 2.3 to Rails 3.0 Date January 4, 2012 Why are you blogging about upgrading to Rails 3.0.x when the current stable Rails has been 3.1.x for over 4 months? > Our app was running Rails 2.3.8 at the time, and the production instances were a mess.…

Why are they blogging about it now? Look at it as advertising.

Air BnB haven't been in the news for awhile and sales have been slumping, so they coughed up this hairball of a post to stay "top of mind".

Re: Upgrading Airbnb from Rails 2.3 to Rails 3.0

#15
post #3
post #2

That timezone issue (further described here: http://www.benjaminoakes.com/2010/11/23/rails-timezones/ ) sound like an odd one - anyone know what the underlying cause of the problem is?

In 2007 DST changed and Mexico did not follow suit, so the short PST/EST/CST timezones were not specific enough anymore. Here is an excerpt from Wikipedia ( http://en.wikipedia.org/wiki/Pacific_Time_Zone ): Effective in the US in 2007 as a result of the Energy Policy Act of 2005, the local time changes from PST to PDT at 02:00 LST to 03:00 LDT on the second Sunday in March and the time returns at 02:00 LDT to 01:00 L…

If timezones aren't good enough to display the time, what good are they? If Mexico is calling PST/PDT a different time than everyone else, shouldn't they be using new values instead?

Re: Upgrading Airbnb from Rails 2.3 to Rails 3.0

#17
post #15
post #3

Earlier quoted context omitted.

In 2007 DST changed and Mexico did not follow suit, so the short PST/EST/CST timezones were not specific enough anymore. Here is an excerpt from Wikipedia ( http://en.wikipedia.org/wiki/Pacific_Time_Zone ): Effective in the US in 2007 as a result of the Energy Policy Act of 2005, the local time changes from PST to PDT at 02:00 LST to 03:00 LDT on the second Sunday in March and the time returns at 02:00 LDT to 01:00 L…

If timezones aren't good enough to display the time, what good are they? If Mexico is calling PST/PDT a different time than everyone else, shouldn't they be using new values instead?

The timezone names most countries use are not unique or entirely stable as time goes by. E.g., America and Australia disagree about what "Eastern Standard Time" means. That's why the Olson/Eggert database names zones for major cities, those are most stable and well known.

http://en.wikipedia.org/wiki/List_of_tz_database_time_zones

Re: Upgrading Airbnb from Rails 2.3 to Rails 3.0

#19
post #11

What were the reasons for upgrading to Rails 3.0 in the first place?

Are you asking why one might, in general, prioritize that upgrade? Rails 2.x to Rails 3 is a pretty big deal. For a huge production site, the "Merb-ificiation" (modularization) of Rails might be a performance/maintenance win.

(I have no idea why Airbnb in particular upgraded, but the 2->3 upgrade is in general very much worth it --- the new router and Arel alone are sufficient wins).

Re: Upgrading Airbnb from Rails 2.3 to Rails 3.0

#20
post #4

I like that you broke out and completed preparatory steps ahead of actually upgrading Rails, but the blog post points out some process smells. Title Upgrading Airbnb from Rails 2.3 to Rails 3.0 Date January 4, 2012 Why are you blogging about upgrading to Rails 3.0.x when the current stable Rails has been 3.1.x for over 4 months? > Our app was running Rails 2.3.8 at the time, and the production instances were a mess.…

> Also, shouldn't these simple bugs be quickly and fully discovered by automated tests?

Do you actually believe this?

Tests are a nice first pass, but they'll never fully discover every bug -- especially with a huge change like this.

Post reply on HN