Feed aggregator
Appeals Court Questions TikTok's Section 230 Shield for Algorithm
Read more of this story at Slashdot.
Russian Government Hackers Found Using Exploits Made By Spyware Companies NSO and Intellexa
Read more of this story at Slashdot.
AI Giants Pledge To Share New Models With Feds
Read more of this story at Slashdot.
Top Movie Piracy Ring Taken Down, Major Studios' Enforcement Group Claims
Read more of this story at Slashdot.
ESPN's 'Where To Watch' Tries To Solve Sports' Most Frustrating Problem
Read more of this story at Slashdot.
Yelp Sues Google For Antitrust Violations
Read more of this story at Slashdot.
Canada Wildfires Last Year Released More Carbon Than Several Countries
Read more of this story at Slashdot.
Representative Line: Null Ability
The addition of nullable or optional types to mainstream languages was a net good. It doesn't completely solve the billion dollar mistake, but it makes it far easier to write safe code.
For most of us anyway.
Sam found this representative line, which shows how one of his peers understand nullable types to work:
DateTime? current = new DateTime?();I actually don't think I've ever seen anyone create an instance of the nullable wrapper directly, like this. I've never contemplated doing it. The more traditional usage would be something like:
DateTime? current = someFunctionWhichMayReturnAValueOrNull();We don't know if we got a null or not, but because it's wrapped in a nullable type, we can still handle it safely without risking a null reference exception.
Instantiating a nullable type directly results in a nullable type that is known to be empty. Which I can imagine some uses for, I suppose, but still seems like a real weird choice. And it's unclear- if you really wanted that, you'd just do DateTime? current = null; which is a more obvious way to say the same thing.
In the end, I'm not certain this is actually a WTF, but it still perplexes me. And it's a representative line- this pattern appears everywhere in Sam's codebase, with enough frequency that it's more of a surprise when people use nullables the standard way.
[Advertisement] Continuously monitor your servers for configuration changes, and report when there's configuration drift. Get started with Otter today!Brain Scientists Finally Discover the Glue That Makes Memories Stick For a Lifetime
Read more of this story at Slashdot.
'Uncertainty' Drives LinkedIn To Migrate From CentOS To Azure Linux
Read more of this story at Slashdot.
Backpage.com Founder Michael Lacey Sentenced To 5 Years In Prison, Fined $3 Million
Read more of this story at Slashdot.
South Korea Faces Deepfake Porn 'Emergency'
Read more of this story at Slashdot.
FAA Grounds SpaceX's Falcon 9 Rocket Following Landing Mishap
Read more of this story at Slashdot.
Cybercrime and Sabotage Cost German Firms $300 Billion In Past Year
Read more of this story at Slashdot.
Google To Relaunch Tool For Creating AI-Generated Images of People
Read more of this story at Slashdot.
Threads Deepens Its Ties To the Fediverse
Read more of this story at Slashdot.
The Papers That Most Heavily Cite Retracted Studies
Read more of this story at Slashdot.
Office Usage Has Peaked in North America
Read more of this story at Slashdot.
Telegram CEO Indicted in Paris Court
Read more of this story at Slashdot.
OpenAI in Talks for Funding Round Valuing It Above $100 Billion
Read more of this story at Slashdot.