440 reputation
213
bio website
location
age
visits member for 2 years, 9 months
seen Nov 28 at 20:47

Oct
23
awarded  Popular Question
Jul
2
awarded  Curious
Mar
15
awarded  Yearling
Dec
2
awarded  Popular Question
Jul
26
awarded  Popular Question
Mar
15
awarded  Yearling
Mar
12
awarded  Nice Question
Jan
22
answered Does “Inversion of Control” promote “Anemic Domain Model”?
Jan
22
comment How to program object-oriented with a DI framework?
"Rich Domain" appears to me as a name for normal classes invented by people who are obsessed with EJB or Spring and don't want to admit that they drifted into the procedural world and are not programming OO anymore.
Jan
22
accepted Dilemma of QA vs. iterations
Jan
19
comment How to program object-oriented with a DI framework?
To avoid turning this into a chat: an explanation or example of how one of the mentioned patterns can be implemented with injected objects would help.
Jan
19
comment Is there something like a polymorphic Singleton?
When it's a Singleton and contains the path to the ZIP archive then you can handle only one ZIP archive in the entire app. I guess that's not what you want.
Jan
19
comment How to program object-oriented with a DI framework?
Okay, I can just call a setter on the Context (in the example above) when I'm sure that I'm the only one using this instance of Context. But it could also be injected as a singleton, right? Then I can't be sure if another user of this instance is overwriting my choice.
Jan
19
comment How to program object-oriented with a DI framework?
Also see here: stackoverflow.com/questions/4176520/…
Jan
19
comment How to program object-oriented with a DI framework?
I've added an explanation to the question. Was too long for the comments here.
Jan
19
revised How to program object-oriented with a DI framework?
added 544 characters in body
Jan
19
comment How to program object-oriented with a DI framework?
You're describing how a DI framework works, not how the problems I describe can be solved. I don't challenge that a DI framework internally uses OOP. I challenge that a program that uses a DI framework can be OO. But you make a good point that Java is not a suitable language for DI-based systems. Which supports my point that it's not intended for DI, but for OO.
Jan
19
comment How to program object-oriented with a DI framework?
Re. 1: What you describe is not the strategy pattern. Re. 2: My observation is that DI projects don't use such factories but use code-only and data-only classes. It's not seen as a bad thing by people who advocate DI. Re 3: I was interested in how this "done right" actually looks like :). Re 4: If such factories are able to inject managed objects to the new object they create, they cause the problem I described. If they don't inject managed objects, they are off-topic.
Jan
19
asked How to program object-oriented with a DI framework?
Jan
18
comment Dilemma of QA vs. iterations
So what you're basically saying is that QA's work and entailed bug fixing is handled separately from the iterations. That effectively underpins my argument that QA cannot be incorporated in the iterations. It's an answer I can well live with. :)