Monthly Archives: November 2012

PostgreSQL: Data from Multiple Queries in JSON

During a discussion the other day where we discussed SOA and a new service for a set of data that we currently have in PostgreSQL, a thought popped into my head – what if the database could do all of the selects and build the service JSON document in one request, rather than having a […]

Test Driven Development in Perl: Mocking Objects

Previously, I spoke about tests and test driven development in perl, and now I continue with discussion of MockObject and MockModule; why it’s important, and how you should use it. First, Test::MockObject creates objects with mocked class names and subroutines on the fly, skipping the normal ‘use’ and ‘bless’ processes. This is very important when […]

Test Driven Development in Perl

I recently took a class that included a lot of Test Driven Development (TDD) in Ruby, but I work at a Perl shop. As I slowly became more obsessed with the concept of TDD, especially the unit testing pieces, I discovered that available tutorials didn’t teach you what you really needed to get started – […]