Code

This page is intended to showcase, or at least to show, some of the code I’ve written. Please keep in mind that I don’t consider any of this polished or shippable—these are personal projects (unless I specify otherwise in some distant future), and while bad code is bad code, there’s still a difference between this stuff and what I’d consider code to take professional pride in.

SQLObjectInherit

The ORM SQLObject provides a method of dealing with inheritance, but it assumes that the database model uses foreign keys to separate tables for subclasses. SQLObjectInherit is a simple module that provides decorators allowing inheritance based on flags or other column values.

More… | Download

rtsync

rtsync is a programming language that my good friend Scott and I developed for Dr. Stefan Bruda at Bishop’s University, as the experimental counterpart to a theoretical paper he was working on. It is an actor-based, real-time programming language, implemented as a domain-language-to-C++ compiler and a distributed runtime, also written in C++.

I have no intention of representing the whole thing here. If you want to see rtsync, I suggest you consult Dr. Bruda’s website. To show my C++ style as of the year 2004, and flesh this section out a little, however, I will show some samples.

More… | Download

taglib

taglib is a creatively-named [X]HTML tag generation library for Python, used in generating this very site.

More… | Download

htpage

Once again showcasing my creative naming abilities, htpage is the name of the underlying web framework. It uses the aforementioned taglib for HTML generation. htpage itself handles things like session management, user management and logins, page generation, and script dispatching.

It’s intended for web applications rather than plain old websites. As such, it’s not really well suited to static pages (in other words, it’s not really ideal for this website, itself, though the website does give me a decent test case; each page is a Python class, making dynamic behaviour easy.

More…
Now in my blog:
RSS feed LiveJournal blog Show me more!