Blake Lively suffers ANOTHER legal blow in bid to have Justin Baldoni pay her legal fees days after settlement
Multimillionaire businessman, 51, found dead in locked room after fight with his 'childhood sweetheart' wife over airline tickets, inquest hears
The car was a write-off and my partner was in intensive care. But I seemed fine... until ten years later: Crippling anxiety crept up out of nowhere and almost ruined my life. Here's how I learned to manage it
Representative Line: Underscore Its Unimportance
Frequent submitter Argle (previously), sends us a short little representative line. The good news is that this line of code came across Argle's screen during a code review: it was being removed. The bad news is that it was sitting in the code base for ages.
_ = len / 8.0f;Argle writes:
In a code review today. A co-worker wisely removed the line. Dunno the logic that made anyone write it in the first place.
This is C#, though it could be basically any language. Using _ is one of those little conventions that we use to tell the linter to ignore the fact that this variable isn't used. And this variable was not being used. Of course, in addition to being unused, it's also a puzzle: where does the 8.0f come from? No one knows. Why would we even want the length divided by eight? No one knows. There's nothing about this code that gives any indication that it was a meaningful operation at any point.
No one knows what it does, or why it was there in the first place, but someone put the time into making sure the linter didn't complain about its uselessness by using _ as the variable.