I fixed a bug earlier this week. Ok, actually, I introduced a bug and then spent the next few hours tracking it down and fixing it – but that doesn’t sound quite so positive, does it? I thought it might be interesting to talk you through the bug and the fix. I should point out […]
I run my own email server. It uses QMail. I realise there are at least two problems there – all of the cool kids have been using Gmail for their email since approximately forever, and who the hell uses QMail anyway? Like most of these situations, it’s that way for historical reasons. And, of course, […]
Long-time readers will have seen some older posts where I criticised Perl code that I’ve found in various places on the web. I thought it was about time that I admitted to some of the dodgier corners of my programming career. You may know that one of my hobbies is genealogy. You might also know […]
I’ve been a freelance programmer for over twenty years. One really important part of the job is getting paid for the work I do. Back in 1995 when I started out there wasn’t all of the accounting software available that you get now and (if I recall correctly) the little that was available was all […]
(I was going to call this post “How well do you understand context?” but I think this title is more accurate). I just saw someone recommending this code:
$reversed = reverse(split //, $string);
Looks sensible enough, doesn’t it? But it isn’t. What’s the hidden inefficiency?