- 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
Haven't we seen this sort of thing before, in almost exactly these terms?
Wasn't one of the answers that it could be used as a callback in some other context, where document.write could not?
Admin
It could be written before deprecation, and the app barely being maintained after that.
Admin
Bah, no, I misremembered what the reason was. See, however, https://thedailywtf.com/articles/Amazingly-Brilliant-or-Incredibly-Stupid from December 2009...
Admin
All CMSes are like thaat because they aren't written, but accrue.
Admin
This is a known Microsoft-sanctioned workaround for the Eolas patent problem.
Admin
That was a fun read. I liked this bit at the end of the first page: "...the idea of compressing the production code was kind of dropped in a hurry."
Which of us is in bizarro world, that poster from 15 years ago or me?
Admin
And yes, I found it slightly unnerving that I remembered enough about the one from fifteen years ago to be able to re-find it.
Admin
Ah, but this way they only get the deprecation warning in one place in the code...
Admin
My IDE keeps complaining that
document.write
is deprecated. Now I only call it once.Edit Admin
That "helper" is the kind of function a younger me would have written as a debug helper such that I could comment it out in "production" code.
Then an older me would have found that decades later in an hopefully dead archived repository and realize how green younger me used to be.