The Joy of Hex

Drunken Monkey Coding Style with a hint of Carlin humor

Jul 22, 2017 - 6 minute read - php doctrine fixtures database

Loading SQL sequentially with doctrine fixtures in Symfony project

Most of today applications store and retrieve data of some sorts, no matter if they are web, desktop or mobile (if there is a clear distinction anymore).

And it is always nice during development and testing process to have a sample data set to work with, and that can be expanded as the application evolves. It makes things simpler for onbaording new developers, because you can see how the data relates as opposed to relying on the schema and documentation (you have documentation, right?), and easier to achieve a result required for a feature when you actually have data to run queries against.

And, of course, if you have BDD/End-to-end tests, they will require test data.

Apr 16, 2017 - 3 minute read - php CQRS EventBus DIC

Using Zend Service Manager with Simplebus

We are currently working on a project that is evoliving in such a way that using a messagebus would simplify code a lot, and would help us deliver higher quality in less time. After looking around on packagist for available event/command busses, I decided to try out the SimpleBus. The docs are a bit sparse, they do give you all the necessary information, and it is a quick setup.