⚠️ Malware / Trojaner / VirenMalicious npm package found in Antfarm Tech proof_of_dev coding assignment(17.09.2026 um 11:09 Uhr)
🪟 Windows TippsAxeos erhält ISO 9001:2015-Zertifizierung(17.09.2026 um 10:00 Uhr)
🤖 Android TippsAxeos erhält ISO 9001:2015-Zertifizierung(17.09.2026 um 10:00 Uhr)
🔧 ProgrammierungQ&D: Flutter App and Android-SDK(17.09.2026 um 10:00 Uhr)
🔧 ProgrammierungThe Code Worked. Then I Started Asking What Happens Next.(17.09.2026 um 10:00 Uhr)
🔧 ProgrammierungRegular Expressions Without the Fear(17.09.2026 um 10:00 Uhr)
⚠️ Malware / Trojaner / VirenMalicious npm package found in Antfarm Tech proof_of_dev coding assignment(17.09.2026 um 11:09 Uhr)
🪟 Windows TippsAxeos erhält ISO 9001:2015-Zertifizierung(17.09.2026 um 10:00 Uhr)
🤖 Android TippsAxeos erhält ISO 9001:2015-Zertifizierung(17.09.2026 um 10:00 Uhr)
🔧 ProgrammierungQ&D: Flutter App and Android-SDK(17.09.2026 um 10:00 Uhr)
🔧 ProgrammierungThe Code Worked. Then I Started Asking What Happens Next.(17.09.2026 um 10:00 Uhr)
🔧 ProgrammierungRegular Expressions Without the Fear(17.09.2026 um 10:00 Uhr)
🔧 Programmierung 🕛 vor 6 Monaten 2 Min Lesezeit
0

What’s the Worst Advice AI Has Given You? Here’s Mine.

↗ Quelle (dev.to)
🗣️ Stimme:
📑 Inhaltsübersicht

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 an environment variable in your Docker image.”




Wait… what?



Put a private API key inside a public Docker image?



To be clear, environment variables themselves are fine.

The problem was baking the secret into the image during build time, which would expose it to anyone pulling or inspecting the public image.



I explained this to ChatGPT.



It responded with the classic:




“You are right!”




…and suggested storing it securely in Azure.



End of the story?



Of course not.



Just a few messages later, in the same context window, ChatGPT again suggested putting the private API key into the public Docker image as an environment variable.



That was the moment I realized:



AI isn’t production-ready yet, at least for security advice. 😄









The interesting shift



We used to review junior developers’ code carefully.



Now we also need to review code written by something that sounds like a senior engineer but occasionally behaves like an intern on their first day.









Discussion




  • What’s the most ridiculous suggestion AI or ChatGPT has ever given you?

  • Do you review AI-generated code differently than human-written code?



I’d love to hear real examples from the community.

Vollständiger Original-Artikel
Den kompletten Beitrag mit allen Details direkt auf dev.to lesen.
↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 0%
🟡 In Evaluierung 0%
🟢 Keine Auswirkung 0%
Spannende Innovation 0%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
2 Quellen
Axeos erhält ISO 9001:2015-Zertifizierung
1 Quelle
Amazon bietet Soundcore-In-Ears zum ersten Mal günstiger an: Mit ANC, Dolby Atmos & mehr Highlights
1 Quelle
Höllenmaschine HMX 6 im Halo-Design – passend zum Spiele-Release!
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten What’s the Worst Advice AI Has Given You? Here’s Mine.

Thematisch verwandte Begriffe: Whats, Worst, Advice, Given · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...