AINewsnow

"Review This Code" Is the Worst ChatGPT Prompt. Here Are 5 Better Ones for the Same Buggy Function.

This story is from 2026-10-09. It is preserved in the archive; the latest stories are on the live feed.

There is a bug in these six lines. Find it before you scroll. ` def get_discount ( price , user ): if user . is_premium : discount = 0.2 if price > 100 : discount = discount + 0.1 return price - price * discount ` Most of us would paste this into ChatGPT with three words: Review this code. It's the…

Read the full story at DEV Community — AI ↗

Timeline · 1 report

  1. 2026-10-09 11:45 · DEV Community — AI
    "Review This Code" Is the Worst ChatGPT Prompt. Here Are 5 Better Ones for the Same Buggy Function.

More stories

  1. GPT-6 and Intelligent UI for everyone — OpenAI News
  2. ChatGPT for Teens Is an ‘Unacceptable Risk,’ Watchdog Group Says — CNET AI
  3. OpenAI publishes 722 mathematical proofs & manuscripts — r/singularity
  4. Claude Pro vs ChatGPT Plus: which one is actually worth It? — r/ArtificialInteligence
  5. OpenAI caught Russians and Iranians using ChatGPT for influence campaigns — NPR Technology
  6. How Oracle Uses ChatGPT Work to Transform Recruitment — OpenAI YouTube
  7. How Oracle turns days of work into minutes with ChatGPT and Codex — OpenAI News
  8. Pollo AI turns creative ideas into campaigns with OpenAI — OpenAI News

Get the daily brief of stories like this at 6:30 every morning →