Feed aggregator
Permanent Standard Time Could Cut Strokes, Obesity Among Americans
Read more of this story at Slashdot.
China Tells Its Tech Companies To Stop Buying All of Nvidia's AI Chips
Read more of this story at Slashdot.
Scientists Find That Ice Generates Electricity When Bent
Read more of this story at Slashdot.
Representative Line: Brace Yourself
Today's representative line is almost too short to be a full line. But I haven't got a category for representative characters, so we'll roll with it. First, though, we need the setup.
Brody inherited a massive project for a government organization. It was the kind of code base that had thousands of lines per file, and frequently thousands of lines per function. Almost none of those lines were comments. Almost.
In the middle of one of the shorter functions (closer to 500 lines), Brody found this:
// }This was the only comment in the entire file. And it's a beautiful one, because it tells us so much. Specifically, it tells us the developer responsible messed up the brace count (because clearly a long function has loads of braces in it), and discovered their code didn't compile. So they went around commenting out extra braces until they found the offender. Code compiled, and voila- on to the next bug, leaving the comment behind.
Now, I don't know for certain that's why a single closing brace is commented out. But also, I know for certain that's what happened, because I've seen developers do exactly that.
.comment {border: none;} [Advertisement] Utilize BuildMaster to release your software with confidence, at the pace your business demands. Download today!A New Report Finds China's Space Program Will Soon Equal That of the US
Read more of this story at Slashdot.
ChatGPT Will Guess Your Age and Might Require ID For Age Verification
Read more of this story at Slashdot.
Microsoft Announces $30 Billion Investment In AI Infrastructure, Operations In UK
Read more of this story at Slashdot.
Fedora Linux 43 Beta Released
Read more of this story at Slashdot.
Taliban Leader Bans Wi-Fi In an Afghan Province To 'Prevent Immorality'
Read more of this story at Slashdot.
Consumer Reports Asks Microsoft To Keep Supporting Windows 10
Read more of this story at Slashdot.
Another Lawsuit Blames an AI Company of Complicity In a Teenager's Suicide
Read more of this story at Slashdot.
Verizon To Offer $20 Broadband In California To Obtain Merger Approval
Read more of this story at Slashdot.
Waymo Gets Green Light For Airport Service in San Francisco
Read more of this story at Slashdot.
Nature Editorial Calls for Rail Renaissance as Networks Mark 200 Years
Read more of this story at Slashdot.
Gearbox CEO Randy Pitchford Tells Borderlands 4 Critics To 'Code Your Own Engine,' Calls It a Game For 'Premium Gamers'
Read more of this story at Slashdot.
Perceived Importance of College Hits New Low
Read more of this story at Slashdot.
Apollo Explores Sale of Internet Pioneer AOL
Read more of this story at Slashdot.
Zoom CEO Latest Executive To Forecast Shortened Workweeks From AI Adoption
Read more of this story at Slashdot.
MBAs Cost More and Are Less Profitable as ROI Falls
Read more of this story at Slashdot.
The Mac App Flea Market
Read more of this story at Slashdot.