Feed aggregator
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!
Scammers Use Google Ads To Inject Phony Help Lines On Apple, Microsoft Sites
Read more of this story at Slashdot.
Texas Instruments To Invest $60 Billion To Make Semiconductors In US
Read more of this story at Slashdot.
Major Oil Companies Face First 'Climate Death' Lawsuit
Read more of this story at Slashdot.
Apple Posts Strongest Two-Month iPhone Growth Since Pandemic
Read more of this story at Slashdot.
Midjourney Launches Its First AI Video Generation Model, V1
Read more of this story at Slashdot.
Austrian Government Agrees On Plan To Allow Monitoring of Secure Messaging
Read more of this story at Slashdot.
Napster and Sonos Sued For Millions In Unpaid Music Royalties
Read more of this story at Slashdot.
Facebook Now Supports Passkeys
Read more of this story at Slashdot.
Waymo's Robotaxis Are Coming Back to New York City
Read more of this story at Slashdot.
Google's Frighteningly Good Veo 3 AI Videos To Be Integrated With YouTube Shorts
Read more of this story at Slashdot.
Microsoft Planning Thousands More Job Cuts Aimed at Salespeople
Read more of this story at Slashdot.
Boeing 787's Emergency-Power System Likely Active Before Air India Crash
Read more of this story at Slashdot.
NFC Release 15 Extends Tap-to-Pay Range From 0.5cm To 2cm
Read more of this story at Slashdot.
Xbox President: We're Working To Ensure Windows Is the Number One Platform For Gaming
Read more of this story at Slashdot.
Insurers Want Businesses to Wake Up to Costs of Extreme Heat
Read more of this story at Slashdot.
British Watchdog Cracks Down on Data Collection by Smart TVs, Speakers And Air Fryers
Read more of this story at Slashdot.