Opinions on AI assisted coding?

I know I'm probably opening a can of worms here but bear with me here.

I'm not an advocate for AI whatsoever when it comes to art or music for a myriad of different reasons, but what about programming? AI generated code doesn't get nearly as much backlash compared to other AI generated assets, so I'm just wondering what your two cents are on this situation- especially when AI could be used to generate plugins and all sorts of other potentially useful things for your games. I'd imagine it's also frowned upon considering the ethics of training AI models, but I'm no programmer.
I know people have been on this forum before asking for help with utter nonsense code that was created with AI, which has been reason enough for me to not want to touch it with a 10 foot pole, in addition to the fact that it's part of the same generative beast that wants to make visual arts and storytelling worse while making the planet worse.

although, there is an AI discussion thread on the forums, I'm sure there's more people's opinions on the topic there already.
When Western powers brought Arcabuz to Japan for the first time in 1543, did you expect there to be any "ethical" problems for samurai using it?
Maybe some will hesitate. But ultimately, the duty of a samurai is to serve their lords with any tools at their disposal. It is the same thing as a game developer; you shall use all tools at your disposal to serve your games and your players.
So it's got it's pro's and cons.

Pros, you can get a simple code the moment you type it in but the cons outweigh it a fair bit.

Cons:

It there is a error within the code or if it conflicts with another plugin then you gotta pay someone to fix as no one would know how the code works or how to fix the error without having to read through the whole thing.

You can only do simple ones. More complicated ones = errors.

Mistakes and human error in the code.

When your making code you got to make neat, understandable and work in a good habbit?

What I'm trying to say with this one is that A.I may be working but it be a jumble mess of awfulness.

I'm Anti-AI content wise and it's not something I encourage for end game reasons but it m not against people using to get ideas.
there is an AI discussion thread on the forums, I'm sure there's more people's opinions on the topic there already.
And not only is that post locked, but the final post of that thread makes it clear that further discussions on GenAI are banned on the forums.
And not only is that post locked, but the final post of that thread makes it clear that further discussions on GenAI are banned on the forums.
They are?
They said they were going to revisit the decision in January, but haven't confirmed whether it's being allowed again yet.
They are?
yes.jpg
That means to me it's Banned until Jan which we've past that now so I assume it's ok to talk about it.
That means to me it's Banned until Jan which we've past that now so I assume it's ok to talk about it.
"We'll revisit things then." is not the same as "After that it's back on the table."
That means to me it's Banned until Jan which we've past that now so I assume it's ok to talk about it.
There has been no further announcement about a change on policy. Though Fuzz said until January, I operate under the assumption that policy remains until further notice, regardless of whether it is past deadline or not.
We mods have talked about it a bit, but it usually leads to sighs (from me) and wondering if the topic can be discussed maturely. So let's see if it's worth opening the topic back up.

Remember that use of AI on the forum still has rules, and this is just about talking about AI itself.

I'll allow this thread for now, but if it derails or starts getting heated then the AI topic will be banned again and the people causing trouble will get a suspension to cool off.

Please don't make me regret this.

"We'll revisit things then." is not the same as "After that it's back on the table."
I'm going on the

"We're going to ban the topic is banned until January"
But not to derail this too much.


I think another issue would be compatibility with other plugins.

Some Authors have released compatibility patches with their plugins to work with more popular ones but I'm not sure how you would ask a AI to do that.
We mods have talked about it a bit, but it usually leads to sighs (from me) and wondering if the topic can be discussed maturely. So let's see if it's worth opening the topic back up.

Remember that use of AI on the forum still has rules, and this is just about talking about AI itself.

Moderator note: I'll allow this thread for now, but if it derails or starts getting heated then the AI topic will be banned again and the people causing trouble will get a suspension to cool off.

Please don't make me regret this.
Ah, alright. I was worried I mucked things up. Thank you!
There's one dude who makes AI code plugins. I played their game and it crashed after 10 minutes. That doesn't make me comfortable putting their AI stuff in my games. If someone who knows how to code uses AI and checks the code, I don't mind.
I would really, really like to see if people are capable of discussing this topic maturely. We never really lifted the moratorium, but have discussed it privately several times.

I, for one, find it kind of lame to ban topics that impact game development so heavily, but people continue to prove that they still their pants when talking about it.

That said, I’m down with @hiddenone to treat this thread like a trial run. The rest is up to y’all though. 😍
AI generated code doesn't get nearly as much backlash compared to other AI generated assets

and there are two very specific reasons for that.

1) stolen code and code-snippets are very difficult to trace, so the coder's have much less chance of protesting compared to an artist who can recognize if a picture uses parts of his/her work.

2) AI-generated code almost never works and usually requires extensive bughunting by a real programmer who knows how to program.

Just think on the basic principle of how all AI work:
They have a big database of results tagged with keywords, and if they are given keywords they copy something more or less random from the results with those keywords together, and then run the result though a check before presenting it.
In the case of code, that check is a combination of syntax check, grammar check and thesaurus/library check for the language.

So unless someone already wrote that code, placed it in the AI database AND your request was specific enough to get that one result, the code received will usually be a mess.

Actually, GOOGLE has a better chance of finding you working code than an AI-Coder, because google will only point to complete postings of code and don't try to randomly piece something together.
From what I've read on the topic (haven't used generative AI myself), if you are good at programming, you can use AI and correct its mistakes, since you know what you're doing. If you don't know much about programming, you can end up with faulty code. I used to do some translating and this reminds me a bit of that. Yes, you can put the text in google translate or something similar, but then you still have to check it, make sure there are no context mistakes, that the word used is the best one, and so on. Which, honestly, would be even more work for me as a translator. If I didn't know the language, I'd end up with maybe mostly ok translation, but some bits wouldn't make sense (and we've all seen hilarious examples of that in memes and such).

So in my opinion, it might be fine for small chunks, which you can modify when you're an expert yourself - not for whole plugins/scripts because while faulty translation can make you laugh, faulty code can break your game (as someone pointed out above already).

This is not considering the environmental costs of generative AI, which is another can of worms.
Both Steam and Itch require you to declare all AI use in your game and explicitly say that includes code. It's enough for me not to use it.
the core point to address and mind here, is that AI doesn't know of context.
if you ask it to build a welcome menu, it will... and it will have no idea where to send the outputs, nor do you if you're asking IT to build it instead of building it yourself.

....and, if you augment the prompt enough to the point that it will know what to do, then, you're not too far from actually coding the thing yourself, *as* needed.

so... I don't see the point there.
I used GPT for a few queries, and had to correct it three times on things that were irrelevant, or outright non-existent.
I *knew* what I wanted, and *it* wasn't providing.
so, what's the point on seemingly knowing it all if it doesn't know the one specific and very technical thing that must have been discussed countless times over the internet built for that very purpose?
what's it spending the time learning about then? memes and gossip?

Original thread: https://forums.rpgmakerweb.com/threads/opinions-on-ai-assisted-coding.176702/