By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
World of SoftwareWorld of SoftwareWorld of Software
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Search
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
Reading: This keeps your code hallucination-free
Share
Sign In
Notification Show More
Font ResizerAa
World of SoftwareWorld of Software
Font ResizerAa
  • Software
  • Mobile
  • Computing
  • Gadget
  • Gaming
  • Videos
Search
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Have an existing account? Sign In
Follow US
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
World of Software > News > This keeps your code hallucination-free
News

This keeps your code hallucination-free

News Room
Last updated: 2026/05/17 at 6:56 PM
News Room Published 17 May 2026
Share
This keeps your code hallucination-free
SHARE

Detect hallucinations

Despite these precautions, hallucinations can “slip through.” The good news: These are often easier to recognize in code than in applications. Finally, it is executable and can also be tested.

1. Evaluate AI code with AI

It may sound strange, but AI assistants are actually very good at examining AI-generated code for hallucinations.

For example, Daniel Lynch, CEO of marketing company Empathy First Media, suggests: “Write supporting documentation for the code so that the AI ​​can evaluate it in a new instance – and determine whether it meets the requirements of the targeted use cases.”

2. Maintain human control

In the eyes of many IT and development professionals, human expertise is the last line of defense against AI hallucinations. Mithilesh Ramaswamy, senior engineer at Microsoft, also sees it as critical to success that human developers keep the reins: “AI should serve as a guide – not as a source of truth. Accordingly, you should view AI-generated code as a suggestion and not as a replacement for human expertise.”

However, this should not only apply to the programming work, but also to the code itself, as CTO Rehl suggests: “If you are unfamiliar with a code base, it can be difficult to spot hallucinations.”

The technology decision maker states that a close hands-on relationship with one’s own code is what helps.

3. Test code

Fortunately, tools and techniques that are already used in most companies can also detect AI hallucinations – to identify human errors.

“Development teams should continue to conduct pull requests and code reviews as if the code had been written by humans,” says Confluent expert Sellers. It is tempting for developers to use AI tools primarily to automate more and implement the continuous delivery approach – this is laudable, but it is also extremely important to prioritize appropriate quality assurance controls.

“It can’t be overstated how important it is to use good linting tools and SAST scanners throughout the development cycle,” says Brett Smith, Distinguished Software Developer at SAS. He adds: “IDE plugins, CI integrations and pull requests are the bare minimum to prevent hallucinations from making their way into production.”

According to Salesforce manager Banerjee, a mature DevOps pipeline, where every line of code is subjected to a unit test, is also essential: “The pipeline only advances the code to staging and production phases once tests and builds have passed.”

4. Highlight AI-generated code

To make code generated by AI more visible, Devansh Agarwal, machine learning engineer at AWS, has a trick up his sleeve: “Use the code review interface to highlight the parts of the codebase that are AI-generated.”

According to the ML expert, this not only helps detect hallucinations: “It can also be a great learning opportunity for everyone in the team. Sometimes these tools do great work that is worth imitating.”

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Email Print
Share
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article Getting started with the Huawei Pura 80 Pro: a purely frustrating experience Getting started with the Huawei Pura 80 Pro: a purely frustrating experience
Next Article Railway on austerity course: streamlining should end billions in losses Railway on austerity course: streamlining should end billions in losses
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow

Latest News

To detect dark matter, follow gravitational waves!
To detect dark matter, follow gravitational waves!
Computing
Railway on austerity course: streamlining should end billions in losses
Railway on austerity course: streamlining should end billions in losses
Software
Getting started with the Huawei Pura 80 Pro: a purely frustrating experience
Getting started with the Huawei Pura 80 Pro: a purely frustrating experience
Mobile
AI for All: Malta is giving away ChatGPT Plus to its citizens – under one condition
AI for All: Malta is giving away ChatGPT Plus to its citizens – under one condition
Gadget

You Might also Like

New IT roles are putting AI to the test
News

New IT roles are putting AI to the test

7 Min Read
8 tips on how companies can become diverse and inclusive
News

8 tips on how companies can become diverse and inclusive

6 Min Read
Body Language: What you need to know about body language
News

Body Language: What you need to know about body language

7 Min Read
The best smart rings in the test
News

The best smart rings in the test

14 Min Read
//

World of Software is your one-stop website for the latest tech news and updates, follow us now to get the news that matters to you.

Quick Link

  • Privacy Policy
  • Terms of use
  • Advertise
  • Contact

Topics

  • Computing
  • Software
  • Press Release
  • Trending

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

World of SoftwareWorld of Software
Follow US
Copyright © All Rights Reserved. World of Software.
Welcome Back!

Sign in to your account

Lost your password?