Computer
Anthropic Asks Job Applicants Not To Use AI In Job Applications
Read more of this story at Slashdot.
Microsoft Paint Gets a Copilot Button For Gen AI Features
Read more of this story at Slashdot.
NetChoice Sues To Block Maryland's Kids Code, Saying It Violates the First Amendment
Read more of this story at Slashdot.
Air Force Documents On Gen AI Test Are Just Whole Pages of Redactions
Read more of this story at Slashdot.
Why Even Physicists Still Don't Understand Quantum Theory 100 Years On
Read more of this story at Slashdot.
Trump Orders Creation of US Sovereign Wealth Fund, Says It Could Buy TikTok
Read more of this story at Slashdot.
Anthropic Makes 'Jailbreak' Advance To Stop AI Models Producing Harmful Results
Read more of this story at Slashdot.
Cloudflare Rolls Out Digital Tracker To Combat Fake Images
Read more of this story at Slashdot.
Levels of Microplastics in Human Brains May Be Rapidly Rising, Study Suggests
Read more of this story at Slashdot.
OpenAI's New Trademark Application Hints at Humanoid Robots, Smart Jewelry, and More
Read more of this story at Slashdot.
New Bill Aims To Block Foreign Pirate Sites in the US
Read more of this story at Slashdot.
AI Won The Beatles a Grammy 55 Years After They Broke Up
Read more of this story at Slashdot.
Meta's Investment in Virtual Reality on Track To Top $100 Billion
Read more of this story at Slashdot.
Ubuntu's Dev Discussions Will Move From IRC to Matrix
Read more of this story at Slashdot.
CodeSOD: No Limits on Repetition
Just because you get fired doesn't mean that your pull requests are automatically closed. Dallin was in the middle of reviewing a PR by Steve when the email came out announcing that Steve no longer worked at the company.
Let's take a look at that PR, and maybe we can see why.
$originalUndrawn = DecimalHelper::toDecimal($party->limit)->sub(DecimalHelper::toDecimal($party->drawn));This is the original code, which represents operations on investments. An investment is represented by a note, and belongs to one or more partys. The amount that can be drawn is set by a limit, which can belong to either the party or the note.
What our developer was tasked with doing was allow a note to have no limit. This means changing all the places where the note's limit is checked. So this is what they submitted:
if ($note->limit == null) { $originalUndrawn = DecimalHelper::toDecimal($party->limit)->sub(DecimalHelper::toDecimal($party->drawn)); } else { $originalUndrawn = DecimalHelper::toDecimal($party->limit)->sub(DecimalHelper::toDecimal($party->drawn)); }You'll note here that the note limit isn't part of calculating the party limits, so both branches do the same thing. And then there's the deeper question of "is a null really the best way to represent this?" especially given that elsewhere in the code they have an "unlimited" flag that disables limit checking.
Now, Steve wasn't let go only for their code- they were just a miserable co-worker who liked to pick fights in pull request comments. So the real highlight of Steve's dismissal was that Dallin got to have a meaningful discussion about the best way to make this change with the rest of the team, and Steve didn't have a chance to disrupt it.
[Advertisement] Keep the plebs out of prod. Restrict NuGet feed privileges with ProGet. Learn more.Will Cryptomining Facilities Change Into AI Data Centers?
Read more of this story at Slashdot.
Google Stops Malicious Apps With 'AI-Powered Threat Detection' and Continuous Scanning
Read more of this story at Slashdot.
Boeing Acquires Spirit AeroSystems, While Boeing's 'Starliner' Unit Gets a New VP
Read more of this story at Slashdot.
OpenAI Holds Surprise Livestream to Announce Multi-Step 'Deep Research' Capability
Read more of this story at Slashdot.
Mozilla Adapts 'Fakespot' Into an AI-Detecting Firefox Add-on
Read more of this story at Slashdot.