Archive for July, 2011

What every programmer needs to know about time

Jul 04 2011 Published by under Programming

If you’ve ever had to program a calendar or struggled with UTC or time zones (I know I’ve been there), this article will help. It’s geared toward the unix programmer, but it’s useful for anyone.

Here are the highlights :

  • UTC: The time at zero degrees longitude (the Prime Meridian) is called Universal Coordinated Time (UTC).
  • GMT: UTC used to be called Greenwich Mean Time (GMT) because the Prime Meridian was (arbitrarily) chosen to pass through the Royal Observatory in Greenwich.
  • Other timezones can be written as an offset from UTC. Australian Eastern Standard Time is UTC+1000. e.g. 10:00 UTC is 20:00 EST on the same day. Daylight saving does not affect UTC. It’s just a polity deciding to change its timezone (offset from UTC). For example, GMT is still used: it’s the British national timezone in winter. In summer it becomes BST.

Lastly, the author makes this important point:

Timezones are a presentation-layer problem! Most of your code shouldn’t be dealing with timezones or local time, it should be passing Unix time around.

View Comments

Will Google+ Kill Facebook?

Jul 02 2011 Published by under Programming

Not long ago, I wrote that google does not have the DNA to do social sites correctly. They are engineers, who by default are not social. But that might be changing.

I recently checked out google+ and I have to say I like it. It’s elegant and finally brings some innovation to the social space.

But many will say that half the planet is on facebook, surely they are unassailable?We need only look at the quick demise of MySpace to see that social sites can fail as quickly as they rise. Andrewljohnson on hacker news said it best:

Most businesses can’t “die” suddenly. It’s very hard to turn a $850,000,000 business into a $35,000,000 in just a couple of years, unless something truly catastrophic or industry-changing occurs.

The exception to this rule is social internet companies. Social companies are built in a day and can die in a day – we’ve seen it happen again and again, and Facebook’s scale is no protection.

To beat Verizon, you need a network. To beat Google, you need search technology, data, and great engineers. To beat a car company, you need some factories. But to beat Zuckerburg, all you need it timing and a good strategy, and equivalent engineers. And in this case, Google seems credible on all fronts.

This is the first serious threat to Facebook’s existence.

If google is successful, I won’t be mourning facebook’s passing. It’s served a necessary purpose, but it’s walled garden, “incorporating” other’s technology, and evil PR tricks make it hard to be a fan. Google’s no saint, but at least they are mostly transparent and their motto is “don’t be evil”.

As xkcd explains, google+ may be a facebook clone that is just not run by facebook (and maybe that’s all we need)…

View Comments