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?

Tiger Data image

🐯 🚀 Timescale is now TigerData

Building the modern PostgreSQL for the analytical and agentic era.

Read more

Top comments (1)

Collapse
 
ayhan_dev profile image
Ayhan sarsl

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

Gen AI apps are built with MongoDB Atlas

Gen AI apps are built with MongoDB Atlas

MongoDB Atlas is the developer-friendly database for building, scaling, and running gen AI & LLM apps—no separate vector DB needed. Enjoy native vector search, 115+ regions, and flexible document modeling. Build AI faster, all in one place.

Start Free

👋 Kindness is contagious

Discover this thought-provoking article in the thriving DEV Community. Developers of every background are encouraged to jump in, share expertise, and uplift our collective knowledge.

A simple "thank you" can make someone's day—drop your kudos in the comments!

On DEV, spreading insights lights the path forward and bonds us. If you appreciated this write-up, a brief note of appreciation to the author speaks volumes.

Get Started