Menu

Ruby Modules

January 17, 2011

There are two common usages for modules in Ruby: namespacing and mixing in. An example of namespacing can be seen in the Math module: Math::PI # 3.14159…. Math.log10(100) # 2.0 Mixing in a module will extend that class with additional constants and methods. Here’s an example where we’ll create our own module and mix it… Read more

Don’t block our alleyway! But if you do…

January 12, 2011

Marty McFly: Doc, we better back up. We don’t have enough road to get up to 88. Dr. Emmett Brown: Roads? Where we’re going, we don’t need roads.

Business up front, party in the back

January 06, 2011

At Wealthfront the engineers wear many hats.

Fun puzzle from Cryptography Research

December 22, 2010

We got a package from our friends at Cryptography Research today. It was a puzzle inside a puzzle, worthy of being a significant plot device in a Dan Brown novel. It took us several minutes to open, then the real fun began in cracking the cryptography. Date: Wed, Dec 22, 2010 at 2:08 PMSubject: Re:… Read more

dev2ops Video Q&A: Continuous Deployment requires great testing

November 17, 2010

Thanks to Damon Edwards for the great questions during our interview at Yahoo! Large Scale Production Engineering Meetup.

If you ever write a varags method…

November 08, 2010

In some specific cases, methods with a variable argument list might greatly improve the usability of an API. However, it is very easy to overuse or misuse this language feature, leading to cumbersome APIs. Varags methods shine when the programmer knows how many arguments must be passed to a specific invocation of the method when… Read more