- 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
Edit Admin
I think the loop with the
ResourceHelper
might be a frist attempt at localization of the month names. Probably not the best way to do it, but not nearly as much of a WTF as the colors.Edit Admin
I'm with @Dragnslcr on the
ResourceHelper
stuff, both for what it's trying to be for and for its suboptimality.As for the
colors
stuff, I'm leaning toward it being a way to "pale out" ("grey out" using very pale colours) deactivated/disabled things.Note: not a good way of doing that (one should trust the browser to do something intelligent, or if the browser can't be trusted, one should use different CSS style IDs to indicate it(1)...), but just a way.
(1) And go for reduction-to-more-greyish rather than fade-to-pale, but ...
Admin
If this is Java, the best way would be to use DateFormatSymbols (https://docs.oracle.com/en/java/javase/24/docs/api/java.base/java/text/DateFormatSymbols.html). After all, why reinvent the wheel?
Admin
That doesn't look like JavaScript to me.
Edit Admin
That's not JavaScript... Probably Java.
Admin
Sometimes rockstars just explode.
Admin
I agree this is probably Java. Which means no browser to trust to do things. And I agree with Steve that this is greying out stuff, and I'll add that it's probably an afterthought to the original design. Good, no. Horrible, probably not.
Edit Admin
Rock star developers were more rock stars (drinking and partying hard) than developers, which explains everything.
Edit Admin
"After all, why reinvent the wheel?" Because the wheel wasn't invented here of course.