Pivotal Labs

Main menu

Skip to primary content
Skip to secondary content
  • About
  • Case Studies
  • Team
    • Executives
    • Locations
      • San Francisco (HQ)
      • Boston
      • Boulder
      • Denver
      • London
      • Los Angeles
      • New York
  • Community
    • Blogs
    • Tech Talks
    • Events
  • Careers
    • Lifestyle
    • Principles & Practices
    • Benefits
    • FAQ
    • Apply
  • Contact
    • Press Room
    • Press Releases
    • In The News
    • Press Kit
  • All
  • Labs
  • Standup
  • Tracker

New York Standup 10/29/2008

Mike Grafton
Wednesday, October 29, 2008

Interesting

  • Until a recent commit, Polonium defined a method on Module named deprecate, which (at least in our case) overrode the method of the same name defined in Rails. This caused some code in Rails to blow up at class loading time when trying to call Rails’ deprecate method with the wrong number of arguments.

    We changed the name of Polonium’s method so it wouldn’t clash with Rails, and checked this into the master branch of Polonium on GitHub.

  • As of Rails 2.1, ActiveRecord support partial updates, which means that it’s smarter about what fields get updated in the SQL UPDATE statement issued by save. If you haven’t updated any fields in the object, no update will happen at all, no AR callbacks will fire, etc. If you depend on these things to happen even when not updating any fields, you can call will_change! on the model object. It was floated that a force_save method might be helpful.

  • It is often claimed that Symbol#to_proc is to slow to use in production code. But a clever Rubyist out there found a way to speed it up by 4x.

  • The test run for one of our projects here runs in 223 seconds on OSX, but in in 157s on Ubuntu. We’d like to figure out why (we’re pretty sure we’re using the MySQL Gem rather than the built-in MySQL driver that comes with Rails)

  • Git4Idea is now available through the IntelliJ Plugin manager. No more hand installation!

  • ActiveRecord::Base#to_param must return a String if you override it. If you return an Integer you will get a weird “Can’t convert Fixnum to String” exception somewhere deep in the routing code. You can’t even tell where the exception is coming from due to the routing code’s bizarreness.

  • 0 Shares
  • Share on Facebook
  • Share on Twitter

Add New Comment Cancel reply

Your email address will not be published.

Mike Grafton

Mike Grafton
San Francisco

Recent Posts

  • SF Standup 5/6/2011: Bundler Blah Blah Blah Blah
  • SF Standup 5/5/2011: The Most Interesting Standup in the World
  • SF Standup 5/4/2011: Tête-à-tête
Subscribe to Mike's Feed

Author Topics

agile (5)
bundler (2)
jquery (1)
ikea (1)
pairing (1)
amazon cloudfront (1)
internet explorer (1)
paperclip (1)
chef (2)
engineyard (1)
fast_xs (1)
rails (5)
activerecord (1)
rvm (1)
memcache (1)
etags (1)
haproxy (1)
mongrel (1)
selenium (1)
imagemagick (1)
jolt awards (1)
mac (1)
rubymine (1)
jruby (1)
postgres (1)
  • About
  • Case Studies
  • Team
  • Community
  • Careers
  • Contact
  • Labs
  • Events

Contact Us

contact@pivotallabs.com
+1 415-77-PIVOT
TwitterLinkedInFacebook

Pivotal Tracker

Tracker is the award-winning agile project management tool that enables real-time collaboration around a shared, prioritized backlog.
Visit pivotaltracker.com >