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

Standup 01/17/2008

Chad Woolley
Thursday, January 17, 2008

Interesting Things

  • There is a gotcha when creating a Ruby Hash with a default value. If you pass a object to the constructor, such as an empty hash, the same object will be used for all default values. That probably isn’t what you want. Instead, use the form of the constructor which takes a block. Here is an illustration:

    $ irb
    >> trickyhash = Hash.new({})
    => {}
    >> trickyhash[:a][:a] = 1
    => 1
    >> trickyhash[:b]
    => {:a=>1}
    >> betterhash = Hash.new {|h,k| h[k] = {} }
    => {}
    >> betterhash[:a][:a] = 1
    => 1
    >> betterhash[:b]
    => {}
    
  • ruby-prof and KCachegrind are very useful for profiling and performance optimization. We had problems compiling the OS X Darwin Port of KCachegrind, though – you may just want to run it on linux.

  • Vine Server and Viewer 3.0 has been released.

Ask for Help

  • “QuickSilver for Dummies?” – What is a good resource to learn about QuickSilver?
  • 0 Shares
  • Share on Facebook
  • Share on Twitter

2 Comments

  1. Matt Berther says:

    Hi Chad,

    I’ve found that the lifehacker.com site points to some great resources and articles about quicksilver.

    A google query for:

    site:lifehacker.com quicksilver

    should return a great number of excellent articles.

    January 17, 2008 at 10:07 pm

  2. Don says:

    +1 on lifehacker. They tag all their Quicksilver posts:

    http://lifehacker.com/software/quicksilver/

    The beginner and advanced guides are great, as is the Top 10 plugins post.

    January 17, 2008 at 10:42 pm

Add New Comment Cancel reply

Your email address will not be published.

Chad Woolley

Chad Woolley
Denver

Recent Posts

  • Automating Bundler In Your Deploy
  • [ANN] GemInstaller 0.5.3 Released
  • The Great Ruby IDE Smackdown of '09
Subscribe to Chad's Feed

Author Topics

bundler (1)
geminstaller (2)
open source (5)
rubygems (4)
ide (1)
ruby on rails (5)
gogaruco (19)
government (1)
agile (18)
pivotaltracker (1)
testing (2)
mac (2)
remote (1)
rant (1)
mtnwestrubyconf (1)
dependency injection (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 >