What’s is the best way to implement event handling system in C++ according to “clean code” principles?
I’m trying to implement event handler in C++ and make it easy to maintain, scale and test.
C# – Where should the payload classes be placed?
This is a question bothers me quite often. Every time I need to make the HTTP requests in JSON format I need to create classes for request and response. I still have no concrete idea how the payload classes should be placed. I’ve tried to write as an inner class of the class that needs the class as payload, usually, it turned out there are other classes that need to use the payload.