- Feature Articles
- CodeSOD
- Error'd
-
Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Ah, a classical waste of type info implementation. Always noice to see those in projects, they are a big sign post of things to come.
Admin
In C++ such class are sometimes used for disambiguing constructors that would otherwise be the same.
Admin
TRWTF is that it doesn't implement an interface, right? :P
Admin
The cache cow has blessed this code.
Admin
At least it avoids the other hard problem: Cache invalidation.
Admin
Comment held for moderation.
Admin
You guys really need to stop posting nonsense like "Gulf of America" exists :-)
Admin
Google believes the nonsense: https://www.google.com/maps/place/New+Orleans,+LA/@28.8933855,-94.7756446,6z/data=!4m6!3m5!1s0x8620a454b2118265:0xdb065be85e22d3b4!8m2!3d29.9508941!4d-90.0758356!16zL20vMGYydGo?entry=ttu&g_ep=EgoyMDI1MDIwNS4xIKXMDSoJLDEwMjExMjMzSAFQAw%3D%3D
Admin
Yeah, I know it was a funny day. First here in Austria selecting the English language on google resulted in the German name being shown ("Golf of Mexiko") for a few hours. And now we have "Gulf of Mexico (Gulf of America)" - and apparently this topic is highly political in the US now with especially on reddit mods having a field day. I personally just find it hilarious honestly, it's so American (aka extra special :D).
Admin
"It's always no one understanding what they're doing.", except when it's DNS
Admin
Certainly looks like an invalid cache.
Admin
When I first read that, I skipped the "naming things", and thought the story was about "off by one errors", and then turned into a caching story. Talk about "off by one errors"!!!
Admin
Well, real programmers count from zero: zeroth, first, second.
Admin
That actually works as a cache in JavaScript (TypeScript, etc.), which this probably is.
SimpleCache.foo = 1;
Admin
… so it's really an off-by-zero-error?
Admin
I bet there was once some policy of "no object literals, class instances only", and someone had to work around it.