2022 Developer Survey is open! Take survey.
4 votes
Accepted

Serverside validation in a web application

Typically, as early as possible – validation should happen at a system boundary, but you'll have to decide where exactly to draw that boundary. When working in a typed language, a good rule of thumb ...
user avatar
  • 123k
3 votes

Technical Debt in frontend development

It's not clear what "recently joined" means, but you are new to the company. A recent hire coming in and telling people that their project has a lot of technical debt and problems probably ...
user avatar
  • 75.6k
2 votes

Best way of handling concurrent requests

An alternate solution, depending on your requirements is to get rid of server side state altogether. This is what tokens (like JWT) will help you. User logs in, just give it a token with a ttl of 5 ...
user avatar
2 votes

Side effect as a common object seems like a bad pattern

Giving discounts in an auction sounds counter intuitive and potentially illegal, but generally the approach for "modifiers to an order" would be to define the logic for each discount type in ...
user avatar
  • 64.1k
1 vote

Are Microservices Architecture and a Single Customer View able to co-exist?

Yes, they can co-exist. Both things exist for different, non-contradictory reasons. Microservices exists usually for scaling purposes, either organizationally or technically. To do this, the ...
user avatar
1 vote
Accepted

Blazor Application separation of concerns

I'm going to focus on Blazor WebAssembly here, not Blazor Server-Side, because you're trying to compare it to an Angular frontend. However, I am not so sure how I could separate the front-end and ...
user avatar
  • 37.3k
1 vote

Alternatives to DDD - Complicated and cumbersome business logic/process

There is no architecture, design pattern or development philosophy that fixes this. Domain-driven development was conceived precisely for complex applications. Eric Evan's book "Domain-Driven ...
user avatar
1 vote

Plugin architecture vs Interface Segragation Principle (SOLID)

The purpose of a plugin may be specific to your current application, but whatever it is, it is strictly delineated in your domain. The generic codebase has certain expectations of what a plugin is or ...
user avatar
  • 37.3k
1 vote
Accepted

How can one combine two system architectures, say client-server and repository architecture?

There appears to be a confusion about what constitutes an "architecture" in software development. Architecture describes a general way of organizing code and behavior. Client-server is ...
user avatar
1 vote

I can't really tell the difference between Hexagonal and Layered Architecture

Layered is usually like this (arrow indicates a dependency): Data <-- UI Which split apart a bit more can become: Data <-- Logic <-- UI Hexagonal uses dependency inversion to achieve: Data -...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible