Always consider the future when writing code…

I’ve been writing a LOT of code these days.. it’s great actually, I have loads of responsibly and freedom.. and a paycheck, which is good in this depression.

I just ran across this wiki about the Newton 2010 date problem (Props to StevenF) – after 18:48:31 on January 5, 2010 a NewtonScript int variable overflows, and well, problems happen.

I know when we were working on the Newton in the late 90′s, we weren’t really considering 2010 – in reality who really does? That was 14 years away, we were bound to still be around by then, right?

Well, maybe not. Maybe your code is going to last that long. Maybe some structures or patterns you’ve designed seem fine, but have some upper boundary that you’d NEVER HIT.

Start looking for those problems now. If you find them, stop, and spend the time to fix them. If you can’t because of a fixed API… well.. what do you do then? Make sure you fail gracefully.

Daring Fireball: Untitled Document Syndrome

Untitled Document Syndrome

The key in Gruber’s argument is this: 

And those of you who object to these generalizations — those of you shaking your heads and saying to yourselves, No, I very much do want to specify by hand the file name and location in the hierarchical directory structure for every bit of data on my system — are almost certainly, I would wager, computer programmers. To argue that users should embrace manual file system management for every bit of data they wish to store is to argue against human nature.

My parents, in fact almost every non-programmer I’ve met doesn’t get documents. Often they don’t get folders either. 

Worth remembering when writing your next indie Mac hit…

Zakaria: The Canadian Solution | Newsweek Voices – Fareed Zakaria | Newsweek.com

Zakaria: The Canadian Solution | Newsweek Voices – Fareed Zakaria | Newsweek.com

Guess which country, alone in the industrialized world, has not faced a single bank failure, calls for bailouts or government intervention in the financial or mortgage sectors. Yup, it’s Canada. In 2008, the World Economic Forum ranked Canada’s banking system the healthiest in the world. America’s ranked 40th, Britain’s 44th.

I am proud to be a Canadian! Well worth the read if you are wondering how Canada didn’t fall into the traps that the US and Britain fell into.