Blog 📚

My First Remote Workshop at SymfonyOnline 2026

Short reflection

On 20th January I had the chance to run a workshop during SymfonyOnline 2026, titled refactoring towards Clean Architecture.
What made this session special for me was the fact that it was my very first remote workshop ever.

Going into it, I honestly expected around 10–15 participants. Instead, almost 25 people showed up, which was both surprising and incredibly motivating. Even more important than the number was the level of engagement — lots of thoughtful questions, real-life problems, and open discussions around legacy code, boundaries, and architectural trade-offs.

Running a remote workshop is very different from speaking on stage. You don’t see the whole room, you don’t feel the same energy — or at least that’s what I was afraid of. In reality, the interaction, questions, and feedback made it feel very alive and dynamic.

Of course, it wasn’t perfect. There are a few things I already know I want to improve next time — pacing, timing of exercises, and some technical details. But overall, for a first remote workshop, it went surprisingly well, and I’m genuinely proud of how it turned out.

Thank you 🙌

I want to say a huge thank you to everyone who joined the workshop.
Your questions, openness, and willingness to discuss real-world problems made this session truly valuable and enjoyable for me as a trainer.

Big thanks as well to the SymfonyOnline team for the trust and the opportunity to run this workshop.
It was a great experience — and definitely not the last one.

Questions & Answers from the workshop

During the workshop, a lot of great questions were asked.
Below you’ll find all of them collected in one place, together with my answers, so you can come back to them anytime. Bear in mind that these are just my suggestions. As I said in the workshop 👉 in the software architecture, everything is a trade-off, so keep that in mind!

I think it’s not a realistic starting point. You’re refactoring from an already well set up project. Most of the application out there are not so well structured from the start. What if you’re dealing with a messy monolith? Do you first refactor to remove front-end code (templating, symfony-ux, …) to be in the same case and then refactor to clean architecture?

In the APP that we were working on, the UI was JSON, as it was an API. But, you can apply same principles to project that is a regular HTML. The problem will be with testing – you will need to the through the UI, to have the safety net. Your primary adapter will be the place where the HTML code will be produced.

It seems we’ve focussed on covering comment creation with ‘functional’ tests. Is this the recommendation when refactoring versus at the unit/molecular level, i suppose those kinds of tests are less resilient to the changes we’ll be making?

It is recommended to write a functional test, as this works as a safety net for refactoring. Later, with introduction of proper layering, you can keep one functional test as happy path, and test the layers via unit tests.

Do you usually add more assertions to this test, like:

self::assertSame(‘Nice article.’, $payload[‘comment’][‘body’]);

It is up to you how do you write assertions, as long as they cover the code and they are proper safety net.

Longer term do you recommend bringing fixture/entity creation closer to the tests? Currently the tests are expected to somehow know a fixture exists with the reference ‘test-article-user-first’?

Fixtures are nice for start, but in more complex project they become a problem, therefore I can recommend a builder pattern. This allow to have flexibility like ArticleBuilder::new()->withSlug(‘test’)->build()

Have you ever had problem with this new structure when upgrading projects (recipes, …) ?

Not yet, but I think that depends on the recipes.

Do you keep existing tests as is or do you restructure them also to map the new code structure ? For exemple with a new “testClean ” namespace also

In one medium size project we did testsClean, to have new tests on the side. It is optional.

Why have we introduced comments repository interface here; can’t we directly use DoctrineCommentsRepository?

This way you would break The Dependency Rule, you read more about it in the Uncle Bob article: https://blog.cleancoder.com/uncle-bob/2012/08/13/the-clean-architecture.html

Can a UseCase use another UseCase? or it’s a no-no?

Of course, you can create a composite UseCase that will use other use cases 😀

Where should we log, in which layer?

For logging I can recommend using the PSR interface – and treat it as shared component – it can be used on any layer where needed.

Going back to the conversation we were just having on use cases, comment entities etc.

Is the relationship between a controller and a use case, is it 1:1?

Could a controller leverage multiple use cases, for example, the comment controller depends on FindArticleBySlugCase and a CreateArticleCommentUseCase? Is this bad practice?

I can recommend discussing this with peers, either use multiple use cases in the controller, or create a composite use case for that purpose 😀

Can you please briefly summarize one more time what we did in the last step with CreateCommentHttpController? So, why we did it?

This is the introduction of the Primary Port and Primary Adapter. The Primary Port is an interface extracted from the Use Case. The Primary Adapter is the HTTP controller, which adapts the HTTP Request/Response to the Use Case needs. This taken from the Ports & Adapters aka Hexagonal architecture. You can read more here: https://herbertograca.com/2017/09/14/ports-adapters-architecture/#more-8817

How broad/narrow should the functionality of a use case be defined? e.g. CreateArticleComment vs ManageArticleComments (i.e. might include other comment ops, not just creation).

It should comply with the S from SOLID – Single Responsibility Principle, or Single Reason to Change. Consequently I can recommend sticking with option A.

Is there a need (or example) for multiple different implementations of a primary use case? They rely on secondary port interfaces, does that give us the flexibility we need?

There will be only one implementation in the production code, always, there could a fake/mock/stub in the tests as well. The whole point of the introduction of that interface, is to have an abstraction over the Use Case/Application layer, so we can leverage The Dependency Rule, you can read more about it here: https://blog.cleancoder.com/uncle-bob/2012/08/13/the-clean-architecture.html

So, Hexagonal architecture is clean architecture applied to each identified bounded context of an app?

No, Clean Architecture borrowed the ideas from the Hexagonal architecture (the idea of ports and adapters).

flush() is called inside the save/delete methods of the secondary adapter implementations.

Do you do that the same way in complex projects?

In my view, this breaks the Unit of Work pattern, because flush() implicitly commits all changes accumulated in the EntityManager, not just the current entity. This can lead to unintended side effects, trigger persistence-related behavior at unexpected moments, and reduce control over transaction boundaries at the use-case level. As a result, transactions have to be introduced manually where Unit of Work could otherwise handle them naturally, leading both to extra implicit commits and additional explicit transaction management.

Yes, in the project that we were working on it was not a problem, but in more complex it could. There are many possible solutions to that, via event listener, via middleware, etc.

How should events and event listeners that are highly coupled with framework (Doctrine event listeners for example) be handled? In which layer should they be? Should they be somehow decoupled from framework?

They are already coupled to Doctrine, so keep that in the Framework layer 😊 We went over it at the end of the workshop.

Do you keep only entities in the Domain layer, or do you also include domain services? In which cases do you consider it appropriate to place a service in the Domain layer?

If you need domain service, go for it. As I said, we didn’t dive deep into DDD here, we would need one more day 😅

Additional materials

For those who would like to go deeper, here are some extra materials I personally recommend:

🗂️ Slides 👉 https://speakerdeck.com/ddziaduch/refactoring-towards-clean-architecture-workshop-symfony-online-2026

💻 Repository & workshop branch

This is the repository we worked on during the workshop, including the exact branch used in the exercises:

👉 Repository: https://github.com/ddziaduch/refactoring-towards-clean-arch-workshop

👉 Workshop branch: sf-online-2026

📚 Books

My talk about Framework Agnostic – a presentation about Clean/Hexagonal architecture.

The Software Architecture Chronicles – a series of post by Herberto Graca about the evolution of the architecture.

The Deptrac tool – the static analysis tool I showed

Final thoughts

Once again, thank you for taking part in the workshop and for the great atmosphere.
I hope the ideas and tools we covered will be useful in your day-to-day work.

Best of luck applying them in your projects — and hopefully see you again at another conference or workshop 🙂

SymfonyCon 2025: My First International Workshop Experience

Intro

