
What’s the Worst Advice AI Has Given You? Here’s Mine.
I recently saw a meme about terrible legacy code on platform X and it gave me an idea for a discussion topic. A year ago, the classic developer question was: “What’s the worst code you’ve ever seen?” But our day-to-day work has changed. Maybe the real question now is: “What is the worst suggestion AI has ever given you?” I’ll start. I’ve happily survived plenty of questionable code: from “fast hotfixes” that didn’t even touch the root cause, to refactorings that added more complexity than my 15-years-younger self on OOP steroids. But this happened about a year ago and it still sticks in my mind: API key in a public Docker image I was working on a GitHub Action that builds a Docker image from my .NET REST API, pushes it to Docker Hub as a public image and then deploys it to Azure. Pretty straightforward, right? There was one small catch: the API uses a private API key to communicate with a third-party service. So I asked ChatGPT for advice. Its suggestion: “You can store this API key as
Continue reading on Dev.to
Opens in a new tab




