Helping Omatech with Hexagonal Architecture and Testing on Laravel

Carlos Buenosvinos
Rigor Guild
Published in
3 min readJul 13, 2020

--

Omatech is a Barcelona based consultancy company for making real your ideas

We keep our trip on helping companies to become better! I’m happy to welcome Omatech as a new Rigor Guild customer. We have performed 12 hours of a workshop for tunning how to apply Hexagonal Architecture and leverage Testing in their current developments based on Laravel.

Just three weeks ago, I announced the work we are doing with QaShops. Together with Christian Soronellas, we don’t stop the machines, and we carry on helping companies, no matter the size or business sector that they work on, to make them become more effective writing code that it’s highly profitable.

This time, we are helping Omatech, a Barcelona based tech company specialized in making ideas come true. The founders, Miquel Bonfill and Agusti Pons, together with Cesc Delgado, approached me wanting to foster the usage of best practices. They use a lot of multiple technologies around PHP. The last projects are based on Laravel, so time to deal with some challenges around Laravel Facades and Testing.

After signing an NDA and taking a look at their code, we prepared a helpful workshop based on their code. Our methodology this time:

  1. We started with a quick theory overview
  2. We created a git branch of one of their projects
  3. We identified potential web actions that could be refactored into Hexagonal Architecture organized in levels of difficulty: easy (decoupled or low dependencies), medium (Static coupling), and hard (Static coupling with Entities accessing to the database)
  4. Christian Soronellas and I refactored one case, and then let the team do another one in a Mob Programming style
  5. Applying Unit Testing with 100% Coverage in the Domain and Application layers showcasing on Mocks, Test Classes, and some more tricks
  6. Then changed to the next difficulty level
  7. We closed the session pushing multiple additional branches with a Command Bus integration and a published message and a worker consumption loop. Everything on their code.
Multiple branches showcasing how to use a Command Bus, trigger an Event and using a Worker

All the sessions were recorded in Zoom, and now the team can replay them in case they face any doubt. Christian Soronellas and I have joined Omatech Slack in case they need additional support.

Thanks to Omatech for trusting Rigor Guild for helping with their challenges. Welcome to the family! They are looking for talent, so if you are interested, you can approach them.

If you need help on how to take on your technical challenges, we can surely help. Don’t hesitate to contact us!

--

--

Carlos Buenosvinos
Rigor Guild

XP, Scrum, Agile, Lean, DevOps, Management 3.0, DDD, Microservices, Testing, Tech Management & PHP. More info on https://blog.carlosbuenosvinos.com