Oh wow — it’s already over, but I’m still riding the emotions from this conference. That’s why I’m here, writing this article for you. I hope you can learn something from my experience and maybe you’ll soon find yourself as speaker/trainer at your very first conference — either in your country or abroad 🙂

I’ve been a public speaker since 2023, and ever since then I’ve been applying to multiple conferences. I’ve spoken at events across Poland, sharing my experience and ideas, but for a long time I couldn’t quite make it happen abroad… until SymfonyCon 2025! I’m truly happy it finally worked out 🔥

My speaker badge

In this article, I want to cover everything related to this trip, so treat it as a practical guide on how to apply, prepare, and perform on an international stage — especially if you’re thinking about submitting your own talk or workshop.

SymfonyCon is the flagship annual conference for the Symfony community — the main event for anyone building with Symfony in PHP. There’s only one SymfonyCon each year, but the ecosystem also includes local SymfonyDay and SymfonyLive conferences/meetups, as well as SymfonyOnline, the online-only conference.

I’ve decided to apply with multiple talks and one workshop, but only the workshop got selected – Refactoring towards Clean Architecture. In this workshop I teach how to refactor the application written in a framework way into Clean Architecture. You can find more (what it is about, outcomes, agenda, etc.) on the dedicated page.

Continue reading SymfonyCon 2025: My First International Workshop Experience

From Monolith to Modularity – My Talk at the Fyul Tech Day

This summer I had the chance to speak at our internal engineering conference, and wow, what an experience! The room was completely packed (even our CTO joined 😱), and we actually ran out of time due to the number of questions and discussions. That’s probably the best kind of problem to have.

My talk was titled From Monolith to Modularity: How Deptrac Helped Us Break the Monolith”, and it told the story of how our team took a growing, hard-to-maintain PHP codebase and started turning it into a well-structured modular monolith, by using bounded contextsclean architecture, and most importantly, Deptrac.

Continue reading From Monolith to Modularity – My Talk at the Fyul Tech Day

🚀 A big step – my workshop at SymfonyCon 2025 in Amsterdam!

I’m truly excited to announce that my workshop Refactoring Towards Clean Architecture has been selected for this year’s SymfonyCon 2025 in Amsterdam!

This is a huge milestone for me because:

  • I’ve never spoken at an international conference before,
  • I’ve never been part of an event of this scale,
  • and this will be the very first time presenting this workshop at a conference – so far, I’ve only delivered it once, at Masterlease.

Funny coincidence: I actually received the confirmation email that I got accepted to SymfonyCon while I was giving a talk at our internal company conference 😆 On the one hand, I was over the moon with happiness; on the other hand, my imposter syndrome immediately kicked in 😂

I’ve worked hard to build my credibility as a speaker – you can find all my talks here.

I can’t wait to meet the Symfony community in Amsterdam and share my knowledge 🎉

ZSA Voyager – buying & waiting

Hello there 👋🏻. Welcome to the second part of my article series about the keyboard. This time I would like to describe the buying, awaiting till to unboxing the product. So, as you know from the first article in this series, I decided to buy a split columnar keyboard, which is ZSA Voyager.

All articles in this series:

  1. Why I switched to the split columnar keyboard
  2. ZSA Voyager – buying & waiting
  3. ZSA Voygare – unboxing and the first impressions
Read more: ZSA Voyager – buying & waiting

Why ZSA? It is one of the most known companies that produce ergonomic keyboards. They are quite an established company, which sells plenty of keyboards. They started in 2015. Besides the Voyager, they also have different split keyboards like Moonlander Mark 1 and Ergodox EZ 🧑‍💻

ZSA Ergodox EZ

When you visit the ZSA website, you will find a beautiful, intuitive website that clearly shows what you can expect when you buy their product. There is a comparison tool that will help you to choose a proper keyboard. Lastly, I would like to mention the printables. Ah, they are amazing – just print the keyboard on paper and try it on your own to see whether it will fit your hands 🙌.

