About Archive Tags RSS Feed


The selfish programmer

25 July 2014 21:50

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

icon Franco at 14:24 on 25 July 2014

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

icon Anonymous at 18:55 on 25 July 2014

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

icon Patrick at 19:57 on 25 July 2014

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

icon LN at 21:09 on 25 July 2014

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:

icon Steve Kemp at 21:29 on 25 July 2014

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.