Clean architecture – where to put input validation logic? [closed]

I think many developers do that in Presentation layer, specifically in ViewModel/Presenter/Controller (not in Activity/Fragment/View!). My approach is to put that logic in Domain layer. Why? Is it presentation logic or domain logic? Presentation logic is something you decide “mapping render model”, “format of render model”, “how to render”, “what color, what size, which text”, … Read more

Nestjs Dependency Injection and DDD / Clean Architecture

Export a symbol or a string along with your interface with the same name export interface IService { get(): Promise<string> } export const IService = Symbol(“IService”); Now you can basically use IService as both the interface and the dependency token import { IService } from ‘../interfaces/service’; @Injectable() export class ServiceImplementation implements IService { // Used … Read more

Questions about VIPER – Clean Architecture

1. May the Presenter query information from the view To answer this to your satisfaction, we need more details about the particular case. Why can’t the view provide more context information directly upon callback? I suggest you pass the Presenter a Command object so the Presenter doesn’t have to know what to do in which … Read more

What is difference between mvvm with clean architecture and mvvm without clean architecture in Android?

Clean architecture aims to separate the layers. Business Layer, Data Layer and Presentation Layer will be separate applications. Therefore you will increase the reusability for each one of them. MVVM as design pattern should be implemented in the Presentation Layer. Presentation Layer will interact with Business Layer (or Domain Layer) and the Business Layer will … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)