Although I could end up here, I would like to emphasize the rest of their webpage, which is packed with information, about the switches, keycaps, layouts (like Dvorak, Colemak), ergonomics etc. Finally, it is worth mentioning their blog where you can find a lot of interviews with people who bought their keyboards. I found such information very valuable and they made me confident before buying 🎯.

Before finishing this short article, I move on to focus on the purchase experience. In the checkout process, there is a field that allows you to add any notes/questions to your order. I wrote that I am concerned about the usage of the laptop keyboard vs the Voyager. I had doubts that I wouldn’t be able to use the regular old-fashioned keyboard. To my surprise I’ve received a response from the company CEO, here it is:

As you have to wait for the keyboard quite long (the delivery took around 20 days), the company sends multiple emails with an introduction to their software and the customization. They even encourage us to make the first changes in the keyboard layout, as it is doable without the keyboard itself via Oryx software.

Stay tuned for the next part where I will cover the unboxing and the first impressions!

Senior Software Engineer – what next?

Hello there! I am a Software Engineer with 13 years of experience. Last year I felt the need to do something with my career to not die as a Senior Software Engineer. Although staying in such a position is fine for most people. So I started doing presentations and sharing the knowledge, but without any concrete plan. This year I want to approach the problem differently.

The main image by Arek Socha from Pixabay.

So, what to do next?

Continue reading Senior Software Engineer – what next?

Why I switched to the split columnar keyboard

All articles in this series:

  1. Why I switched to the split columnar keyboard
  2. ZSA Voyager – buying & waiting
  3. ZSA Voygare – unboxing and the first impressions

A bit of history

Have you ever wondered why every row with letters on a keyboard is moved a bit to the side, but no such thing is happening on the numpad? Do you know how this impacts your ergonomics?

The typical full computer keyboard
Keychron C2

Let me introduce you to the staggered keyboard layout. The staggered layout means that each row of letters is moved a bit to the side. I would bet that 99% of keyboards currently sold or built-in into the devices are staggered keyboards.

By GodeNehler – Own work, CC BY-SA 4.0, https://commons.wikimedia.org/w/index.php?curid=75088136

Such a layout was introduced with the first typewriters. So the layout that you are currently using has not changed since the 1870s! The idea was simple – there was a mechanical device, and on each key press the ribbon was moved to type a character. To prevent jamming the ribbons the staggered QWERTY layout was introduced. As you might guess, the more the machines become popular, the layout becomes a standard.

Later computers were invented, and they also got a keyboard, yes, with the same QWERTY staggered layout. But you might be wondering – there are no ribbons on the keyboard, so why did we still use the same layout? The answer is pretty simple – the people were already used to the layout from the typewriters, consequently, it was easier to switch to the computer if it had the same layout. OK, now that the history lesson is done, let’s jump to another part of this article.

What is wrong with the staggered layout?

Let’s think about how we usually write on the staggered keyboard.

The device is in front of you, and it is narrower than your arms, hence you have to angle your wrist to type properly. This position is not ergonomic at all. Let’s list all the problems.

Problem one – the keys are not aligned with your fingers. For example, if you want to press key D and then E, you have to move the finger up and a bit left. Yes, you might be already used to that, but would it be better to just move up?

Problem two – angling your wrists. If you do so for many hours, many days per year, this can lead to repetitive strain injuries.

Problem three – closing the chest by angling your arms to the inside. By sitting in such a position for a long time, you will have weaker back muscles. It can also lead to pain in the back/shoulders.

Problem four – many of the keys are out of reach so you have to move your whole hand to reach them. That usually means angling your wrist even more…

My issues

I have been working with keyboards for around 15 years. I’ve tried to improve the comfort and ergonomics of my work.

For a few years, I didn’t bother until my first child was born. After a quick parental leave, I went back to work and I discovered the back pain. That is how my ergo journey began. I’ve tried four office chairs and bought a sit-stand desk.

