Feed aggregator
Deep-Live-Cam Goes Viral, Allowing Anyone To Become a Digital Doppelganger
Read more of this story at Slashdot.
Companies Prepare To Fight Quantum Hackers
Read more of this story at Slashdot.
Six Ransomware Gangs Behind Over 50% of 2024 Attacks
Read more of this story at Slashdot.
US Considers a Rare Antitrust Move: Breaking Up Google
Read more of this story at Slashdot.
Google Makes Your Pixel Screenshots Searchable With Recall-like AI Feature
Read more of this story at Slashdot.
Google's Pixel 9 Lineup is a Pro Show
Read more of this story at Slashdot.
The Nation's Best Hackers Found Vulnerabilities in Voting Machines - But No Time To Fix Them
Read more of this story at Slashdot.
Copyright Group Takes Down Dutch Language AI Dataset
Read more of this story at Slashdot.
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.