Computer
Axolotl Discovery Brings Us Closer Than Ever To Regrowing Human Limbs
Read more of this story at Slashdot.
MIT Chemical Engineers Develop New Way To Separate Crude Oil
Read more of this story at Slashdot.
macOS Tahoe Beta Drops FireWire Support
Read more of this story at Slashdot.
Publishers Facing Existential Threat From AI, Cloudflare CEO Says
Read more of this story at Slashdot.
Chinese Studios Plan AI-Powered Remakes of Kung Fu Classics
Read more of this story at Slashdot.
Microsoft 365 Brings the Shutters Down On Legacy Protocols
Read more of this story at Slashdot.
SpaceX Starship Explodes On Test Stand
Read more of this story at Slashdot.
The 16-Billion-Record Data Breach That No One's Ever Heard of
Read more of this story at Slashdot.
Hackers Are Turning Tech Support Into a Threat
Read more of this story at Slashdot.
Google is Using YouTube Videos To Train Its AI Video Generator
Read more of this story at Slashdot.
Reasoning LLMs Deliver Value Today, So AGI Hype Doesn't Matter
Read more of this story at Slashdot.
Apple Software Chief Rejects macOS on iPad
Read more of this story at Slashdot.
AI Ethics Pioneer Calls Artificial General Intelligence 'Just Vibes and Snake Oil'
Read more of this story at Slashdot.
Iran Tells Citizens To Delete WhatsApp
Read more of this story at Slashdot.
Amazon Orders Employees To Relocate To Seattle and Other Hubs
Read more of this story at Slashdot.
MIT Experiment Finds ChatGPT-Assisted Writing Weakens Student Brain Connectivity and Memory
Read more of this story at Slashdot.
New US Visa Rules Will Force Foreign Students To Unlock Social Media Profiles
Read more of this story at Slashdot.
Steam Beta Enables Proton On Linux For All Titles
Read more of this story at Slashdot.
Silicon Valley Execs Join the Army As Officers
Read more of this story at Slashdot.
CodeSOD: Using the Old Bean
If you write a lot of Java, you're going to end up writing a lot of getters and setters. Without debating the merits of loads of getters and setters versus bare properties, ideally, getters and setters are the easiest code to write. Many IDEs will just generate them for you! How can you screw up getters and setters?
Well, Dave found someone who could.
private ReportDatesDao reportDatesDao; @Resource(name = CensusDao.BEAN_NAME) public void setAuditDao(CensusDao censusDao) { this.reportDatesDao = reportDatesDao; }The function is called setAuditDao, takes a CensusDao input, but manipulates reportDatesDao, because clearly someone copy/pasted and didn't think about what they were doing.
The result, however, is that this just sets this.reportDatesDao equal to itself.
I'm always impressed by code which given the chance to make multiple decisions makes every wrong choice, even if it is just lazy copy/paste.
[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!