Skip to main content
6 votes

design pattern for conditional behaviour depending on a client ID

Thinking about what design patterns to use usually isn't that fruitful an exercise. Think about what properties your solutions should have. Obviously having if statements checking the client ID ...
psr's user avatar
  • 12.9k
5 votes

Does "behaviour" describe exact output?

"smoothly" is not formally defined Here's your problem. You are looking for requirements that can be generalized and your supervisor can't provide them. Sounds like no one knows. What ...
candied_orange's user avatar
5 votes

How to be a good team member and push the team towards new paradigms and technologies at the same time.

Some things like DevOps really are just buzz words, and even groups that don't do "DevOps", really do indeed do large chunks of it. For example: do you have a code repository? Do you run unit tests ...
jmarkmurphy's user avatar
4 votes

design pattern for conditional behaviour depending on a client ID

Can the specific behavior be encapsulated ? If the behavior is a related set of actions used in several places, use the strategy pattern. Your special client would use a different concrete strategy. ...
Christophe's user avatar
  • 82.2k
4 votes

A single sequence diagram for the whole system?

In short Complexity is mastered by breaking complex matters down into simpler ones. Based on this principe, an UML model of a complex system is made of many simpler diagrams. So keep each of it as ...
Christophe's user avatar
  • 82.2k
4 votes

A single sequence diagram for the whole system?

One common misconceptions of people who learn (or get taught about) UML diagrams is that a single diagram is supposed to explain the whole system. With the exception of extremely simple systems, that'...
Philipp's user avatar
  • 23.5k
4 votes
Accepted

How to be a good team member and push the team towards new paradigms and technologies at the same time.

You have to explain two things in order for a new technology / paradigm / language / methodology / whatever to have any chance of success in a team. First, you need to explain what is not working with ...
mmathis's user avatar
  • 5,586
3 votes

A single sequence diagram for the whole system?

Sequence diagrams can be used to model use case scenarios, but they can also be used at other levels of detail, for example to show an interaction scenario of multiple classes in a detailed design. As ...
Bart van Ingen Schenau's user avatar
2 votes

design pattern for conditional behaviour depending on a client ID

You should make this kind of decisions as early in the application as possible. In case where user can use only one option of the feature, you should move decision to the entry point of the user's ...
Fabio's user avatar
  • 3,166
2 votes

design pattern for conditional behaviour depending on a client ID

IList<string> list = new List<string> { { "someClient" }, { "otherClient" } }; list.Contains(clientId); Use polymorphism and try to create ...
vin's user avatar
  • 267
2 votes

design pattern for conditional behaviour depending on a client ID

What about polymorphism? Entrypoint: function someFeature() { // eg: \MyCompany\ClientResponseBehaviour\AwkwardClientBehaviour $clientResponseBehaviour = Client::Get(client_id_here)->...
Yarimadam's user avatar
  • 121
2 votes

Should you allow user to override normal behavior

Is it a good design choice to allow a "admins" user to override the course's behavior when they register an user to a course. There is nothing inherently wrong with this, as long as this fits to what ...
Doc Brown's user avatar
  • 220k
2 votes
Accepted

Does "behaviour" describe exact output?

Sure, the behaviour of a program is essentially its output. What else is there to test? The point seems rather to be that your supervisor has a much narrower view than you of what the requirements of ...
Kilian Foth's user avatar
1 vote

Is there a term/pithy law that represents the idea that the time it takes for an automated process to run, changes the way a developer works?

I read about the Observe Orient Decide Act loop ages ago, I'm not sure its "pithy" but it's something people recognise as a real issue in the way people get stuff done. The idea is that in a ...
Ewan's user avatar
  • 84.4k
1 vote

A single sequence diagram for the whole system?

I cannot imagine how a single sequence diagram could work. It would be most probably less readable than the code itself, though maybe (just maybe) it's doable. Yet, doesn't bring a value so no, don't ...
Ister's user avatar
  • 859
1 vote

Can REST resources represent behaviour?

Am I missing something? A little bit, maybe. REST is the architectural style of the world wide web; it a collection of constraints that were used in the 1990s to aid the development of the HTTP/1.1 ...
VoiceOfUnreason's user avatar
1 vote

Can REST resources represent behaviour?

I think you might be missing the whole REST-wars of the 2010s (or thereabouts). That was the time when the current interpretation (CRUD, Swagger/OpenAPI, etc.) of REST started to establish itself. ...
Robert Bräutigam's user avatar
1 vote

Can REST resources represent behaviour?

REST as a concept relies on the HTTP Method to be your verb. I.e. you GET a resource, or change it by POST, PATCH, or PUT. For simple Create, Read, Update, Delete (CRUD) behavior this maps well. If ...
Berin Loritsch's user avatar
1 vote
Accepted

Representing handlers on UML diagrams

I don't think there's a general answer to your question. You have to take the cases one-by-one, since the devil is in the details. This means that during execution data will be passed first to ...
Fuhrmanator's user avatar
  • 1,475
1 vote

design pattern for conditional behaviour depending on a client ID

This problem is big. It's bigger than the strategy pattern. It's bigger than the bridge pattern. Is's bigger than polymorphism it self. This is nothing less then a good reason to use a dependency ...
candied_orange's user avatar

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