It's Our Party
by in Error'd on 2024-05-24...and we'll cry though we really don't want to.
Celebrant Joe cheered "Happy birthday DailyWTF! My gift to you, yet another date related Error'd for the pile."
...and we'll cry though we really don't want to.
Celebrant Joe cheered "Happy birthday DailyWTF! My gift to you, yet another date related Error'd for the pile."
Alan worked on a website which had a weekly event which unlocked at 9PM, Saturday, Eastern Time. The details of the event didn't matter, but this little promotion had been running for about a year and a half, without any issues.
Until one day, someone emailed Alan: "Hey, I checked the site on Sunday, and the countdown timer displays 00:00:00
."
We're all used to Java class names that are… verbose.
Arno sends us a representative Java line, which demonstrates that this doesn't end with class names.
Visual Studio and the .NET languages support a feature known as "regions". Enclosing a block of code between #region SomeName
and #endregion
creates collapsible regions in the text editor.
It can, in principle, help you organize your code. It does, in practice, make code like this, from Mark, possible.
Good method names are one of the primary ways to write self-documenting code. The challenge there, is that documentation often becomes out of date.
Take this delectable PHP nugget, from Nathaniel P, who has previously been tortured by bad date handling.
This week we have an unusual number of submissions involving dates or timestamps. That is, the usual sorts of error'ds, but unusually many of them.
Gerald E. chuckled "I do love the back to the future movies. But now I can see Beck from the future."
Today's a simple one. We've all seen code that relies too heavily on string concatenation and eschews useful methods like Join
.
Nick L sends us this VB.Net example, written by a slew of mechanical engineers.