750 reputation
1819
bio website
location
age
visits member for 3 years
seen May 6 at 5:23

May
14
awarded  Good Question
May
13
awarded  Popular Question
May
7
awarded  Yearling
Apr
2
awarded  Notable Question
Feb
25
awarded  Nice Question
Dec
24
awarded  Popular Question
Nov
7
awarded  Popular Question
Nov
7
awarded  Nice Question
Nov
7
accepted Is it good practice to rely on headers being included transitively?
Nov
7
asked Is it good practice to rely on headers being included transitively?
Aug
10
accepted C/C++: Which conversion warnings make sense in practice?
Aug
9
asked C/C++: Which conversion warnings make sense in practice?
Jul
5
awarded  Famous Question
Jul
2
awarded  Curious
May
7
awarded  Yearling
Apr
29
awarded  Notable Question
Jan
30
comment So Singletons are bad, then what?
Great explanation of DI, and I've been using DI extensively in the last few years. But I'd like to point out that occasionally, doing DI manually is unreasonably cumbersome, and some languages don't support automatic DI well, e.g. C++. I've found service locators (implemented as singletons, yes) to be a good alternative in those cases, they've got only a few of the weaknesses of singletons you identified above.
Jan
2
awarded  Notable Question
Dec
11
awarded  Critic
Dec
2
awarded  Nice Question