New answers tagged

0 votes

How to apply the Open-Closed design principle for different parameters in each class

The solution is to eliminate the IOperation interface which you don't need. You don't describe the semantics of the extra parameter, but presumably it is something specific for the database operation. ...
user avatar
  • 54.6k
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
5 votes
Accepted

Best pattern/practice to execute a multi-step code generation process

There is nothing inherently wrong in having an orchestator doing these steps one after another. When all you need is this fixed step of sequences, don't start to throw some fancy patterns at the code ...
user avatar
  • 184k
0 votes

Best pattern/practice to execute a multi-step code generation process

If these steps are independent, one architecture you can use if the event driven architecture which is implemented using the pub/sub design pattern. Basically one class (the publisher) raise or fires ...
user avatar
  • 154
1 vote

Modelling interactions (Domain driven design)

There is no design without context, i.e. a set of requirements that define the context. Even if you understand the business case, there is no point in trying to model the "reality". Design ...
user avatar
1 vote

Modelling interactions (Domain driven design)

My initial reaction was twofold: Unless there are constraints around moving boxes, the user (or labourer) who moved the box should be metadata. At best, it feels like a LabourerId is all you need. ...
user avatar
0 votes

Modelling interactions (Domain driven design)

As in @Ewan answer, it is best to decouple the box domain from the user domain. But to one thing to add is to check out the entity component system design (ECS). In short, you have the entities user ...
user avatar
  • 154

Top 50 recent answers are included