Re:Your DI framework is killing your code
by anton_gogolev on Tuesday September 29, 2015 @10:31AM
(#10296524)
> Couldn't you just add a new SendMethod optional parameter
Adding an optional parameter to an already existing method is not always a backwards-compatible change. For example, in C# this will effectively change method signature and break API.
Re:Your DI framework is killing your code
by mistermann on Tuesday September 29, 2015 @11:40AM
(#10297084)
Holy cow it seems it seems you're right:
http://haacked.com/archive/2010/08/10/versioning-issues-with...
http://haacked.com/archive/2010/08/12/more-optional-versioni...
...yet I've used this technique for years in VB.Net without issue....weird.
Is this approach is so dangerous (as we're constantly told) why has it never caused me any problems? Maybe I'm missing something but I've never read an article that explains what it is I'm missing in a way that clicks.