Yup, and it's so often PHP
No, but that's only because I have so little respect for "tech journalism" that I can be bothered to pay attention.
localpost262936dit... totally says php at the top, too
Ranchonyx567736dHehe I wrote a java thingy for that.
It was fun.
frogstair1308236dIt's always php because of the cryptic syntax, it seems more code-ey
*me heats up the iron frying pan*
It's spanking time....
"Some tribal knowledge from another system makes this check necessary."
I can't believe anyone enjoys that language. Just the sheer verbosity of what should be a Mailer(Strategy)(Record) slays me. Java or C# that whole expression would just be a builder or deconstruction pattern.
Fluent Interfaces are no problem at all...
The thing that really pisses me off - and this is true for any language - that you should _never_ take input from a request and stuff it in "somewhere".
If done properly... That would be an DTO.
And that DTO would be passed to an service.
And that service would _exactly_ like you said use an pattern to send the mail via the _internal_ mailing library, which is completely hidden for the user of the service.
I really want to spank people with hot frying iron pans who take this as an screenshot because it's so utter poor garbage code that shouldn't even exist.