I dont care what day it is! If I say it's Tuesday it's Tuesday!
-
Found in an actively used campaign mail class:
public override void Send() {
Send(EmailSourceID.CampaignEmail, DayOfWeek.Tuesday.ToString());
}
I can only pray nobody is actually using this method anywhere.
-
@certusdex said:
I can only pray nobody is actually using this method anywhere.
They're using it, but only on Tuesday.
-
That would make sense if campaign mails weren't sent on the first 5 and last 5 days of the month - there's no requirement anywhere for them to be sent any specific day of the week.
-
Just override the ToString method of the enum structure so it returns the name of the current day. Problem solved.
-
@certusdex said:
That would make sense if campaign mails weren't sent on the first 5 and last 5 days of the month - there's no requirement anywhere for them to be sent any specific day of the week.
mails?
-
@certusdex said:
That would make sense if campaign mails weren't sent on the first 5 and last 5 days of the month - there's no requirement anywhere for them to be sent any specific day of the week.
mails?
-
@certusdex said:
That would make sense if campaign mails weren't sent on the first 5 and last 5 days of the month - there's no requirement anywhere for them to be sent any specific day of the week.
mails?
-
*emails.
-
@certusdex said:
*emails.
...and emails is better than mails?
Why do programmers...and so-called programmers...insist upon baby talk?
-
Because I'm not a pedantic twit?
-
@Renan said:
Just override the ToString method of the enum structure so it returns the name of the current day. Problem solved.
Looks like C# to me rather than Java, and C# enums are rather closer to C ones than Java ones.
-
-
Me, I'm just wondering why an email send function takes a day as a parameter.
-
@lolwtf said:
Filed under: editing my post increments my post count?
Who knows, maybe it's counting HTTP POSTs?
-
@SilentRunner said:
Yes, it is, because although "mail" is an uncountable noun, "email" by conventional usage is not.@certusdex said:
*emails.
...and emails is better than mails?
I received an email from my friend yesterday. I received two emails from my friend the day before that.
If you were talking about snail-mail, you'd have to say "letter" and "letters"(*), but because the word "email" refers both to the transit system and to the individual items conveyed by that system, it has a countable form.
(*) - inb4 "But what if it was a postcard or a parcel?"
-
That could consume an entire post all on it's own. Lets just leave it at this - the company I work for is extremely staging-table happy. To the point where anything must be sent to at least one, but preferably two staging tables before it actually hits a live table. Oh and we rolled our own in-house email solution. 145m+ emails in a single sql table. Yay.