Category Archives: Coding

PHPUnit Bootstrap and Autoloading classes

The PHPUnit Bootstrap is perfect when there is code to be run before tests are executed. The limitation however is there can only be one bootstrap per PHPUnit configuration file.

This is an issue if there are a set of classes that need to be included – we don’t want to manually include every class every test could possibly need.

PHP’s Autoloading feature comes to the rescue, allowing us to seamlessly include classes as they’re required for tests.
Continue reading

Tagged , , , , ,

Play Framework, Google App Engine, Java, and HTML5 Boilerplate

Getting started with a new project shouldn’t be hard.

But, it is.

We have so many different packages to consider and integrate into our development process that it can take quite some time to get setup before we can even start developing.

Here’s one combination of packages I find particularly useful, and will cover setting up here;

Continue reading

Tagged , , ,

Install a Play Framework module from source

The Play Framework provides a great flexible Module system whereby any stand-alone code can be separated entirely from your main application. There are a number of pre-build and ready to go modules available here.

What if you want to check one out from github or googlecode and use it from source? Unfortunately, the Play Framework documentation on this is very sparse, so here’s how:
Continue reading

Tagged , ,

Setting up Vim & Ogre3D in Ubuntu

Ogre3D is a great corss-platform game development library. Unfortunately, it is mostly aimed at those using a GUI based IDE. Since I use Vim for all my text input / IDE style needs, I wanted to setup Ogre3D to respect this. Following are the steps for getting everything to play nicely;

This tutorial is for a combination of the following software;

  • Ubuntu 10.10 Maverick Meerkat (10.04, 10.10, and 11.04 should all work fine)
  • Ogre3D 1.7.3
  • Vim 7.2 (any version should work fine)

Continue reading

Tagged , ,

TextMate-like snippets in Vim with SnipMate

Using snippets to save on development time is always one of those “I’ll do it soon” tasks that I see everyone else doing but never get around to myself.

I took the plunge. You should too.

Here are simple to follow instructions to install SnipMate in Vim. The snippets use a TextMate Snippets-like syntax, so there’s a wealth of snippets out there and you can start creating your own straight away!
Continue reading

Tagged , ,