Skip to content

luisartola/primary-ports-kata

 
 

Repository files navigation

Primary ports kata

  • This kata is not about developing an hexagonal architecture
  • The architecture is already delivered
  • This kata is about experiencing the benefits of the architecture

Concepts

Readings

Deliberate practice

Acoplamiento: ¿qué afecta a qué?

Implementar validación:

  • afecta a puertos y adaptadores
  • ver qué al refactorizarla no hay que cambiar test

Implementar nueva feature: la división

  • no afecta adaptadores

Implementar autenticación web

  • afecta solo a adaptador web

Features and architecture are decoupled

  • evolve web adapter without developing new features
  • develop new features
  • check that automatically exposed throw ports, without adding new lines to adapters
  • web framework only in one file, console framework only in one file

Easier end-to-end testing

  • test logic without testing delivery mechanism
  • test delivery mechanism without testing logic

More realistic example

  • add error management
  • add web auth
  • add persistence repo (secondary port)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%