Computer
Waymo Robotaxi Hits a Child Near an Elementary School in Santa Monica
Read more of this story at Slashdot.
Seven of the World's Ten Best-Selling Smartphones in 2025 Were iPhones
Read more of this story at Slashdot.
Nothing CEO Says Company Won't Launch New Flagship Smartphone Every Year 'For the Sake of It'
Read more of this story at Slashdot.
'Hundreds' of Gatik Robot Delivery Trucks Headed For US Roads
Read more of this story at Slashdot.
FBI Seizes RAMP Cybercrime Forum Used By Ransomware Gangs
Read more of this story at Slashdot.
Brandon Sanderson's Literary Fantasy Universe 'Cosmere' Picked Up by Apple TV
Read more of this story at Slashdot.
Representative Line: Honorable Conjunctions
Doreann has touched this particular function many, many times. In all those times, she never noticed this particular little line, dropped in by a third-party contractor that has long since cashed their check and wandered off to other things.
(user?.betaMode || !user?.betaMode) && (specialRuleCode())My suspicion is at some point, the specialRuleCode was only supposed to run if the user was signed up for beta features. At some point, it left beta and was supposed to run for all users. I imagine the requirement was "it should also run if the user is not in the beta," and thus it was implemented exactly that way.
Of course, the real WTF isn't the tautological condition: it's (ab)using logical operators to control whether a branch runs. That, I imagine, made some developer feel like they were being clever. "user?.betaMode && specialRuleCode is so much more concise than an if statement!" they said to themselves while typing this.
Honestly, that kind of "clever" is not something I'd expect from a third party contractor. It makes me think the original line started in-house by a "clever" developer, and the third party added the || portion in just the dumbest way to implement the requirement given to them.
Either way, Doreann is ashamed that it's lingered this long in the code base, writing:
dishonor for it being there
dishonor for me not recognizing this
dishonor on my whole family
I'm just glad that we're finally breaking through and getting readership in the Klingon developer community.
[Advertisement] Plan Your .NET 9 Migration with ConfidenceYour journey to .NET 9 is more than just one decision.Avoid migration migraines with the advice in this free guide. Download Free Guide Now!
Extremophile Molds Are Invading Art Museums
Read more of this story at Slashdot.
Fully Electric Vehicle Sales In EU Overtake Petrol For First Time In December
Read more of this story at Slashdot.
Kernel Community Drafts a Plan For Replacing Linus Torvalds
Read more of this story at Slashdot.
French Lawmakers Vote To Ban Social Media Use By Under-15s
Read more of this story at Slashdot.
Software Company Bonds Drop As Investors' AI Worries Mount
Read more of this story at Slashdot.
Apple Tells Patreon To Move Creators To In-App Purchase For Subscriptions
Read more of this story at Slashdot.
Google Says AI Agent Can Now Browse on Users' Behalf
Read more of this story at Slashdot.
US Cyber Defense Chief Uploaded Sensitive Files Into a Public Version of ChatGPT
Read more of this story at Slashdot.
Amazon is Ending Its Palm ID System for Retail, Amazon One, as It Closes Physical Stores
Read more of this story at Slashdot.
Urban Expansion in the Age of Liberalism
Read more of this story at Slashdot.
Cancer Might Protect Against Alzheimer's
Read more of this story at Slashdot.
Experian's Tech Chief Defends Credit Scores: 'We're Not Palantir'
Read more of this story at Slashdot.
There's a Rash of Scam Spam Coming From a Real Microsoft Address
Read more of this story at Slashdot.
