Blake Lively's private texts with Taylor Swift WILL be released in Justin Baldoni lawsuit saga
Scientists have finally FOUND the universe's 'missing matter': Elusive substance is discovered in 10 million degree filament - addressing a decades-long mystery
Silicon Valley Execs Join the Army As Officers
Read more of this story at Slashdot.
Jude Bellingham is AGAIN caught in X-rated rant at an official - just days after Thomas Tuchel admitted his own mother is REPULSED by Real Madrid star's on-pitch behaviour
I'm an American visiting the UK - the heat DOES feel different here and I don't know how Brits survive
The reason Brooklyn Beckham has decided to set up home in LA with wife Nicola Peltz is revealed as couple's £11m Hollywood mansion exposes new twist in family feud
Million-pound home listings more than double since 2019... but are they selling for that much?
Air India plane crash Brit says he is wracked with guilt that he survived - and reveals twist of fate he believes may have cost his brother his life
Doomed superyacht Bayesian will be brought to the surface within days in £20m Italian salvage operation ten months after it sank in storm killing seven including Brit tycoon
Time is running out to curb climate change: Window to avoid 1.5°C of warming will close in just 3 YEARS if CO2 emissions continue at current rate, scientists warn
Experts pinpoint simple mindset change that could slash the risk of early dementia
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!
Sneaky Serpentine#Cloud slithers through Cloudflare tunnels to inject orgs with Python-based malware
A sneaky malware campaign slithers through Cloudflare tunnel subdomains to execute in-memory malicious code and give unknown attackers long-term access to pwned machines.…