Skip to content

The selfish programmer

Once upon a time I wrote a piece of software for scheduling the classes available to a college.

There was a bug in the scheduler: Students who happened to be named 'Steve Kemp' had a significantly higher chance (>=80% IIRC) of being placed in lessons where the class makeup was more than 50% female.

This bug was never fixed. Which was nice, because I spent several hours both implementing and disguising this feature.

I'm was a bad coder when I was a teenager.

These days I'm still a bad coder, but in different ways.

Comments On This Entry

  1. [gravitar] Franco

    As long as it wasn't Perl, fine by me.

  2. [gravitar] Anonymous

    That's really terrible. At least you're willing to admit to it now, though.

  3. [gravitar] Patrick

    I can't see a problem with that. After all it's not your fault, that your parents named you 'Steve', is it? ;-)

  4. [gravitar] LN

    So at long last, you DO admit to have something in common with Bill Gates:

    - Gates wrote the school's computer program to schedule students in classes. He modified the code so that he was placed in classes with "a disproportionate number of interesting girls."

    From wikipedia:

  5. [author] Steve Kemp

    To be honest this a task I was given in 1992-1993, and I did it for the fixed fee of £50.

    The only thing that I remember was that it used some system that had "forms" and a "query-language". The language/environment was called "S" and I had to show that it gave different results each run, as proof of functionality - which is why the percentages were involved.

    I looped over candidate-names and built hash on the ASCII-values involved, I knew there were potential collisions involved, but over the names in my year there were only a couple, so I figured that was good enough.