79807758

Date: 2025-11-03 10:42:09
Score: 1
Natty:
Report link

Currently, I have a system with a server, and multiple clients (clients can come and go). There is a single configuration that lists all the expected clients with their settings. For clients that are not in that list, a default empty settings should be sent.

Therefore I'm using singleton pattern for the default settings, because each not-listed client shares the same settings, and should access it when connects and ask for their settings. Default settings defined as a constant.

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
Posted by: zerocukor287