Recently I’ve had need of a stream data structure – a queue of a certain size that you can keep adding items too and, if the queue gets full, it removes the oldest item. It took me far too long to work it out, so I decided to post the code in case I ever [...]
Recently I’ve been thinking more about a toy language I have created called rose. It’s largely an exercise to teach myself about some of the difficulties of language design, giving me a greater understanding and apreciation of the languages I work in. Some of the guiding features of rose are immutable-by-default fields and as few [...]
In a misguided attempt to solve a StackOverflow question I came up with the following code that checks whether the key combination represented by a KeyEventArgs would produce a given character on the current keyboard layout. The actual solution was a lot simpler, but I thought I’d post the code here for prosperity: public static [...]
There have been a lot of UI innovations since HTML forms, some of them big and some of them small. One of the smaller innovations is the addition of hints to text fields. These are basically placeholder text in the fields that describe the sort of input that should go in them that disappear when [...]
In a recent post Jeff Atwood questioned why people aren’t up in arms over the Google monopoly: I’m a little surprised all the people who were so up in arms about the Microsoft “monopoly” ten years ago aren’t out in the streets today lighting torches and sharpening their pitchforks to go after Google. Does the [...]