With the keyboards, I started by buying a 100% mechanical keyboard. I quickly realized how ineffective that keyboard was because of how much I had to move my hands.

Keychron C2 vs Keychron K12

Consequently, I bought a 60% keyboard, it was way better. But, there was still one problem that started to become a serious issue.

My left shoulder hurt me just after four hours of working. Some of you might say „Hey you need to exercise and all the problems will be gone”. The problem is that I am already an active person, I am working out.

My physiotherapist said that I have a closed chest and I need to open it, so my shoulders will be inlined, which should fix my pain.

At that moment I decided to try something new – the split columnar keyboard.

ZSA Voyager

The switch

After buying the new keyboard, the switch was fairly easy. The worst was the first week. Then all went smoothly.

The biggest benefit of the new keyboard is that it fixed my pain, literally. I can now sit comfortably for hours, my chest is open and my shoulders are aligned.

I thought that after switching I would have problems with typing on a regular keyboard, which I still have, on my laptop. Happily, that is not true. By learning to type on such a keyboard you are doing it from scratch. That means that you still remember how to type on the staggered keyboard. Your brain will contain two distinct muscle memories. For me, it is not an issue to take a laptop, sit on a couch and type on a built-in keyboard. The only problem is that it is much less comfortable…

Should you also switch?

If you have the same feeling as me – why I am using a staggered keyboard that was invented with the typewriters – do not be shy and go for it.

If you have an RSI – then the split columnar keyboards are the way to go.

If you are curious – you will not regret it.

I have to warn you – it is not an easy switch. You have to learn to type again. So you will have to get out of your comfort zone. You have to slow down to get better.

Next articles about the keyboards

As the next article, I am planning to do a review of my split columnar keyboard – the ZSA Voyager. I will show you the process from ordering, first thoughts, and learning up to my current setup.

Stay tuned.

Crash early

A dead program normally does a lot less damage than a crippled one.

The Pragmatic Programmer, Tip #38, page 113

Have you ever thought about what can go wrong when the application’s logic is broken, but it continues to work? That might happen when the values are not the ones that you expect. For example, a method/function returns an integer, but a negative one, but you expect it to be positive. Another example is trying to access an unknown array key. The database returns an invalid value. You name it.

What if you won’t allow it and crash early? Yes, the client will see “an error occurred, our engineers are working on it”. The actual benefit is that the program will exit and not cause any harm. No corrupted data in the database nor missing files.

How to crash early in the PHP? There are two ways. Throwing a \LogicExpcetion or enabling assertions on production and using them.

Continue reading Crash early

Symfony & PSR-16 Simple Cache

This week I was working on the integration with the Optimizely Feature Toggles.

Its PHP SDK is mediocre.

It makes the HTTP request for the data file whenever the new PHP process is executed.

The data file is in our case larger than 2 MB, so it has to download a large file, but also validate it and parse it.

That makes around 700 ms overhead on each process.

Therefore I needed a cache mechanism.

But, as we try to write the software in a framework-agnostic way, I wanted to use the industry standard interface – the PSR-16 Simple Cache, to not be coupled to a specific cache implementation.

Continue reading Symfony & PSR-16 Simple Cache

How to stay focused in the work?

During the last weeks, I started experimenting a bit with the focus of the work.

Key takeaways:

Split your work into blocks.

The first block should be reading and communication.

You can close your Slack and email after you read all.

Put proper status so your peers will know that you are in the zone.

Do not sit too long in the zone, use the Pomodoro technique to do breaks often.

Close the focus block and then take a break for reading and communication.

Spotify can be your friend and also an enemy, the song which you do not like at the moment can distract you.

As a replacement, I can recommend mynoise.net which has a built-in Pomodoro timer.

Put your phone in a different room, and use the focus mode on your Apple Watch and MacBook to keep focus.