Feed aggregator
Bathroom Doomscrolling May Increase Your Risk of Hemorrhoids
Read more of this story at Slashdot.
Intel Outspends Rivals In R&D: 28% More Than Nvidia, 156% More Than AMD
Read more of this story at Slashdot.
Philips Hue Plans To Make All Your Lights Motion Sensors
Read more of this story at Slashdot.
Calling Boss a Dickhead Was Not a Sackable Offense, Tribunal Rules
Read more of this story at Slashdot.
Nepal Blocks Most Social Media Platforms
Read more of this story at Slashdot.
Germany Already Met Its 2028 Goal for Reducing Coal-Fired Power
Read more of this story at Slashdot.
OpenAI Plans Jobs Platform, Certification Program for AI Roles
Read more of this story at Slashdot.
Adobe's Premiere Video Editor is Coming To iPhone For Free
Read more of this story at Slashdot.
Solar-Powered Logitech Keyboard Appears on Amazon Mexico
Read more of this story at Slashdot.
Ultra-Processed Foods - It's Time For an Improved Definition
Read more of this story at Slashdot.
Nvidia Dominates GPU Shipments With 94% Share
Read more of this story at Slashdot.
Microsoft's 6502 BASIC Is Now Open Source
Read more of this story at Slashdot.
AI Not Affecting Job Market Much So Far, New York Fed Says
Read more of this story at Slashdot.
Robinhood CEO Vlad Tenev Says Investing For a Living Could Replace Labor in a Post-AI World
Read more of this story at Slashdot.
Atlassian Agrees To Acquire The Browser Co. For $610 Million
Read more of this story at Slashdot.
New AI Model Turns Photos Into Explorable 3D Worlds, With Caveats
Read more of this story at Slashdot.
India's AI Story Is 'All Talk, Little Substance,' Says Bernstein
Read more of this story at Slashdot.
Sweeteners Can Harm Cognitive Health Equivalent To 1.6 Years of Aging, Study Finds
Read more of this story at Slashdot.
Melvyn Bragg Steps Down From BBC Radio 4's In Our Time After 26 Years
Read more of this story at Slashdot.
Coded Smorgasbord: Basically, a Smorgasbord
It's that time to take a look at a few short snippets.
Boolean values can hold true or false. But is that truly self documenting? I think we need clearer variable names for this. Certainly, the snippet Nonymous found thinks so:
boolean isTrue = false;Well, at least I'll know if it's true or not. I'm not sure what "it" is in this scenario, but I'm sure that's the least important part of all of this.
If you've worked in C#, you're aware that it offers both a string type, and a String type- they're the same thing. So Colin's co-worker isn't wrong for writing code this way, but they're also wrong for writing code this way.
writer.WriteLine(string.Empty); writer.WriteLine(String.Empty);Billie sends us this short bit of Java, which ensures that nulls are properly handled:
if (val == null) { return null; } return val;It's very important that, if val is null, we don't just return the contents of val, we should return null instead. Y'know, so no one is surprised by an unexpected null. Wait a second…
Finally, Jon finds this comment in the codebase. The code is elided, but I Jon has helpfully summarized it.
// Basically, … several thousand lines of dense code containing no further commentsHonestly, I'm not sure if that comment is a statement of surrender or just an ironic joke. Either way, I get it.
.comment { border: none; } [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!