The Joy of Hex

Drunken Monkey Coding Style with a hint of Carlin humor

Loading SQL sequentially with doctrine fixtures in Symfony project

Jul 22, 2017 - 6 minute read - Comments phpdoctrinefixturesdatabase

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.

Using Zend Service Manager with Simplebus

Apr 16, 2017 - 3 minute read - Comments phpCQRSEventBusDIC

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.

Running ERD in docker

Mar 28, 2017 - 2 minute read - Comments DockerHaskellERD

Recently we started developing a new system on a project, and I needed to create the Entity Relationship Diagram. This time I wanted something simple, where I could just type it out, and the utility would spit out the file in format I need.

After some search I found this interesting tool called ERD, it was written in Haskell, and it seemed to do just what I wanted.