August 8th, 2010
When I started this blog, it was with the intention to write a post only when I had something interesting to say. Well, given my deplorably low posting frequency over the past year, I guess we have found out how interesting a person I really am.
So I am going to, every now and then, write a blog post just to share some links I found on the web recently which happened to catch my eye.
Read the rest of this entry »
Tags: david friedman, economics, fleep, freakonomics, link blogging, tvtropes
Posted in misc | No Comments »
August 1st, 2010
The world of software development has more than its fair share of topics where people tend to have long religious discussions about the “correct” way to do something. I think this is partly because the field for some reason attracts the kind of person who enjoys a nice bout of verbal fisticuffs, and partly because we spend a lot of time dealing with very abstract topics where the pros and cons of a given choice have more to do with differing philosophies than with objective facts.
One classic topic for this kind of discussion, which came up recently at work, is the use of exceptions for error handling. Every modern programming language offers an exception mechanism for this purpose, and presumably it is there to be used. However, ever since they were first introduced, there has been a large and vocal subset of the community arguing that exceptions do more harm than good and you’ll be writing better code if you just use good old return values to report whether a method succeeded.
One representative example comes from Joel Spolsky, one of my favorite authors. Another oft-quoted article making the same arguments is found in the “Frequently Questioned Answers” by Yossi Kreinin. They both make the same basic points: exceptions do not reduce complexity but merely hide it, and when complexity is hidden people tend to forget about it.
These arguments have merit, but I still feel that (when properly used) exception handling delivers enough value to be worth the cost. So I am going to be arguing for the status quo here, for a change. Executive summary: the dangers of exceptions are real, but code readability trumps almost everything.
Read the rest of this entry »
Tags: design patterns, error handling, exception handling, exceptions, programming
Posted in algorithms, hacks | 1 Comment »
February 7th, 2010
This is a blog post about something which took place six months ago, so it could be considered somewhat belated. On the other hand, that gives me the opportunity to give the full story in one go, rather than just posting “well, I had the operation two hours ago and they didn’t actually blow up my eyeball, so I guess it could have been worse, but I’m not really supposed to be staring at a computer screen just now and anyway I am doped up on painkillers so I’m leaving now, okthxbye.”
Read the rest of this entry »
Tags: lasek, lasik
Posted in me | No Comments »
January 30th, 2010
I don’t normally like to do “link blogging” — I’d rather post nothing at all for several months (which frequently happens) than just copy someone else’s work. But I’ll make an exception for this XKCD strip. I think it actually brought a tear to my eye.
Read the rest of this entry »
Tags: mars, nasa, spirit rover, webcomic, xkcd
Posted in misc, science | No Comments »
December 27th, 2009
OK, I have managed to avoid this for a long time, but I guess it was inevitable: here comes Martin’s cheap, nonconstructively sarcastic I-hate-Microsoft post.
So I was visiting my parents this week-end, and my Dad asked me to help him with a little macro job on an Excel spreadsheet. It sounded simple enough. However, I had forgotten just how astonishingly horrible Visual Basic For Applications, the sorry excuse for a programming language built into Excel (and the other Office applications), can be.
As far as I remember, the last time I did anything with VBA was probably somewhere in the late nineties. Even by the standards of back then, VBA is a really shitty programming language. By the standards of 2009, it’s spectacularly bad. The only explanation I can think of is that somewhere high up in Microsoft Strategic Command, somebody decided to spend a lot of effort on making it as useless and infuriating as possible, while still keeping it just barely functional enough to be able to do the things you want to do with it, if you’re willing to go through a lot of pain. God only knows why they made that decision, but surely a language as bad as this cannot be created by accident.
Read the rest of this entry »
Tags: excel, microsoft, vba
Posted in hacks | 4 Comments »
December 14th, 2009
In the course of a friendly discussion with Dirk-Jan, I’ve been reading up on the miracles of digital cash.
And by digital cash, I do not mean lame stuff like Paypal, which is basically just an ordinary bank account to which you can send transfer orders. No, what I’m interested in is the real heavy stuff, whereby you have a digital wallet full of cryptographic “coins” which can be transfered from one party to another, without a single central entity keeping track of the contents of your wallet. Ideally, you want to be able to transfer such coins even off-line, without the central entity needing to be involved with every individual transfer.
There are a couple of basic problems with the idea of using bits as money, which any “crypto cash” system will need to find solutions for.
Read the rest of this entry »
Posted in algorithms, security | 2 Comments »
September 20th, 2009
Today was the day of the 25th Dam-tot-Dam-loop, a 16.1km running event from Amsterdam to Zaandam. Yours truly was one of the 35,000 people who signed up for the event, and one of the 17,614 people who made it to the finish line! Read the rest of this entry »
Tags: dam-tot-dam loop, running
Posted in me, running | 2 Comments »
June 23rd, 2009
Wow!
I received my FritzBox 7170 today, as a present from XS4ALL for renewing my ADSL subscription for another year (cheap deal — I would have done that anyway). And it totally blows away my Thompson Speedtouch!
Read the rest of this entry »
Tags: automatic update, fritzbox, privacy, speedtouch, voip, xs4all
Posted in cool-tool, linux | 4 Comments »