ch0.dev

My opinion on AI assisted coding

table of contents

Let’s define some words #

Before we start, I want to talk about what I personally think these words mean, as it will probably be good to know when reading this article.

Vibecoding #

Most people use the term vibecoding as an umbrella term for any code with AI involved in the process. This is (in my opinion) not accurate; the term should be used when the AI is the one writing code like adding features, changing existing features or in other ways substantially changing the codebase and/or the final product. If you let an AI agent write code for you, you then read it, understand it and can make your own changes to it, it is still vibecoding. You. Didn’t. Write. The. Code.

AI-assisted coding #

This is what most people should use when they say vibecoding; this is the actual umbrella term for all coding that uses AI to assist, debug or review code. It also includes people that use AI to learn or read documentation. Writing documentation also falls under this term.

My standing #

Alright, now the juicy part, my opinion on AI-assisted coding and the morals that come with it.

Straight vibecoding #

Let’s start with pure vibecoding, something that has become stupidly popular lately. I do not support vibecoding in any sense, and see it as morally wrong. This is especially when the final product is:

  • Not disclosed to be vibecoded
  • Sold for a price higher than 0
  • Advertised with terms like “I made”

Why do I see it as morally wrong (and wrong in general)? There are several reasons. For example, security and maintainability. AI has a really strong tendency to not only write unnecessary amounts of boilerplate, but also tends to take the shortest way to the end goal, ignoring and causing many security flaws in the process. In larger-scale systems that handle sensitive data or money, this is an actual concern that could lead to data breaches, failing systems, RCE and much more. Because of the boilerplate, combined with AI’s tendency to change many parts of the codebase it really didn’t need to touch, maintainability and expandability therefore quickly become unreasonable, especially for contributors not using AI, as the codebase grows.

Another large part of my disliking of vibecoding includes authorship. I consider (and think you should too) that someone prompting a product out of an AI and then sharing it as their own (including using “I made” or “I wrote”) is just as morally wrong as a supervisor telling an employee what to do and then taking the final product and claiming it as their own to the higher-ups.

Then there is honesty. The fact that vibecoders in general do not disclose their AI usage does not help the general community’s view on AI-written code (as someone that is in several subreddits daily, this is not an opinion but a fact, I’ve only seen a small percentage of clearly vibecoded projects actually disclose their AI usage, and most projects even deny it being vibecoded in the first place). If you are not willing to be honest and confident about your AI usage, why would I be confident in your project?

AI-assisted coding #

While I will not support, promote or show liking for people that let an agent write all their code, I will, however, be all for people using AI to:

  • Digest documentation and provide easier-to-read teaching material to learn something like a language or a library.
  • Debug code. While your first go-to shouldn’t be pasting errors to ChatGPT, it may be the best solution if you cannot figure it out on your own after trying to.

These are completely valid uses of AI as a tool. An example is the Big Walk devs. They were in a huge drama recently for using AI in their development process. It turns out that the AI used was a 10-line bugfix right before launch. This was their last resort after even talking to the fucking Unity team and not even them being able to find a fix.

In the final stretch of Big Walk’s development, LLMs were used sparingly by House House to help work through difficult technical challenges and bugs … We researched the problem extensively, and we looked at the URP code ourselves, but we couldn’t find a way. Then, we were able to speak directly to an engineer at Unity, who asked around and ultimately concluded that what we wanted wasn’t possible. Finally, we posed the question to an LLM chatbot. After a few dead ends, it suggested a possible fix, and while we had to modify the suggestion extensively, it worked. This fix represented about 10 lines of code inside URP. - House House, the devs behind Big Walk

And before you go “you just said AI writing code is vibecoding!”, I don’t consider AI writing a small bugfix to be vibecoding. What I mean when I say “AI-written code” refers to AI writing/adding new features or other large changes. Humans wrote it and then an AI just fixed it, just like I don’t see the issue with using AI to fix grammatical errors in texts.

Another example is my personal level of AI usage in my daily workflow. My main use of AI is documentation digestion. The Rust/Cargo doc system is absolutely amazing but many libraries don’t use it properly. This includes not giving directions on when and how to use it, and what it actually does. AI is great at interpreting the documentation as well as the codebase itself to supply actual examples, descriptions and explanations when it’s lacking.

It is also great at searching the web and explaining advanced concepts. I always try to use whatever resources are available for me, but recently I wanted to give osdev yet another go (after using Philip Oppermann’s guide the first time). I wasn’t able to find any easy-to-digest write-ups, blogs or guides that matched my goal (specifically a more in-depth guide or blog using modern Rust and Limine and that goes further in depth implementing stuff like processes and filesystems on x86_64). Yes, I did try to read resources like osdev.org and various blog posts but I could never really understand the concepts. What finally made it click and kickstarted my project was making an AI write a guide and then answer any questions I had for it, and I ended up using a prompt I wrote (and fine-tuned with Claude) that you can find here. I support using AI as a teacher or helping hand (as long as it doesn’t hallucinate!) instead of an employee; it shouldn’t do the work for you. Here is a great time to mention and highlight the Montessori teaching methods (which I am a strong believer in), “Help me do it myself”.