• (nodebb)

    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?

  • (nodebb)

    It could be written before deprecation, and the app barely being maintained after that.

  • (nodebb)

    Bah, no, I misremembered what the reason was. See, however, https://thedailywtf.com/articles/Amazingly-Brilliant-or-Incredibly-Stupid from December 2009...

  • RLB (unregistered)

    All CMSes are like thaat because they aren't written, but accrue.

  • Richie Hindle (unregistered)

    This is a known Microsoft-sanctioned workaround for the Eolas patent problem.

  • (nodebb) in reply to Steve_The_Cynic

    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?

  • (nodebb)

    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.

  • Steve (not that one) (unregistered)

    Ah, but this way they only get the deprecation warning in one place in the code...

  • left-pad (unregistered)

    My IDE keeps complaining that document.write is deprecated. Now I only call it once.

  • (nodebb)

    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.

Leave a comment on “The Right Helper”

Log In or post as a guest

Replying to comment #:

« Return to Article