Feed aggregator
Bluesky Has an Extortion Problem
Read more of this story at Slashdot.
Legal Language Is Deliberately Arcane To Signal Power, Study Finds
Read more of this story at Slashdot.
Microsoft Abandons Xbox Exclusivity in Risky Gaming Strategy Shift
Read more of this story at Slashdot.
Microsoft Acquires Twice as Many Nvidia AI Chips as Tech Rivals
Read more of this story at Slashdot.
Salesforce Will Hire 2,000 People To Sell AI Products
Read more of this story at Slashdot.
US Weighs Banning TP-Link Router Over National Security Concerns
Read more of this story at Slashdot.
Brain Cells Mature Faster In Space But Stay Healthy, ISS Study Finds
Read more of this story at Slashdot.
SpaceX Wants Starbase To Become an Official City In Texas
Read more of this story at Slashdot.
Coded Smorgasbord: The Saddest Words: What If
Conditional statements, we would hope, are one of the most basic and well understood constructs in any programming language. Hope, of course, is for fools and suckers, so let's take a look at a few short snippets.
Our first installment comes from Jonas.
if (!checkAndDelete(Definitions.DirectoryName, currentTime)); //Empty statementI appreciate the comment, which informs us that this empty statement is intentional. Why it's intentional remains mysterious.
Jonas found this while going through linter warnings. After fixing this, there are only 25,000 more warnings to go.
Brodey has a similar construct, but from a very different language.
If (Session.Item(Session.SessionID & "Origional") IsNot Nothing) Then End IfI have to give bonus points for the origional spelling of "original". But spelling aside, there's a hint of something sinister here- we're concatenating strings with the SessionId- I don't know what is going wrong here, but it's definitely something.
Our last little snippet comes from Midiane. While not a conditional, it shows a misunderstanding of either booleans or comments.
$mail->SMTPAuth = false; // turn on SMTP authenticationThe comment clearly is out of date with the code (which is the main reason we shouldn't repeat what is in the code as a comment). At least, we hope the comment is just out of date. A worse scenario is that setting the flag equal to false enables it.
[Advertisement] Picking up NuGet is easy. Getting good at it takes time. Download our guide to learn the best practice of NuGet for the Enterprise.Driverless Bus Service In Scotland To Be Withdrawn Due To Lack of Interest
Read more of this story at Slashdot.
Ingram Micro To 'Stop Doing Business' With Broadcom, Downgrade To 'Limited Engagement' On VMware
Read more of this story at Slashdot.
Spain Introduces Bill To Combat Online Fake News
Read more of this story at Slashdot.
EU Opens Investigation Into TikTok Over Election Interference
Read more of this story at Slashdot.
China Kicks Off Homebrew Bluetooth Alternative 'Star Flash' As It Pushes Universal Remotes
Read more of this story at Slashdot.
Tech Entrepreneur Found Guilty of Cash App Founder Bob Lee's Murder
Read more of this story at Slashdot.
Japan's Honda and Nissan To Reportedly Begin Merger Talks
Read more of this story at Slashdot.
Companies Issuing RTO Mandates 'Lose Their Best Talent': Study
Read more of this story at Slashdot.
Big Loss For ISPs as Supreme Court Won't Hear Challenge To $15 Broadband Law
Read more of this story at Slashdot.
Hundreds of Websites To Shut Down Under UK's 'Chilling' Internet Laws
Read more of this story at Slashdot.
Pricing Software Adds Billions To Rental Costs, White House Says
Read more of this story at Slashdot.