2002-08-30

Avoiding spam

It just hit me that the most efficient way to avoid spam would be to use the address hostmaster@example.com or postmaster@example.com. I'm in charge of the mail service at Oops, and I hardly ever see any spam addressed to these accounts. I suppose spammers have a good reason to avoid them.

So how do you seperate one hostmaster from another? Man, it's so simple: hostmaster@malte.example.com, hostmaster@peter.example.com, etc. Now, I only have to convince the others that this is a good idea...

2002-08-23

Test driven development, cont

I wrote that ``getting feedback early is the essence of UnitTesting." but what I meant to write was: getting feedback early is the essence of test driven development.

Test driven development and automated tests

Yesterday I had a very interesting discussion with Peter about test driven development. We came to talk about it because of a small project I started a few days ago. It's a simple chat server that will perhaps replace our existing one. I've started similar projects before but failed miserably; one recent reason has been me being too focused on getting everything tested using a unit testing framework.

I know Peter has written about this before, but I think it's worth repeating: it's almost impossible to write untested code. You might not have automated tests and you might not use a testing framework, but you do test the code.

Yesterday I also completed a simple spike of the new chat server. My intention was to come up with a very simple program to test (there's that word again) a few ideas I had, and to straighten out a few question marks. Looking at my recent failures of completing similar projects I decided to skip the testing framework and the unit tests. And it worked. I've met my goals with this spike. Every single one of them.

So, there's no such thing as untested code. But, depending on what kind of testing you do you get feedback earlier or later. The earlier you get the feedback the better, and getting feedback early is the essence of UnitTesting.

But you also have to consider the cost of setting up and executing the tests. In my chat server spike there's a lot of BSD sockets code, and I find that code hard to UnitTest. An alternative that I'm now considering is writing a few small server and client programs based on the code in the spike. These small programs will be designed in a way such that they can be used easily from a shell script. This way test suites can be set up easily and hopefully even run automatically every time I make a change to the code and recompile!

I'll probably come back to this subject in the future so stay tuned!

2002-08-21

A6, Binary Labels and DNAME

I recently added x42's latest RFC RSS feed to my blog aggregator and a few days ago I noticed two additions, namely RFC 3363 and RFC 3364. These documents discuss proposed changes in the DNS for supporting IPv6.

djb has long advocated abandoning A6 and it seems his points has been met with sympathy according to this post.

2002-08-16

Bruce Schneier's Crypto-Gram newsletter

Just discovered that Bruce Schneier publishes a monthly newsletter on computer security and cryptography. Join the mailing list and check out the archive here.

2002-08-13

It's time we do something

Lawrence Lessig talks about the future of our freedom. We have to do something and we have to do it now!

Lessig is a great speaker. After listening to this shockwave presentation I realised I want to hear/see him live!

2002-08-09

Stuff it, Aladdin!

Last night I finally figured out how to stop OmniWeb from automatically open downloaded files. All downloaded files. Just type defaults write com.omnigroup.omniweb OHDownloaderLaunchableApplications NO on the command line and OmniWeb will stop behave badly.

I also downloaded OpenUp 3.2 and reassociated all .tar, .gz, .tgz, .zip etc files with it. At last a decent unpacker.

I have no clue how I've been able to stand StuffIt for so long. Anyway, now it's gone from most of my everyday work. Aladdin, stuff it!

2002-08-07

Week numbers

I wrote some Objective-C code that extends NSCalendarDate with limited ISO 8610 week number functionality. If you're interested have a look at the command line tool week on my software page.

2002-08-06

First crash in months

My favorite browser OmniWeb crashed today. It was the first time in months. It's funny how you take notice when things doesn't work as expected, and how little you notice things that work. OmniWeb has really improved with the latest update.

2002-08-01

Vacation making wonders

It's fascinating what a few weeks of vacation can do to your inspiration and endurance. I'm back after four weeks of swimming, bicycling, scuba diving - no, not scuba diving, I saw that on TV - eating, drinking, sleeping and lots more. Suddenly, tasks that before this period of relaxation and leisure seemed dull and boring are easy and sometimes even fun to take on.

I love vacation.


Hosted by Oops FREE THE MOUSE
This site is powered by Burger; powered by djbdns; powered by lighttpd; powered by FreeBSD; powered by electricity.