• Free

Foundations

  • Bundle
  • 3 Items

Foundations gives you code discipline.

You will learn how to structure business logic so it stays independent from databases, message brokers, and UI code.

You will see architectural patterns like Hexagonal and Clean Architecture implemented in real code. You will understand how to enforce clear team boundaries and write clean code like an architect.

Recommended order

If I were starting today

If I had to start over today, this is the path I would follow.

Step 1 — Set the right mental model

Watch this short video. This is about understanding why business logic must NOT depend on data stores or external APIs.

Step 2 — Start with a solid architectural pattern

You need a solid architectural pattern to structure your code properly. Hexagonal Architecture is the right place to start.

This gives you the code structure discipline.

Step 3 — Watch a real system built from scratch

Watch me building the solution from scratch. Covering: folder setup, core domain logic (anemic vs. rich), use case orchestration, and plugin gateways implementing core interfaces.

You will learn:

  • how to organize use cases and domain logic

  • how to keep the core independent

  • how to plug databases, UIs, and message brokers without polluting the core

This shows you how to build the inside correctly.

Step 4 — Write code like an architect

Garry Kasparov said it is the combination of patterns that matters. Refactoring works the same way.

Watch me refactor code that smells, combining techniques such as Extract Method, Method Object and Template Method across several use cases.

This earns you your developers’ respect in code reviews.