Sam's notebook

Integration (and no unit) tests April 17th, 2014, 7AM


I’ve been writing lots of integration tests lately, for a system that has zero unit tests. Does this make me a bad programmer? Probably. But it’s so easy! This is in Kohana, using ORM, and so the model basically is the database (which idea I rather like), and mocking it or splitting it out to […]

[No comments] [Keywords: , , , , , , , ] [Permanent link]

No Topham Hatt here, please September 16th, 2013, 9AM


In Kohana (with Minion), actions and tasks are sort of similar. Both should be ‘thin’ and do nothing more than create objects of the domain model, and direct bits of those objects to various systems of output. Keeping them both in my mind today is helping me divorce the domain model’s interface from the usual […]

[No comments] [Keywords: , , , , , , , , , ] [Permanent link]

Saving query string parameters between requests July 2nd, 2010, 4PM


In which I try to implement column sorting in WebDB, but end up building a general system for persisting query string variables between HTTP requests. Sort of. In the old, Zend-based, WebDB, column sort order was passed as a $_GET parameter and then stored in per-table variables in $_SESSION. In the index controller, both were […]

[One comment] [Keywords: , , , , , , , ] [Permanent link]