Computer
Sony Quietly Downgrades PS5 Digital Edition Storage To 825GB at Same Price
Read more of this story at Slashdot.
Congress Asks Valve, Discord, and Twitch To Testify On 'Radicalization'
Read more of this story at Slashdot.
Flying Cars Crash Into Each Other At Air Show In China
Read more of this story at Slashdot.
Microsoft Favors Anthropic Over OpenAI For Visual Studio Code
Read more of this story at Slashdot.
Gemini AI Solves Coding Problem That Stumped 139 Human Teams At ICPC World Finals
Read more of this story at Slashdot.
Extreme Heat Spurs New Laws Aimed at Protecting Workers Worldwide
Read more of this story at Slashdot.
AI's Ability To Displace Jobs is Advancing Quickly, Anthropic CEO Says
Read more of this story at Slashdot.
Darkest Nights Are Getting Lighter
Read more of this story at Slashdot.
OpenAI Says Models Programmed To Make Stuff Up Instead of Admitting Ignorance
Read more of this story at Slashdot.
Corals Won't Survive a Warmer Planet, a New Study Finds
Read more of this story at Slashdot.
After Years of Resistance, Apple Might Finally Release a Touchscreen MacBook Pro
Read more of this story at Slashdot.
Business Insider Reportedly Tells Journalists They Can Use AI To Draft Stories
Read more of this story at Slashdot.
Is TV's Golden Age (Officially) Over? A Statistical Analysis
Read more of this story at Slashdot.
Anthropic Denies Federal Agencies Use of Claude for Surveillance Tasks
Read more of this story at Slashdot.
Gas Stove Makers Quietly Delete Air Pollution Warnings as They Fight Mandatory Health Labels
Read more of this story at Slashdot.
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.
