Feed aggregator
Linux Hits Another Desktop Market Share Record
Read more of this story at Slashdot.
Senators Propose 'Digital Replication Right' For Likeness, Extending 70 Years After Death
Read more of this story at Slashdot.
Argentina Will Use AI To 'Predict Future Crimes'
Read more of this story at Slashdot.
Microsoft Now Lists OpenAI as a Competitor in AI and Search
Read more of this story at Slashdot.
Jailed Cybercriminals Returned To Russia in Historic Prisoner Swap
Read more of this story at Slashdot.
Google Defeats RNC Lawsuit Claiming Email Spam Filters Harmed Republican Fundraising
Read more of this story at Slashdot.
FOSSA is Buying StackShare, a Site Used By 1.5 Million Developers
Read more of this story at Slashdot.
Chrome is Going To Use AI To Help You Compare Products From Across Your Tabs
Read more of this story at Slashdot.
AI Startup Suno Says Music Industry Suit Aims to Stifle Competition
Read more of this story at Slashdot.
Mozilla Follows Google in Losing Trust in Entrust's TLS Certificates
Read more of this story at Slashdot.
Reddit CEO Says Microsoft and Others Need To Pay To Search the Site
Read more of this story at Slashdot.
Laid-Off California Tech Workers Are Sick To Death of LinkedIn
Read more of this story at Slashdot.
Meta's Reality Labs Posts $4.5 Billion Loss In Second Quarter
Read more of this story at Slashdot.
New Study Simulates Gravitational Waves From Failing Warp Drive
Read more of this story at Slashdot.
CodeSOD: Location Chooser
Today's anonymous submitter inherited an application with a huge list of bugs and feature requests for missing features. While tracking down a bug, our submitter learned a lot about why "Allow additional stores to be viewable in the store selector," was an unimplemented feature.
if (inv.inv_storeloc == 0) { out.println("<option selected value=\"0\">Select</option>"); out.println("<option value=\"1\">Location 1</option>"); out.println("<option value=\"2\">Location 2</option>"); } else if (inv.inv_storeloc == 1) { out.println("<option selected value=\"1\">Location 1</option>"); out.println("<option value=\"2\">Location 2</option>"); } else { out.println("<option value=\"1\">Location 1</option>"); out.println("<option selected value=\"2\">Location 2</option>"); }If the user has not selected a store, we will output three options, selecting the first one- a prompt to select a store. If they have selected store 1, we output two options, with store one selected. Otherwise, we output two options with store two selected.
This has a little of everything. No real understanding of how to apply the selected attribute with a loop and conditionals. Hard coded HTML strings in the back end code. Hard coded store names which will be great if our business expands (or contracts).
I suspect the list of missing features isn't going to get much shorter, and the list of bugs is only going to get longer.
[Advertisement] BuildMaster allows you to create a self-service release management platform that allows different teams to manage their applications. Explore how!Scientists Propose Lunar Biorepository As 'Backup' For Life On Earth
Read more of this story at Slashdot.
CrowdStrike Is Sued By Shareholders Over Huge Software Outage
Read more of this story at Slashdot.
Taco Bell Is Bringing AI To Hundreds of Drive-Thrus Nationwide
Read more of this story at Slashdot.
Study Details 'Transformative' Results From LA Guaranteed Basic Income Program
Read more of this story at Slashdot.
Bending Spoons Buys File Sharing Service WeTransfer
Read more of this story at Slashdot.