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][SF] 04/10/12 – Mind the gap

Jordi Noguera
Tuesday, April 10, 2012

Interestings:

  • Spacing matters. Leaving a space after a minus and before a number is entirely different from putting the minus right before the number. The former is binary arithmetic and the latter is a unary operator. For example:

    [-1, 1, 2, 3].count - 1 #=> 3 (subtracting 1 from the array size)
    [-1, 1, 2, 3].count -1 #=> 1 (counting the number of occurrences of -1 in the array)
    
  • 0 Shares
  • Share on Facebook
  • Share on Twitter

Add New Comment Cancel reply

Your email address will not be published.

Jordi Noguera

Jordi Noguera
San Francisco

Recent Posts

  • 12/05/12: Uninteresting (aka no-interestings) wednesday
  • 12/03/12: Q&A day
  • [Standup][SF] 04/13/12 – Google crickets
Subscribe to Jordi's Feed

Author Topics

agile (2)
  • 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 >