While it may seem that very little has been happening around here lately, there has actually been a flurry of activity. Unfortunately, very little of that activity has included any new code for the stat-tracker.
The majority of my time lately has been spent improving my development environment. I’ve moved from text editors for code authoring to a full-featured IDE: Eclipse with the PHPEclipse plug-in. I’ve also added a source-control repository (Subversion) with TortoiseSVN to allow versioning of files and efficient roll-back should I seriously screw something up down the road. Lastly, I’ve setup a local virtualhost on my development box to allow me to author and test code on my local machine before pushing anything to the production website. All things considered, I have no idea why I didn’t set this all up last year!
Just about the only code change in the last few days was an alteration to how included scripts are located on the server when a page is processed. Basically, the site used to have a hard-coded set of directories in which to look for included scripts. This was fine in my old development process that basically involved pushing files to the production server to test. Now that I have a local server, though, I need a separate set of include directories because my local system and the production website system don’t have identical file structures. I’ve added some simple logic to check what environment the code is running in (my local machine or the production server) and define include paths based on that. It’s not an elegant solution, but considering the limited capabilities of the production web server (no php.ini or .htaccess configuration for include paths), it works.
Now that I seem to be getting my development environment settled, hopefully the coming days will see some more visible and substantive changes to Kilg.us.