Feed aggregator
Mozilla Thunderbird for Android is Almost Ready After 2 Years
Read more of this story at Slashdot.
Representative Line: Try to Catch This
The power of structured exception handling is that it allows every layer in our stack be notified of an error condition, do something about it, and pass it on if necessary.
For example, if you have a data access layer and a query fails, you may catch the exception and potentially retry there, only passing the exception up the stack after a few failures. Or, you may fail to connect, updates some internal status variables to represent that you're in an invalid state, and then pass that exception up the stack.
There are other options one might use for propagating errors, but many languages use structure exception handling.
Which brings us to today's anonymous submission, which is more of a representative comment than a representative line. This was in the public interface to the data access layer in a project:
// error handling for this class occurs in the functions that call them..This comment is half true. It's true in that the data access layer doesn't do a single bit of exception handling. It's false, in that the functions which call them also don't do any exception handling, unless you count "letting the exception bubble to the top of the stack and cause the program to fail" as "exception handling".
There wasn't a single try/catch in the entire project.
[Advertisement] Utilize BuildMaster to release your software with confidence, at the pace your business demands. Download today!800,000 Tons of Rock Excavated for Massive Underground Neutrino Detector
Read more of this story at Slashdot.
The Treasurer of Python NZ Pleads Guilty To Stealing From the Society
Read more of this story at Slashdot.
Insecure Robot Vacuums From Chinese Company Deebot Collect Photos and Audio to Train Their AI
Read more of this story at Slashdot.
US Police Seldom Disclose Use of AI-Powered Facial Recognition, Investigation Finds
Read more of this story at Slashdot.
Can Amazon Spread Its Cashierless 'Just Walk Out' Technology to Other Stores?
Read more of this story at Slashdot.
Pine64's Linux-Powered E-Ink Tablet is Making a Return
Read more of this story at Slashdot.
UK Post Office Executive Suspended Over Allegations of Destroying Software Scandal Evidence
Read more of this story at Slashdot.
New JWST Data Explores 'Hubble Constant' Tension for Universe's Expansion Rate
Read more of this story at Slashdot.
Google Starts Adding Anti-Theft Locking Features to Android Phones
Read more of this story at Slashdot.
Hobbyist Builds a Modern System That Still Runs MS-DOS
Read more of this story at Slashdot.
Brazil's Top Court Says X Paid Pending Fines to Wrong Bank
Read more of this story at Slashdot.
China Trained a 1-Trillion-Parameter LLM Using Only Domestic Chips
Read more of this story at Slashdot.
iOS and Android Security Scare: Two Apps Found Supporting 'Pig Butchering' Scheme
Read more of this story at Slashdot.
License Plate Readers Are Creating a US-Wide Database of More Than Just Cars
Read more of this story at Slashdot.
How Mossad Planned Its Exploding Pager Operation: Inside Israel's Penetration of Hezbollah
Read more of this story at Slashdot.
U.S. Wiretap Systems Targeted in China-Linked Hack
Read more of this story at Slashdot.
Criminal Charges Announced Over Multi-Year Fraud Scheme in a Carbon Credits Market
Read more of this story at Slashdot.
Plastic-Eating Bacteria Could Combat Pollution Problems, Scientists Hope
Read more of this story at Slashdot.