1,252 questions
2
votes
1
answer
48
views
Validator access to database
My question is how do I need to validate fields. I have this class (request dto):
public class CompleteGoogleRegistrationRequest
{
public string IdToken { get; set; } = string.Empty;
public ...
-2
votes
0
answers
46
views
Designing complex use cases in Go with DDD [closed]
How do you structure complex use cases in your Go projects? We are using a DDD approach. I’ve encountered a scenario where a single core business operation needs to trigger multiple additional actions:...
Best practices
0
votes
1
replies
40
views
How should shared DTOs be managed across API, Application, and Frontend layers in a .NET 9 Clean Architecture project?
I’m working on a .NET 9 Clean Architecture solution with the following structure:
API – ASP.NET Core Web API (.NET 9)
Application – Application services and business logic
Domain – Core domain ...
1
vote
2
answers
89
views
mapstruct generated implementation cannot find imported class in multi-module Spring Boot project
I am using clean architecture and have 3 modules: application -> details -> core
I'm trying to use Mapstruct to generate mappers in application & mappers in details. I have this mapper in ...
-3
votes
1
answer
89
views
Usage of tap({ error }) vs. catchError for side effects [closed]
In Angular/RxJS, when should you use tap({ error }) and when catchError for side effects? How do you best separate the two logically or combine them?
For example, does resetting the UI to its previous ...
0
votes
1
answer
32
views
Gateways design in a react native app with TDD approch and clean architecture principles
I'm currently developing a mobile app for booking overnight accommodations in React Native. I'm currently developing the "book accommodation" functionality and I'm running into a design ...
0
votes
1
answer
106
views
What is the aim of useCase existence when it comes to Clean Architecture in Android?
I cannot really understand what I should do in my UseCases. As I know, repositories are responsible for particular field, type of data and their work is to provide business-logic and connection to ...
0
votes
1
answer
52
views
How can the application layer get data from a DTO if the domain interfaces don't know about it?
The scenario:
- infrastructure/
├── dtos/
│ ├── note_dto
│ ├── todo_dto
│ └── note_preview_dto <-- includes 3-5 previewTodos from database
│ ...
1
vote
0
answers
175
views
How to structure a hybrid offline/online repository in Flutter with Drift and GetIt (clean architecture)?
I'm working on a Flutter app that includes barcode scanning and offline-first support.
The app uses:
Drift for local SQLite storage
GetIt for dependency injection
Clean Architecture
A hybrid approach ...
0
votes
0
answers
43
views
Using Room Database with Dagger 2 and multi-module project
I have the following project structure:
app/
di/
components/
modules
JakcApplication.kt
MainActivity.kt
core/
data/
local/
database/
...
0
votes
0
answers
49
views
How to Reuse Use Cases Across Different Modules in a Modular Android App?
I have a modular Android application following Clean Architecture, where each module is responsible for a specific feature.
I have a Recipe Module that...
... fetches recipe data from the server ...
0
votes
0
answers
53
views
How can I observe for date or timezone changes to update the UI using MVVM, UseCase and Hilt?
I have a interface called TimeZoneMonitor to monitorize Time Zone or Date changes.
I also have a UseCase that queries the database, looking for information based on the current system date.
The code ...
1
vote
1
answer
46
views
How to include an error case in the UIState?
I'm trying to catch any error cases in the ViewModel and update the UIState, but it's not working.
This is the sealed interface to handle the different responses:
sealed interface UniversalisUiState {
...
0
votes
2
answers
333
views
Where to map to domain from Data layer in MVVM Clean Architecture?
'm working on an Android application using the MVVM architecture with clean code principles. The app has three layers:
UI -> Domain -> Data (Repository -> Data Source)
From the data layer, I ...
0
votes
1
answer
122
views
Trouble when Creating a Context Factory in Clean Architecture
I am trying to implement CA in an ASP.NET Core Web API. Right now I have the presentation, infrastructure and application all set up, but when I tried Updating the Database with the DbContext Entities ...
1
vote
1
answer
84
views
Proper usage of Google API (Navigation) in Android clean architecture
I have a question regarding usage of Google APIs (in my case NavigationAPI) in clean architecture.
So in order to use google navigation it is necessary to have Navigator object from NavigationApi....
0
votes
1
answer
122
views
Using multiple repositories in application layer DDD
I'm learning about DDD and am attempting to model a basic interaction between a user and a shopping cart, and am wondering if the following code is directly aligned with DDD principles, or if there is ...
1
vote
0
answers
32
views
flutter clean architect help for network and third sdk manager
I am planning to use clean architecture in Flutter to develop my upcoming projects. Currently, I'm using libraries such as flutter_bloc and get_it. The entire project is composed of core, features, ...
1
vote
3
answers
300
views
How to use DTOs from application layer in domain layer repository interface (repository pattern)?
I am learning ASP.NET clean architecture structure. I have an application layer with a query GetAllRestaurants which has to return paginated restaurant objects.
I am using repository pattern, with the ...
1
vote
1
answer
513
views
How to maintain Clean Architecture principles with Cloudflare Workers' context-dependent bindings in a Hono API?
I am currently developing a Hono API application practicing the basics of Clean Architecture (you can look it up), but tldr it provides ways to isolate layers between each other, making it easier to ...
0
votes
2
answers
221
views
When using Clean Architecture in Android projects, why does the Presentation Layer need to have a dependency on the Data Layer? [closed]
Looking at many blog posts and GitHub projects, I've noticed that when implementing Android project with Clean Architecture, the Presentation Layer often has dependencies on the Data Layer. I'm not ...
0
votes
1
answer
1k
views
Using Clean Architecture and Repository/Unit of work to build the application with ASP.NET Identity
I am working on creating a project using Clean Architecture (backend part). In this application I'm going to deal with users that can registrate/log in using jwt athentication and manipulate with ...
0
votes
1
answer
51
views
Data integrity enforcement in Clean architecture: Domain or Data Layer?
I have a project in which I have a 1->N relationship: a person needs to have at least a pet. Because of this rule, we can't have a person without any pets.
There are a PetRepository and a ...
2
votes
1
answer
179
views
Managing Internal Service Calls in DDD Application Layer Without Excessive DTO Mapping
I’m developing an application using DDD with a Domain, an Application, and an Infrastructure layer.
Inside my Domain, I have my entities with business logic and some domain services. In the ...
0
votes
1
answer
107
views
Orchestrated vs Core use-cases in clean architecture
I have an endpoint that should create a book, and if it is the clients first created book it should send an email like "Congratulations to your first book". Following Clean Architecture I ...