Sam's notebook

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

Programming

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

Programming

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]