Tech layoffs 2026: Over 92,000 tech jobs vanished by May 2026, with April seeing the worst layoffs in two years. US tech giants like Meta, Microsoft, and Amazon are cutting staff, citing AI efficiencies and past over-hiring. Despite job cuts, major tech firms are investing heavily in AI, signaling a significant industry shift.
On that note, I had latest Claude Opus xhigh write me some code.
If a user passed an empty string to the
user_idfield it would give them access to everyone’s data. How that worked was a check like “if user_id: # add user id to query”. Empty strings are falsy in Python, so empty user id retrieves all data.A function later on was filtering these results out coincidentally, but not specifically. So if this shipped, in a month when someone updated the code, we’d be allowing an empty login form to access all user data.
This is the slop getting shipped by AI code assistants. This is why I am rewriting the whole project manually.
It could also suggests your codebase doesn’t have solid patterns
This was pretty close to a green field project.
This was one of the very first functions written after the db models were created.
deleted by creator