5 votes
Accepted

Is this architecture overkill? What is a good way to architect this software?

Your new approach isn't inherently wrong. However, there are a few things I would like to question here: Currently, the Algorithm.calculate function in your example contains almost no generic, astro-...
Doc Brown's user avatar
  • 206k
3 votes

Is this architecture overkill? What is a good way to architect this software?

If you just call your functions "Algorithm" and "Calculate" then it's hard to make a judgement about the structure of your code. Should Calculate1 through 5 be separate functions? ...
Ewan's user avatar
  • 74.5k
2 votes
Accepted

Algorithm for finding all combinations with constraints

This sounds like the kind of problem that would be straightforward to brute force, but if that leads to unmanageable combinatorial expansion, it will use some clever tricks to signficantly suppress ...
Flater's user avatar
  • 48.7k
1 vote

Optimize reservation system algorithm

First, I would strongly encourage you to impose some limits on reservations and time in use, otherwise the system seems like a worse version of "first come, first serve". But you and your ...
Jacob Raihle's user avatar
  • 1,732
1 vote

Optimize reservation system algorithm

If your reservation isn't specific regarding the time slot, it's not actionable. Such reservations are useless. The only bit of information that you have is "user X wants to use one of the ...
Hans-Martin Mosner's user avatar

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