Encapsulation Rocks

I’ve got that warm fuzzy feeling that comes from knowing that I’ve done a good job.

We’re implementing espotting across some of our sites at present. The system works by posting a query to their web service, and it returning an XML document of results.

I’ve written two nice little Perl modules to interface to this system. A search object that returns a list of result objects.

Combined with the power of the Template Toolkit, a test CGI script took only 10 lines of neat code to query and return a webpage of results.

Encapsulation rocks when it’s done correctly!