DEV Community

Discussion on: Clean Architecture on Frontend

Collapse
 
bespoyasov profile image
Alex Bespoyasov

Thank you very much for the review! Really glad you find it useful 😊

Yup, the tests are a very important tool for developing robust software. I intentionally skipped tests in this post to avoid distraction from the main topic. Although, I mentioned the testability and how to improve it in the post text. So basically, we keep tests in mind along the way :–)

As for the complex UI logic, I would add some presenters to handle that. In my opinion, it’s better to separate the UI logic from the application logic. So basically, application layer would reflect the app data transformations, and UI presenters β€” only the complex UI changes.

In some cases, presenters might resemble finite state machines. I find them a very convenient way to describe the UI changes.