In my application I have a class, and each instance of this class shares part of an unmanaged resource. Sharing is facilitated by a manager o..
Tag : c++
I have used data-driven design in the past and it has worked quite well. What I dislike about it is if you need some form of a string whose value has to be updated based on other values.
e.g., “Exports %x percent of %y”. In that case you will need an extra column serving as an identifier, to tell which variable in your class will correspond with the conventional symbols %x and %y. Now, don’t get me wrong, there might be a way around this, but this is not the point of this thread (albeit I would not mind having an answer to this one as ..
I got a problem with lazy loading in combination with a foreach..
Consider (using Visual C++ as an exa..
I have read about Persistence Ignorance principle,
The ebook give some examples of violations of this principle, but I don’t understand. Could you please help me to give some ex..
I’ve recently caught an odd behaviour in my own coding: At some point in the last year I began creating protected static
methods to implement the logic of my public
methods, ensuring that the protected static
version contains all of the logic, but is not affected by ..
Closed 3 years ago
I’m currently writing a library in C++ and was wondering if I should log from within it. Googling the issue I came across this question but it makes reference to a logging facade. Is there anything equivalent for..
I know it is lot of code. But I am trying to understand the concept of Factory pattern with interfaces and base class. I have a base class of Car that implements an interface which will be implemented by every derived ..
I want to create a class ProcessHandler for Windows that pretty much uses the W..