• K. (unregistered)

    wtf.comment.frist = wtf.comment.exists

  • (nodebb)

    Another reason why the over reliance on JavaScript in modern web development is the real WTF.

  • (nodebb) in reply to DocMonster

    Another reason why the over reliance on JavaScript in modern web development is the real WTF.

    Add an insanely paranoid linter to your build pipeline and don your flame-proof armor so you can ignore all the protests and you'll be fine. There's a modern language buried under all that horrible backward compatibility crap. I too don't understand why people voluntarily choose to develop in javascript where they have a choice, but it still can be managed out of WTF territory.

  • Brian (unregistered)
    Goodbye Javascript!

    Hey, a WTF with a happy ending!

  • Anon (unregistered)

    The real WTF is the missing line below:

    initech.util.clamp = goog.math.clamp;

  • i be guest (unregistered)

    Is "[functionality]" censoring a curse word? :)

  • .. (unregistered) in reply to DocMonster

    I don't get how this relates. The issue here is that some guy implemented a function wrongly despite a correct utility function anyway existing. Nothing to do with relying on JavaScript, you may as well see this in C# or any other language

  • doubtingposter (unregistered) in reply to Anon

    well, that's fine as long as the function footprint is the same. But these guys were planning for extreme platform transparency, so if you swap to a different math library the footprint could be vastly different!

    Their approach is definitely a WTF, but if you assume the world is upside down at least apply glue to the ceiling :P

  • Future (unregistered)

    If you need an isDefAndNotNull utility function, your language is broken.

Leave a comment on “A Poor Facsimile”

Log In or post as a guest

Replying to comment #518076:

« Return to Article