Brandon's Blog

12/12/2005

Sigma, what? Finals!

I’m aching (almost literally) to start up on Sigma right now.  I can’t wait to boot up a Slack 10.1, issue a “svn co”, and get crackin’.

The first thing I’m going to do is to clean up the build directory.  I’m currently distributing the Lua source tree with the project along with pre-built binaries of the lualib, and that has to go.  I’m going to write my Makefile like a FreeBSD port, in which the process wget’s the lua (and now sqlite) sources and builds them in-line.

I’ll have a pair of config variables in the Makefile that allow the builder to specify dynamic builds if the lua and/or sqlite dev packages are already installed on his system.

Then, I’ll do a full source audit, removing all kludgy databases and replacing them with references to a static class, Database.  So, it’ll look like

Database::Execute(“SELECT id, name FROM Players WHERE state = 1;”);

Hmm… I just realized that by moving everything to a database you actually lose out on some of the object-oriented benefits of C++ (inheritance/polymorphism).  Since you cannot use an abstract class at that point, you miss out on the Denizen sorta= Player benefit that is at the crux of my program.

Weird… Need to think about that some.

Anyway, finals will be okay.  Sick and tired of school, though.