Reputation
468
Next privilege 500 Rep.
Access review queues
Badges
2 11
Impact
~19k people reached

  • 0 posts edited
  • 0 helpful flags
  • 96 votes cast
Dec
16
awarded  Popular Question
Dec
15
comment Choosing between Dependency Inversion and Dependency “Delegation” to a third module
Nice! So do you thing it is correct to say that ThunderDome module, using a Master class, could also inject the Blaster dependency into it? And what would be a sensible way for the ThunderDome module to get/create an instance of Blaster in the first place? Mind that am not currently using any dependency injection / IoC framework, and don't plan to do so unless unavoidable.
Dec
15
revised Choosing between Dependency Inversion and Dependency “Delegation” to a third module
edited title
Dec
15
asked Choosing between Dependency Inversion and Dependency “Delegation” to a third module
Dec
15
revised What question is answered by DDD?
added 31 characters in body
Dec
14
awarded  Yearling
Dec
14
answered What question is answered by DDD?
Nov
17
comment How to write unit tests for an application that mostly performs “hard to test” actions?
For the record: I have read the duplicates, and I agree: 1) they are duplicates; 2) anyone interested in this question of mine can find the answers there.
Nov
17
comment How to write unit tests for an application that mostly performs “hard to test” actions?
@BЈовић I want to test EVERY of the items, including DSP, but I don't know how - that's why I asked the question.
Nov
17
asked How to write unit tests for an application that mostly performs “hard to test” actions?
Aug
13
comment Simplifying Some Probabilistic If-Then Spaghetti Code
Should ou really be calling for a different random each time (as in the four first calls to random(20))? Or should you actually create a single random number, and sequentially test if it is larger than 2, then 5, 14 and 18?
Aug
13
comment Excessive LINQ chaining - Is it considered a code smell, and why?
@MichaelT thank you for your elaboration, it's a lot clearer to me now!
Aug
12
comment Excessive LINQ chaining - Is it considered a code smell, and why?
@RobertHarvey Excuse me, but I'm confused... The Law of Demeter is not an anti-pattern, it's a principle, isn't it? And I fail to see how a Train Wreck is not a violation of that law...
Aug
12
comment Is code like this a “train wreck” (in violation of Law of Demeter)?
That's the same suggested here: c2.com/cgi/wiki?TrainWreck "Create a method which represents the desired behavior and tells the client what to do. This follows the "tell, don't ask" principle. "
Aug
12
comment Excessive LINQ chaining - Is it considered a code smell, and why?
@RobertHarvey Well, some call it so... "The train wreck anti pattern occurs..." c2.com/cgi/wiki?TrainWreck
Aug
12
comment Excessive LINQ chaining - Is it considered a code smell, and why?
@outis Interesting! Since I posted the question in quest for a "well known name" for this smell / anti-pattern, would you say that "train wreck" is known enough that searching for it would guide me to what I need to know to solve it? Because if the answer is "yes", then you could put it as an answer (unless you can't do so because of the duplication issue).
Aug
12
asked Excessive LINQ chaining - Is it considered a code smell, and why?
Aug
8
revised MVVM in Photoshop-like application: What object has the responsibility for composing the document?
deleted 49 characters in body
Aug
8
comment MVVM in Photoshop-like application: What object has the responsibility for composing the document?
If you use an Image control instead of subclasses of Shape, you can bind a Source from the ViewModel, and from there you can render it in a lot of ways (DrawingImage/GeometryDrawing, RenderTargetBitmap, etc.). It is a good way to transfer visual knowledge from the View to the ViewModel without breaking the MVVM/DataBinding structure. It is also a way to have retained-mode drawing, so that now the model knows the lines are connected, and if you drag its connection, the underlying model will be changed and the View will update accordingly in a "smarter" way.
Aug
8
answered MVVM in Photoshop-like application: What object has the responsibility for composing the document?