- 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
TRWTF is the tags on that StackOverflow question.
Edit Admin
Frankly, TRWTF is the entire question, and the entirety of all the answers.
The answers didn't really seem to actually answer the question, and, as written, the question was incoherent with itself (OP assigns to
aandb, and then computes the difference betweenallStudentsArrrayandpresentStudentsArray, and wonders why it doesn't return the set difference betweenaandb...).Admin
Also a good way to track the number of readers of TDWTF. There were 751 views on that issue just now.
Admin
It was, however, repeated multiple times throughout the codebase, because the entire codebase was a pile of copy-pasta glued together with the bare minimum code to make it work. In at least one place, the comment was probably correct and helpful. But it got swept up as part of a broader copy/paste exercise.
Admin
It also wasn't in a block of code that was doing anything with either lodash, Mongoose, or set differences. It was, however, repeated multiple times throughout the codebase.
Edit Admin
Looking at some lodash helper methods, they're WTF, too. 🤷♂️🤣
Edit Admin
It's nice how "commenters" helpfully copy/paste some of the article text into their comments. It's helpful for anyone who reads the comments before reading the article.
Edit Admin
Is your comment an example of Poe's Law or do we get to insult you?
Edit Admin
I work in a similar codebase. I've stopped reading comments because they are almost always copy/pasted from a similar, but different piece of code. The code isn't self-documenting, either. Weeeee.
Admin
This reminds me of how genomes mutate and evolve. The useful pieces of code may get duplicated and then take on slightly different roles. Other junk that happens to be near the useful bits gets to tag along and spread too.
Admin
Now the view count for that issue is 920, so that's about 170 views. Less than 500 daily dailywtf visitors?
Edit Admin
I'd guess so as well. Both 500 front page visitors and a 33% click-through rate yields 170 visitors. Both of those numbers seem reasonable.