Linked Questions

3 votes
4 answers
2k views

We're working on a new project (backend, API), following the "clean code" and "clean architecture" principles (described in Robert Martin's books), dividing our application into ...
LNK's user avatar
  • 139
78 votes
11 answers
22k views

I'm reading about software architectures like Hexagonal architecture, Onion architecture etc. They put a big emphasis on decoupling. The business logic sits at the centre and the UI sits on the ...
MSOACC's user avatar
  • 965
8 votes
6 answers
8k views

I have a class with a Name property, where the name is set by the end-user. In order to ensure compatibility with the rest of the environment, and to avoid rejecting a lot of inputs, some processing ...
Maxime's user avatar
  • 310
6 votes
9 answers
3k views

It seems to me that there is a conflict between clean architecture and the recommendation not to use instanceof. Consider the following code: class ParentEntity { } class AEntity extends ParentEntity ...
Shayan's user avatar
  • 209
8 votes
2 answers
4k views

Given an onion architecture, what are the advantages and disadvantages of throwing exceptions in the business logic (which is in the center of the onion) for invalid parameters provided by the user? ...
Flavius's user avatar
  • 257
4 votes
1 answer
5k views

I'm currently working on a web app using ASP.NET Core (C#) on the backend and Next.js (TypeScript) on the frontend. I have a lot of forms that need to be validated and I don't want to write validation ...
Konrad's user avatar
  • 1,569
1 vote
3 answers
1k views

If my service is inserting into a varchar column with a certain max length, I can either validate its length prior to inserting to avoid getting an error from the database if the string is too long ...
xli's user avatar
  • 121
1 vote
3 answers
988 views

TL; DR Where/When to check data format in MVVM + Repository Pattern is the best practice? Any suggestion or theory? The Scene Our team is working on an Android Project. We have a MVVM+repo structure: ...
Samuel T. Chou's user avatar
3 votes
1 answer
338 views

I recently ordered a new credit card. I used the price comparison websites to find the best one that met my requirements. I notice that these websites have a lot of validation on the client side. ...
w0051977's user avatar
  • 7,139
3 votes
2 answers
264 views

Situation: VB.NET WinForms application, using the WinForms as a presentation layer project. Another class library project containing the business layer, in the form of CQS and Service classes, plus a ...
HardCode's user avatar
  • 674
-1 votes
1 answer
181 views

The implementation is MVC. The View is isolated to the browser layer. The Model is isolated to the persistence layer. The Controller is split with: UI controls in the browser mostly so input is ...
dacracot's user avatar
  • 503
1 vote
2 answers
102 views

When using data and domain models, where does validation take place? Both or just For example: class UsersDB(): def create(self, user_data): # Create user here return ...
Slepton's user avatar
  • 51