AI Can Write Code Like Humans—Bugs and All

New tools that help developers write software also generate similar mistakes.
Security icons including a bug.
Illustration: Elena Lacey

Some software developers are now letting artificial intelligence help write their code. They’re finding that AI is just as flawed as humans.