Tag Archives: rants

Please stop comparing the price of one bitcoin to the price of one ounce of gold

TL;DR: One bitcoin is to all bitcoins what 364 troy ounces of gold are to all gold. At the time of writing, one bitcoin is worth $1,181, whereas 364 troy ounces of gold are worth $458,276. What does this mean? I don’t know, but it is better than comparing the price of one bitcoin to […]

Telecommuting Has Benefits, Too

Recently I’ve run across a few articles (on Hacker News and elsewhere) about the drawbacks of telecommuting. I agree that there are drawbacks, but I believe that they can be counterbalanced by the benefits under the right circumstances. The Right Circumstances Not every person is cut out to telecommute, and not every job is suitable […]

Please Don’t Request User Input in the Middle of a Lengthy Task

It’s happened to everyone. You kick off a software installer, answer a few questions about how you’d like things set up, click next and you’re presented with a long progress bar. “No problem,” you think to yourself, “this is a good excuse to grab a cuppa joe.” You leave the computer to its business and […]

C++ Streams & Typedefs: Be Charful

The C++ typedef keyword is indispensable in many situations, especially for writing portable low-level code. However, in some circumstances it can cause trouble, particularly when it comes to function overloading. Consider the following C++ template class: template <typename T> struct foobar {     foobar( const T foo ) : foo_( foo ) {}   […]

The Terror of the Long Comment

A code comment can be a wonderful thing. It can offer a gem of context around a quirky bit of code that will make the reader’s life easier for years to come: // Fields c and d are intentionally switched in version 3 of the // protocol; see RFC 2324 S 12. fields.push_back( a ); fields.push_back( […]