- 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
wtf.comment.frist = wtf.comment.exists
Admin
Another reason why the over reliance on JavaScript in modern web development is the real WTF.
Admin
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.
Admin
Hey, a WTF with a happy ending!
Admin
The real WTF is the missing line below:
initech.util.clamp = goog.math.clamp;
Admin
Is "[functionality]" censoring a curse word? :)
Admin
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
Admin
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
Admin
If you need an isDefAndNotNull utility function, your language is broken.