Given that the number one reason why Unit Test fails is the code is not testable which make the unit test difficult, costly, un-maintainable, making the application layer independent through the interface is the most important concept in the clean architecture.
Category: Architecture
When Test Driven Development Goes Wrong
When you feel TDD is difficult when you first started TDD, that might sign that there are improvements to make in the design. There are 5 common anti-patterns. The Liar Passes all tests with no useful assertions, which could be caused by chasing test coverage. => Write the test first, which fails with a purpose.… Continue reading When Test Driven Development Goes Wrong
Beyond Microservices in a one page
Problems Clients know too much: Auth, Encryption, etc. Hard to change a microservice -> Don’t know who’s using it. Hard to add a new microservice -> No one may use it. Being political. Responsibility for the failure in a microservice. What happened when a microservice fails. REST is slow Solutions – Useful Architectures API Gateway… Continue reading Beyond Microservices in a one page