Code

Some examples of code I've written in various languages. I'm just showing off what I can write, the real meat is written for my employers and I can't show most of it to the world. But as a software developer I firmly believe that the best way to evaluate a developer is to look at code they've designed and written. It tells you a lot about how they approach things, and whether their designs make sense or are hodge-podges of code.
  • A date class I wrote in C++, based on Julian day numbers. There are libraries with date classes in them, but I needed something that didn't have external dependencies. Nowadays it's mostly an exercise in coding style rather than anything useful, but I have it around if I need it.
  • The high-performance C++ HTTP framework I wrote. No company-specific things in it anymore. I may add back the modular dispatch logic back in at some point, but my main need is for a simple HTTP server I can use to handle URLs through C++ routines.
  • Support classes for XML parsing using the Xerces parsing library. I wanted something that'd make the common basic cases (elements, element contents, attributes on a particular element and their values) simple to write in C++, while still leaving me the option of getting hooked in at a lower level if I needed to. The DOM routines came first, the SAX later when I needed something more memory-efficient.
  • The firewall script I use on my home gateway. Not for the casual user, it assumes you understand the various protocols and the basics of iptables/ip6tables. I designed it because most of the firewall builders out there seem designed for a single machine, not a network gateway. I wanted control over routing and forwarding, and I wanted it all in a single script that I understood fully.
Subpages (2): Date class XML Library