DEV Community

0 seconds of 0 secondsVolume 90%
Press shift question mark to access a list of keyboard shortcuts
00:00
00:00
00:00
 
Kevin Gilpin
Kevin Gilpin

Posted on

Should you accept an AI coding suggestion?

How do you know if you should accept an AI code suggestion? I’m a software engineer with 30 years of experience and I’ve built AI coding tools myself, including AppMap and OpenTips. In this vide, I break down how to analyze AI code suggestions to get the best results. I have a lot of experience doing this and I can quickly simplify this process down to its essential steps.

This video uses an example of an OpenTips AI suggestion for an iOS app. I discuss the two criteria that I use to decide if I want to accept the tip:

Is it needed?

1) Does it fill an essential gap in the user experience?
2) Does it fix a security problem?

Is the implementation correct?

1) Do I understand it? If not, is it worth the research?
2) Is it adding a new tool or library? It has to add something that would be hard to do myself.
3) Does it follow the conventions of the existing code?
4) Will it make the code simpler without breaking a lot of tests?

Top comments (1)

Collapse
 
ayhan_dev profile image
Ayhan sarsl

Отличная статья! Ваши критерии оценки AI-подсказок — особенно вопросы "Нужно ли это?" и "Правильно ли реализовано?" — действительно помогают структурировать процесс принятия решений. Недавно столкнулся с похожей ситуацией при использовании GitHub Copilot: он предложил решение, которое выглядело элегантно, но не соответствовало архитектуре моего проекта. Ваш подход помог бы мне быстрее это распознать. Спасибо за полезные советы!

Image of PulumiUP 2025

Let's talk about the current state of cloud and IaC, platform engineering, and security.

Dive into the stories and experiences of innovators and experts, from Startup Founders to Industry Leaders at PulumiUP 2025.

Register Now