Re:Your DI framework is killing your code
by anon1385 on Tuesday September 29, 2015 @09:05AM
(#10295929)
A 'sending mechanism' property on the email object that defaults to SMTP?
[ Parent
| on HN ]
Re:Your DI framework is killing your code
by smanzer on Tuesday September 29, 2015 @10:36AM
(#10296576)
This. There may be other reasons to dislike the email.send() formulation, but it seems like the need to support other mail APIs could be handled relatively easily within this type of OO approach through the use of default values.