Feed aggregator
Amazon Has Paused Some Data Center Lease Commitments, Wells Fargo Says
Read more of this story at Slashdot.
Cursor AI's Own Support Bot Hallucinated Its Usage Policy
Read more of this story at Slashdot.
Wine 10.6 Released
Read more of this story at Slashdot.
Teen Coder Shuts Down Open Source Mac App Whisky, Citing Harm To Paid Apps
Read more of this story at Slashdot.
EU Says It Will Enforce Digital Rules Irrespective of CEO and Location
Read more of this story at Slashdot.
FTC Sues Uber Over Deceptive Subscription Billing Practices
Read more of this story at Slashdot.
Google Faces Off With US Government in Attempt To Break Up Company in Search Monopoly Case
Read more of this story at Slashdot.
Verizon Consumer CEO Says Net Neutrality 'Went Literally Nowhere'
Read more of this story at Slashdot.
Invasion of the 'Journal Snatchers': the Firms That Buy Science Publications and Turn Them Rogue
Read more of this story at Slashdot.
The FBI Can't Find 'Missing' Records of Its Hacking Tools
Read more of this story at Slashdot.
Over 100 Public Software Companies Getting 'Squeezed' by AI, Study Finds
Read more of this story at Slashdot.
We May Have Already Hit Peak Booze
Read more of this story at Slashdot.
Should the Government Have Regulated the Early Internet - or Our Future AI?
Read more of this story at Slashdot.
Space Investor Sees Opportunities in Defense-Related Startups and AI-Driven Systems
Read more of this story at Slashdot.
Pope Francis Has Died
Read more of this story at Slashdot.
CodeSOD: The Variable Toggle
A common class of bad code is the code which mixes server side code with client side code. This kind of thing:
<script> <?php if (someVal) { ?> var foo = <? echo someOtherVal ?>; <?php } else { ?> var foo = 5; <?php } ?> </script>We've seen it, we hate it, and is there really anything new to say about it?
Well, today's anonymous submitter found an "interesting" take on the pattern.
<script> if(linkfromwhere_srfid=='vff') { <?php $vff = 1; ?> } </script>Here, they have a client-side conditional, and based on that conditional, they attempt to set a variable on the server side. This does not work. This cannot work: the PHP code executes on the server, the client code executes on the client, and you need to be a lot more thoughtful about how they interact than this.
And yet, the developer responsible has done this all over the code base, pushed the non-working code out to production, and when it doesn't work, just adds bug tickets to the backlog to eventually figure out why- tickets that never get picked up, because there's always something with a higher priority out there.
[Advertisement] Keep all your packages and Docker containers in one place, scan for vulnerabilities, and control who can access different feeds. ProGet installs in minutes and has a powerful free version with a lot of great features that you can upgrade when ready.Learn more.Return-to-Office Policies Are Impacting Neurodivergent Workers
Read more of this story at Slashdot.
Should College Application Essays Be Banned?
Read more of this story at Slashdot.
Can You Run the Llama 2 LLM on DOS?
Read more of this story at Slashdot.
Airbus Promised a 'Green' Hydrogen Aircraft. That Bet Is Now Unraveling
Read more of this story at Slashdot.