Computer
Waymo Cars Honk at Each Other Throughout the Night, Disturbing SF Neighbors
Read more of this story at Slashdot.
AI PCs Made Up 14% of Quarterly PC Shipments
Read more of this story at Slashdot.
Ask Slashdot: Could Apple Survive If It Had To Pay a 30% 'Apple Tax'?
Read more of this story at Slashdot.
Jobhunters Flood Recruiters With AI-Generated CVs
Read more of this story at Slashdot.
SpaceX Announces First Human Mission To Ever Fly Over the Planet's Poles
Read more of this story at Slashdot.
Horses Can Plan and Strategize, New Study Shows
Read more of this story at Slashdot.
Milky Way May Escape Fated Collision With Andromeda Galaxy
Read more of this story at Slashdot.
CodeSOD: Disable This
One of the first things anyone learns about object oriented programming is the power of inheritance and overriding functions. Isn't it great that you can extend or modify the implementation of a function in your derived classes? Don't you wish you could just do that for every function? Aash's co-worker certainly does.
@Override public boolean isEnabled() { if (!super.isEnabled()) { return false; } return true; }I think this is a beautiful little smear of bad code, because it's useless on multiple levels. First, we are calling a boolean function only to bury it in a conditional which does the exact same thing: return super.isEnabled() would do the job. But if our developer thought to do that, they'd instantly see that there's no point to adding an override- we're just doing what the super class does. The if is just enough to hide that from you if you're careless and not very bright.
And, before you ask, no, there never was any real functionality in this override, at least not that ever got checked into source control. It isn't a vestigial leftover of once useful code. It's just useless from birth.
[Advertisement] Continuously monitor your servers for configuration changes, and report when there's configuration drift. Get started with Otter today!Excess Memes and 'Reply All' Emails Are Bad For Climate, Researcher Warns
Read more of this story at Slashdot.
Reservoir of Liquid Water Found Deep In Martian Rocks
Read more of this story at Slashdot.
Locking Up Items To Deter Shoplifting Is Pushing Shoppers Online
Read more of this story at Slashdot.
Google Wallet Widely Rolling Out 'Everything Else' Pass Creator In the US
Read more of this story at Slashdot.
Federal Appeals Court Finds Geofence Warrants Are 'Categorically' Unconstitutional
Read more of this story at Slashdot.
FBI Investigating After Trump Campaign Says It Was Hacked
Read more of this story at Slashdot.
Replika CEO Says It's OK If We Marry AI Chatbots
Read more of this story at Slashdot.
Stratasys Sues Bambu Lab Over Patents Used Widely By Consumer 3D Printers
Read more of this story at Slashdot.
UK Treasury Sparks Row Over Use of AI To Handle Taxpayer Complaints
Read more of this story at Slashdot.
Canceling Subscriptions Should Be As Easy As Signing Up, Newly Proposed federal Rule Says
Read more of this story at Slashdot.
US Colleges Slash Majors in Effort To Cut Costs
Read more of this story at Slashdot.
Apple Approves iDOS 3 Following Emulator Rule Change
Read more of this story at Slashdot.