Linked Questions
14 questions linked to/from Clean Architecture: Use case containing the presenter or returning data?
42
votes
3
answers
7k
views
How can I do TDD in real-world applications?
Doing TDD in a kata is simple. A red test, small amount of code, green test, and refactor. Repeat. And that's it.
But, I work on a real application. With a REST controller, a service layer for ...
15
votes
6
answers
1k
views
Keeping "code" away from designers?
I build quite a bit of projects with a friend of mine, but we always come to the same pitfall over and over again. I know how to write PHP, Javascript and all that of stuff (I also know CSS and HTML) ...
5
votes
1
answer
7k
views
Implementing clean architecture
I just read the book 'clean architecture' by Uncle Bob and really like the approach.
But the big disappointment came when I tried to implement it in C#.
I really hope you can help me with some ...
7
votes
1
answer
889
views
MVC: Display requested content via the View
I'm trying to learn how the MVC pattern works so have been playing around a bit. I just wrote this, which was making sense to me, until I wanted to display the array content which has been collect by ...
2
votes
2
answers
3k
views
Should similar use cases be splitted or combined in clean architecture?
In Clean architecture
Suppose I have two actions (approve/deny) a request.
Should I create a use case for approve and another for deny?
or both in one use case (RespondToRequestUseCase) and I ...
0
votes
2
answers
2k
views
Onion architecture: Dependency Inversion Principle within the Service layer
I'm trying to implement a project using the Onion Architecture (aka Hexagonal, aka Ports and Adapters, aka Clean Architecture).
I understand that the user interface uses Service interfaces instead of ...
5
votes
4
answers
323
views
Ugly nested parameterizations
Suppose there's a long IO operation that may result in some return value — but doesn't have to. Completion with no return value is different from the operation being pending.
Do I have better options ...
0
votes
2
answers
454
views
Will FSM be a good solution?
At work, we are creating an android app. We have a business logic module for talking to an API for CRUD operations. The app I'm working on, the UI module, speaks to the business logic module to create,...
1
vote
2
answers
587
views
MVC who knows about whom?
In the Model-View-Controller pattern, I do understand the role of each component.
The Model represents our application's domain model. The View presents this information and the controller ...
2
votes
2
answers
694
views
Clean Architecture Python Example: How to implement a Usecase/Interactor saving Data to a Database
I am struggling with the clean architecure. I have constructed a minimal example of how a usecase/interactor could talk to the database without being dependent on it:
The use case:
class ...
1
vote
1
answer
524
views
Clean architecture for file upload in a flutter app
I have started a flutter app and want to apply clean architecture to it. The first use case i have is the following:
A user provides file(s)via "open file" dialogue. The provided files ...
0
votes
1
answer
751
views
Domain driven design - factory with cross-cutting concerns
I was recently tasked with creating a factory that processes webhook events. Any authorized application in the solution (1 app per domain) can post any meaningful payload and as long as the event's ...
2
votes
2
answers
221
views
How should I structure an update script that handles the output of another module?
I have a large (>1,000 LOC) Python ETL script - call it fetch_and_transform_data.py - that fetches data from a remote database, appends the raw data to a local table, does some transformations and ...
4
votes
0
answers
312
views
Should I pass presenter to use case when implement clean archeiture using scala
This question came to me when I was trying implement Clean Architecture using Scala, and come across this post.
In the accepted answer, @candiedorange emphasis on the separation of responsibility, and ...