Reputation
256
Next privilege 300 Rep.
Create new tags
Badges
1 9
Newest
 Scholar
Impact
~1k people reached

  • 0 posts edited
  • 0 helpful flags
  • 24 votes cast
Jan
17
comment MVC controller and decoupling explained
ok thank you @MikeDunlavey
Jan
16
comment MVC controller and decoupling explained
@MikeDunlavey thank you for explanation. Just one more question, what you mean by saying M should not "know about" V. How they work together?
Jan
15
comment MVC controller and decoupling explained
@MikeDunlavey are you sure this has something to do with my problem? I even didn't understand what it was about? Could you explain in 2 words what is your invention.
Oct
18
accepted Strategy pattern and “Is a” relationship
Oct
18
asked Direct Dependency Injection and Logger
Oct
18
asked Dynamic configuration of the software
Oct
10
comment Do we need servant pattern? What about implementing in parent class?
@DavidArno in C++ you don't have an interface at all. All are classes and all implementations are via inheritance. So it is just a matter of a term you use.
Oct
10
comment Do we need servant pattern? What about implementing in parent class?
When they implement Movable interface that means they inherit from Movable which means they are from the same hierarchy. :)
Oct
10
asked Do we need servant pattern? What about implementing in parent class?
Sep
16
asked MVC controller and decoupling explained
Aug
21
comment Strategy pattern and “Is a” relationship
I could not really read your diagram. As much as I understand it is to set another parameter before the call of matchCount and again call? Could you please write a code in C++ or Java or C# to demonstrate your diagram? Thanks!
Aug
21
comment Strategy pattern and “Is a” relationship
It calculates match count based on different criteria. So as criteria changes you need to provide more data so that it could count some items in some storage based on that criteria. Please if you see any good way of doing, please write a sample code. I followed @BartvanIngenSchenau approach and created not connected hierarchy for each family, but I am not sure this was the right thing to do.
Aug
21
comment Strategy pattern and “Is a” relationship
How to inject them, in CTOR? I need to inject them before each call of matchCount. It sounds to me that I need a method called config that injects. But now I will have the same problem with config, right? I should ask how I should polymorphically use conifg if it has different number params?
Aug
21
accepted “Is a” relationship or, in other words Inheritance
Aug
20
comment Strategy pattern and “Is a” relationship
@BenAaronson agree.
Aug
20
comment “Is a” relationship or, in other words Inheritance
So you suggest to have completely different interfaces for different type of "Eaters". I think if you cannot interchange the implementations such as for Man eat(food) cannot make sense, then this means Man cannot be derived from IAnimal, or IEater.
Aug
20
comment Strategy pattern and “Is a” relationship
Sorry, actual problem is so hard to explain. I have tried to abstract with simple examples.
Aug
20
comment Strategy pattern and “Is a” relationship
@BenAaronson please look at my other question: programmers.stackexchange.com/questions/294132/…
Aug
20
comment Strategy pattern and “Is a” relationship
How can overloads work, if I want to use IAlgos interchangeably? Maybe I don't get your point. Could you elaborate more on overloads, please? Optional arguments smell, if we have lots of them but one only several. And messages sound like downcast will be needed.
Aug
20
comment Strategy pattern and “Is a” relationship
Nice question, thanks! Each user uses one family. Users are divided to families. There is a IUser and here are IUserA, IUserB and IUserC.