Recent posts

F# Units of Measure

I stumbled upon Units of Measure while reading a book on F#. They allow you to add some metadata to a value (can be of any type, but is aimed at integer and floating-point values) with some additional information describing the unit this value denotes, such as centimeters, kilograms, etc.  read full post

Customer loyalty with software?

Years ago, when I was stupid, I used Adobe Reader to view my PDF files. I didn’t like it, but didn’t know any better. Then, I discovered Foxit Reader. Compared to Adobe’s sluggish, bloated monster, Foxit was like a breath of fresh air. It was lightweight, snappy, and responsive. It did everything Adobe Reader did, only without mutilating your system’s resources. I happily installed it and never looked at Adobe again. Happier times were ahead.  read full post

Some brief downtime

My blog was off the air for a short while as I struggled with the new router’s settings. I sincerely apologize to all my readers (bored search engine crawlers). The router in question (a D-LINK DIR-655, hardware version B1, firmware 2.00) does a fine job router-wise, but I’ve seen some strange quirks that I want to shine a light on.  read full post

A classic example of fine craftsmanship

Of all the bad code I’ve seen (some of which I’ve written myself), this classical example is still one of the finer and more hilarious examples of a truly creative mind. From memory it looked something like this:  read full post

A simple static cryptography class

Implement things once, never think about them again. Cryptography is not something I’m constantly working with, so when I do need it for something I usually have to look up how things worked again and I end up reinventing the wheel. Well no more.  read full post

Windows 8: for touchscreens only

So I’ve been playing around with the developer preview of Windows 8, and I must say I am impressed. However, here’s one thing I noticed immediately: Windows 8 is aimed at touchscreens, and touchscreens only.  read full post

A generic reduce function in C#

A reduce function is a function that traverses over some input data (usually a set of objects) and produces a single output value. An example use would be finding the average age in a set of people. Here I’ll show how to build a generic reduce function in C#. This is not necessarily good code, but it is a nice practice with generics and delegates.  read full post