13,673 reputation
1741
bio website
location Brno, Czech Republic
age
visits member for 2 years, 10 months
seen 1 hour ago

Apr
30
answered Thread priorites - how to?
Apr
30
awarded  design-patterns
Apr
29
comment DDD - map or object
Highly depends on situation. And I don't like how people are often reluctant to create new classes. Primitive obsession is not a good thing.
Apr
29
comment How much trouble can the use of Singleton class as Model cause?
@cap7 Refactor it. Slowly and carefully.
Apr
29
answered How much trouble can the use of Singleton class as Model cause?
Apr
28
comment Fastest way to determine if a value is in a list?
Do you know maximum possible value? How many bits does the int (or uint) you are using have?
Apr
28
comment Fastest way to determine if a value is in a list?
Can you elaborate on the second point? Can you maybe batch the searches? By "same place" you mean that following number might be close to previous one? What do you mean by "target area"? Why are you using map when you don't need key/value store?
Apr
24
answered How to use DDD to solve a common address situation?
Apr
23
comment Best way to represent time related event during a day in a graph
You are probably looking for some kind of "calendar" control and not a chart.
Apr
23
answered Why have many programmers moved to using exception handling for input or output?
Apr
23
comment Is String processing more complex than number processing in programming languages?
Define "complex", define "string processing", define "number processing".
Apr
22
comment Interface Segregation Principle and casting
Looking at your examples, I believe you have much worse problems than calling of an interface. I would start by separating the UI from the workflow/logic and getting rid of the whole "out string reason" stuff. Also, the second example doesn't even use the interfaces. You can do same thing with just property saying what type of terminal it is. And as much as lambdas are nice, you are simply abusing them, making problems even worse.
Apr
22
comment Interface Segregation Principle and casting
Can you at least include more detail about how those methods can be called and how their return values might be used?
Apr
22
comment Interface Segregation Principle and casting
"CheckDevices called only once.", yet you are saying "checks spread through the whole system", you are contradicting yourself. "It can't be called from the bankTerminal itself." Why not? If it is same class, why not?
Apr
22
comment Interface Segregation Principle and casting
While I see your problem, I can't help you without seeing detailed architecture of your application. In your example, I would ask why CheckDevicesCanBeConnected is not called from Start. Where exactly has CheckDevicesCanBeConnected called? Before every method? Is there any workflow in which methods need to be called?
Apr
22
comment Generics in C# Test Class
What kind of test it is when you are not asserting anything?
Apr
21
answered Simulating a Production Line
Apr
12
comment how are virtual methods slower in C#
@JeroenVannevel The example is call site. It differentiates it based on how the method itself is actually defined.
Apr
12
awarded  Popular Question
Apr
10
comment What to tell a manager who tells your estimates are too much for a genuine task
It is hard to admit, but this. If said manager doesn't understand that YOU are the one with experience and that YOU are going to do the actual work, then there is no salvation.