A (long and boring) question about the consensus of coding agent usage to avoid slop (from a non-pro dev)
Hello everyone, this is a bit of an odd post, I could imagine, and a probably long and boring one at that.
I am no game developer, and I am not developing a game, but I am currently developing a Garry'sMod gamemode. Gmod is my game of heart, that I've been playing for 11 years now, essentially on fun RP servers.
I've learned a fair bit of lua and made decent Gmod addons here and there, way before AI was even a thing. I've never been a great developer, but I did manage to help out some servers here and there and make actual functional stuff lol. Basically : I know how to dev stuff on Gmod.
Aside from this, I am also an aspiring artist, in writing and digital painting or even some music (even though I'm better at drawing) and, of course, I would absolutely never use AI in any artform.
I've recently wanted to try AI for coding. I've heard about it in a myriad of different opinions, and I figured that "AI coding can be really good if it is properly supervised". Being familiar with Gmod, I picked up a 20$ subscription and tried it on there.
I decided to try it on an old big gamemode project that I originally started writing by hand with a friend, and needless to say that I was really surprised, obviously, as I haven't been in touch with the world of dev in a bunch of years.
But I was very "worried" and wanted to make sure to not get the same result as the usual AI slop you can, unfortunately, see everywhere, so I was very, VERY pedantic with how I wanted it to do things, especially in the overall architecture and actual gameplay decisions. At first, I asked it to improve my original code without changing any details, then I started refactoring most of the addon.
And now I'm using it to write new modules, with those same pedantic rules and making sure everything is modular, configurable and exactly the way I want it to.
Now the question :
Is this the "correct" way of using a coding agent ? Professional/experienced devs, is this a "good" way to not do slop ? Most of the code now is not written by me anymore, AI is just so much fucking better, unfortunately (I mean, I was never really really good, as I said). All the code I write now is essentially configuration and gameplay boilerplate coding stuff (like creating the combos, chosing which animation and sound effect is gonna go when I do this...)
But I'm doing my best to understand how it all works, and I try often to read the code that its doing, to understand it ; and I can, to some good extent (haven't read everything yet). Of course, ANY ART FORM used in the gamemode is not AI. Not even the UI will be AI as I specifically want to have a good customized and human made UI. Right now, all I have is place holders.
Even the end result is essentially exactly as I expected and expect it to be, because I keep being very pedantic with how the gameplay should feel, and of course, using my "experience" from my countless hours of Gmod and lua dev, I can drive it pretty well to do exactly what I want.
I could go out and say "the end result works, who cares, long live AI !!!" but I really and honestly want more experienced people's opinion on this. Like, it's probably somewhat miserable, but I kind of want it to be "validated" lol.
TL;DR (plz read it all tho) : Is being extremely pedantic, making sure everything is exactly as I want it to be, and putting in effort to understand the architecture and code the agent is putting out (even though it still writes 99% of it) the "good" way of using coding agents ?
I have no idea on how to feel about this lmfao, sorry
About this post
- Posted
- Archived
- Score
- 1 · 100% up
- Kind
- Text
- ID
- 1yd4tkf
12 comments
What you're describing is called intentionality. To me SLOP is something where decision making was given to the AI. There's a lot of work that can be done that preserves intent without conceding decision making.
thats essentially my thoughts yeah
I see, thanks for taking the time honestly
Honestly, if it weren't for it, I probably wouldn't have continued the gamemode haha, so I wouldn't have benefitted from any critical thinking here either
I also do art and this is where I stimulate my brain the most
I'm aware of what AI is and how it works ; I know its just a statistical prediction output algorithm, essentially... but saying that its not capable ? I mean I know anyone could be good with learning, of course. But I think we have to admit that the tech works well when driven properly, and what I am asking is how should it be driven to extract its max potential, you know ?
I am not telling it "do this, make no mistake", it's precisely the point of the multiple paragraphs haha
The point of what I said is that it has inherent flaws that make "to it's fullest potential" a complete fools errand as it's not capable of coding better than a person. I detailed why and that there is not a way to avoid it. These issues stem from how the chatbot is built from the foundation.
If you cannot read and correct the code it spits out, you'll always produce low quality vibe code. There's no work around to that. The option is to continue vibe coding (which r/aigamedev is where you want to be) or learn to code properly.
I did mention I know how to dev in lua and read its code
I'm not trying to impress, I'm just asking advice on how to use ai properly, essentially. Asking if what I'm doing is a good way to avoid AI mistakes and bad decisions... if that makes sense
I guess I do seek some sort of validation too tho... oh well
The problem is, your coding experience sounds limited. If you're an expert, you can review the code it generates for mistakes or obvious problems. If you aren't, you are undoubtedly going to miss something, and the LLM is never going to be a perfect generator of anything. It's a statistical model designed to interpret the things you enter into it into probabilities as to what might keep you around validating the nascent tech while billionaires try to dig themselves out of a debt hole they've dug by replacing all skilled labor at an enterprise level. The AI guys are never going to admit any of this, because all they have ever wanted was a free toy that takes all the work out of having skills. They love the button that churns out cartoon versions of their pfp. Love it. They love the sycophant that confirms their preconceived notions and never disagrees with them, even when they suggest doing something deadly. If getting way out into the weeds here. AI is a terrible tool for learning, and if you haven't learned enough you will never know if it's messed something up. Inb4 calling me a luddite. Luddites were labor praxis badasses.
well, coding is coding so the same principles apply.
for example, the two main pillars are usually "correctness" and "performance" i.e. how accurately and correctly the code represents the intended logic and how fast the code is running
there are other criteria like "readability" i.e. how easy the code can be understood by a human or if the code is tightly coupled vs loosely couple, if the code is modularized etc
so given a piece of code (if it is written by AI or if it is written by your friend or it is 50/50 between you and AI), you just have to inspect it and verify that it passes all the criteria that you set for the project
for gamedev, most likely nobody else is even looking at your code so you really don't have to overthink it. the bar can be as low as "as long as the game runs and it doesn't set the user's PC on fire"
if you really want to do things properly, you do have to take some courses or read some textbooks. Its all there.
its like if you want to really cook properly like a chef, you would have to attend culinary school and all that. you get the idea hopefully
Do you enjoy it? If so, you are doing it the right way. If not, then try something else.
I know I'm probably overthinking it
You're doing fine, don't sweat it. There's no correct way to do it, you've figured out what works for you. Slop happens when you don't/can't verify the results. Keep up the good work!
Thanks for the kind words mate, it's good to have different opinions anyways