Computer
Representative Line: Broken Up With
Marco found this wreck, left behind by a former co-worker:
$("#image_sample").html('<i><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />No image selected, select an image to see how it looks in the banner!</i>');This code uses the JQuery library to find an element in the web page with the ID "image_sample", and then replaces its contents with this hard-coded blob of HTML.
I really appreciate the use of self-closing, XHTML style BR tags, which was a fad between 2000 and 2002, but never truly caught on, and was basically forgotten by the time HTML5 dropped. But this developer insisted that self-closing tags were the "correct" way to write HTML.
Pity they didn't put any thought in the "correct" way to add blank space to page beyond line breaks. Or the correct way to populate the DOM that isn't accessing the inner HTML of an element.
At least this was a former co-worker.
[Advertisement] ProGet’s got you covered with security and access controls on your NuGet feeds. Learn more.Microplastics Hinder Plant Photosynthesis, Study Finds
Read more of this story at Slashdot.
New Zealand's $16 Billion Public Health System Runs on a Single Excel Sheet
Read more of this story at Slashdot.
Photographers Are on a Mission to Fix Wikipedia's Famously Bad Celebrity Portraits
Read more of this story at Slashdot.
Asana CEO Announces Retirement, Stock Plummets 25%
Read more of this story at Slashdot.
Bluesky CEO Jay Graber Pokes Fun At Mark Zuckerberg With Latin Phrase T-Shirt
Read more of this story at Slashdot.
Internet Shutdowns At Record High In Africa As Access 'Weaponized'
Read more of this story at Slashdot.
Wine Releases Framework Mono 6.14
Read more of this story at Slashdot.
Sony Experiments With AI-Powered PlayStation Characters
Read more of this story at Slashdot.
Apple Pulls iPhone 16 Ad Showing Off 'More Personal Siri'
Read more of this story at Slashdot.
Firmware Update Bricks HP Printers, Makes Them Unable To Use HP Cartridges
Read more of this story at Slashdot.
Microsoft To Launch Xbox Handheld in 2025, Next-Gen Consoles in 2027
Read more of this story at Slashdot.
Developer Convicted For 'Kill Switch' Code Activated Upon His Termination
Read more of this story at Slashdot.
Are Microplastics Bad For Your Health? More Rigorous Science is Needed
Read more of this story at Slashdot.
US Will Be 'Central' To Climate Fight, Says Cop30 President
Read more of this story at Slashdot.
Sony Says It Has Already Taken Down More Than 75,000 AI Deepfake Songs
Read more of this story at Slashdot.
Microsoft Admits GitHub Hosted Malware That Infected Almost a Million Devices
Read more of this story at Slashdot.
Feds Link $150M Cyberheist To 2022 LastPass Hacks
Read more of this story at Slashdot.
Volkswagen Bringing Back Physical Buttons, Says Removing Them Was a Mistake
Read more of this story at Slashdot.
How the AI Talent Race Is Reshaping the Tech Job Market
Read more of this story at Slashdot.