I’ve been using LLMs since I had to make them myself. And I started testing ChatGPT’s ability to code the week it came out. In the past month, I’ve seen so many articles about Claude.ai, that I decided to test it out for the second time. (The first time was when the term “vibe coding” had just been coined and people were making games with Claude.)
Claude is actually much better at some things than I expected. It still hallucinates, and it doesn’t always give the best answer IMO, but I have found it useful for small tasks like writing batch files. (I had to rename a few thousand audio files to snake_case and after some prompting, it wrote a perfectly capable script.)
My biggest problem is it goes above any beyond. I’ll be trying to remember the name of a function and so I’ll explain the function and tell it what I’m looking for, and it’ll pop back like a dozen possibilities with code examples, when all I wanted was the class name so I could go look it up.
Basically though, I use it like a search engine. Most recently I was working on importing KayKit models with a scrip, and I wanted the Barbarian and Barbarian_Large models to share the same material. So I checked every single KayKit model and found that when KayKit models use the same material, the always have an underscore to differentiate the types. Otherwise they are PascalCase. So I googled “godot 4 remove an underscore and any characters after it at the end of a string” and got bupkiss. The results weren’t super helpful, and the Google AI summary gave me like a 20-line solution. I knew this could be done as a one-liner.
Then I asked Claude the same thing. It output this:
Then it gave me 63 additional lines of example code.
What a waste of power and energy!
Here’s how I used it:
var material_path: String = GameConstants.MATERIALS_PATH + "kay_kit_models/" + str(owner_scene.name).rsplit("_", true, 1)[0].to_snake_case() + ".material"
Of course, if I’d given it context, I doubt I would have gotten a single line of code out of it.
All this is to say, that if you scope it down enough, I think LLMs can be useful. Do I let it write my code? Hell no! But if I was sharing it, would I tag my code as created or assisted by AI? No. Should I? Well that’s where we get into the ethical guidelines of this. Which is why I bring it up. Should my code be tagged as AI-assisted? And if so, is it unethical if I forgot that I asked Claude instead of Google this question?