Feed aggregator
Japan Sees Nuclear as Cheapest Baseload Power Source in 2040
Read more of this story at Slashdot.
Congress Funds Removal of Chinese Telecom Gear as Feds Probe Home Router Risks
Read more of this story at Slashdot.
NHTSA Will Require Audible Seatbelt Reminders For Everyone In the Car
Read more of this story at Slashdot.
Astronauts Who Flew To Space Aboard Starliner Face Additional Delay
Read more of this story at Slashdot.
CodeSOD: Zero Competence
Michael had a co-worker who was new to the team. As such, there was definitely an expected ramp-up time. But this new developer got that ramp up time, and still wasn't performing. Worse, they ended up dragging down the entire team, as they'd go off, write a bunch of code, end up in a situation that they couldn't understand why nothing was working, and then beg for help.
For example, this dev was tasked with adding timestamps to a set of logging messages. The logs had started as simple "print" debugging messages, but had grown in complexity and it was time to treat them like real logging.
This stumped them, as the following C# code only ever printed out a zero:
DateTime d = new DateTime(); int timestamp = d.Minute + d.Second + d.Millisecond; Console.WriteLine(timestamp + message);On one hand, this is a clear example of not understanding operator overloading- clearly, they understood that + could be used for string concatenation, but they seem to have forgotten that it could also be used for arithmetic.
I don't think this actually only ever printed out a zero. It certainly didn't print out a timestamp, but it also didn't print out a zero. So not only is the code bad, but the understanding of how it's bad is also bad. It's bad. Bad. Bad.
[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.Montana Supreme Court Upholds Right To 'Stable Climate System' For Youngsters
Read more of this story at Slashdot.
'World's First' Grid-Scale Nuclear Fusion Power Plant Announced In the US
Read more of this story at Slashdot.
Murder Mystery Solved By Google Street View
Read more of this story at Slashdot.
Hackers Can Jailbreak Digital License Plates To Make Others Pay Their Tolls, Tickets
Read more of this story at Slashdot.
New Shelly Smart Devices Have One-Mile Range, Thanks To Z-Wave
Read more of this story at Slashdot.
CDC Confirms First Human Case of Severe Bird Flu In US
Read more of this story at Slashdot.
Apple Reportedly Won't Launch an iPhone Subscription Service
Read more of this story at Slashdot.
Tracker Firm Hapn Spilling Names of Thousands of GPS Tracking Customers
Read more of this story at Slashdot.
China is Losing Interest in English
Read more of this story at Slashdot.
Coal Use To Reach New Peak - And Remain at Near-Record Levels For Years
Read more of this story at Slashdot.
US Government Tells Officials, Politicians To Ditch Regular Calls and Texts
Read more of this story at Slashdot.
EPA Lets California Set Its Own Stricter Emissions Standards Until 2035
Read more of this story at Slashdot.
OpenAI Brings ChatGPT To Landline
Read more of this story at Slashdot.
Nebraska Sues UnitedHealth Unit Over 100 Million Patient Data Breach
Read more of this story at Slashdot.
Australia Moves To Drop Some Cryptography By 2030
Read more of this story at Slashdot.