Opinions on AI assisted coding?

Ethical issues aside (because who cares about that, amiright?), I have two major qualms with AI generated code:

1: You're not making progress. Even if it does happen to work, that's it. You're not learning a new skill, and you'll be right back where you were before the next time you have a problem.

In the short term, it might work, but since AI is wildly inconsistent, and the future of the technology uncertain, Mr. Chappy might no be able to save you in the future.

If you actually learn how to code, you'll have that skill for life, unless text editors disappear or something.
Give a man a fish...y'know.

2: It doesn't work 99% unless you have prior knowledge of programming, at which point it begs the question why you would use it in the first place. Like seriously, just think of how many threads we have asking to fix broken gpt code, compared to the few times you've actually seen it work. And, once again, if it does work, it requires a ton of editing and tweaking.
If I can give you some advice, I'd rather stay away from ethical/moral issues.
Considering that orochi isn't willing to actually say anything of substance or answer anything I said, no worries.

There are good arguments both for and against AI gen, but people somehow tend to get overly emotional about them.
I'm still waiting to hear them (but not saying that has to happen in this thread or site). From what I can tell, anyone who is very pro-AI comes dangerously close to breaking rule 1.2.

If you can already code you could use the AI, but then what's the point of the AI? And if you don't know how to code, then you can't really use AI effectively, and then what's the point of the AI?
Directly on topic, this is basically what I had come to the thread to say. I've seen experienced coders use AI to help and it's definitely questionable if it even saves time, let alone helping in any manner more substantive.
at which point it begs the question why you would use it in the first place.
To assist me? Or rather, I assist it. lol
I think it is like using a machine to do things you normally do by hand.
To assist me? Or rather, I assist it. lol
I think it is like using a machine to do things you normally do by hand.

Genuine question, how would you say it consistently assists you? In a way that you couldn't achieve by referring to manuals, tutorials, googling etc.
??? This is such a vague, empty response there's nothing to reply to. You didn't address anything I said. What are the moral issues with Arcabuz? I have no idea what it is. What are the moral issues you've heard about with AI and what about them isn't an issue?
I know the thread has moved on and this wasn't the point, but the Arcabuz AKA an Arquebus in English was an early form of a firearm, being the first to use a trigger, and it generally came with a hook to stabilize it on things like battlements, which allowed for really fast firing.

Where this is a dumb comparison to AI is a soldier still has to learn to use the gun and can become better at using the gun. Also art isn't an arms race.
Genuine question, how would you say it consistently assists you? In a way that you couldn't achieve by referring to manuals, tutorials, googling etc.
Well you can. But you need time to do that. A developer can hire human assistants, doesn't mean they're not capable to do the job. Quite the contrary, they need to have considerable knowledge and skills in order to review the results of their work.
AIs can be cheap and fast, I think that is a good reason to use them.
I know the thread has moved on and this wasn't the point, but the Arcabuz AKA an Arquebus in English was an early form of a firearm, being the first to use a trigger, and it generally came with a hook to stabilize it on things like battlements, which allowed for really fast firing.
Thank you! 😀 I actually tried looking it up but was only finding the Arquebus and was not sure they were the same thing.

Also art isn't an arms race.
But product is and some people only see product.
I'm still waiting to hear them (but not saying that has to happen in this thread or site). From what I can tell, anyone who is very pro-AI comes dangerously close to breaking rule 1.2.
Well... For starters, AI has the potential to have much larger base of knowledge than humans ever could. This has applications not only in programming and art, but also in other spheres of knowledge. It could help us understand DNA or peptides and peptide structures.

If we however limit ourselves only to programming and art, since that's what seems to bother everybody:

Currently, moral/ethical issues have varying relevance based on your moral compass, because we've yet to determine whether training AI is IP theft, or fair use. Both sides have valid points. If I'm to summarize them both:

Anti-AI:
- AI companies took large amounts of copyrighted data without permission or reimbursement)
- GANs can reproduce the original data pretty closely or, in certain cases, identically
- AI can, through the industrial power of its production, distill the value of production. Art could suddenly become very cheap.

Pro-AI:
- AI companies took large amounts of data. So much that it has been transformed into a generic concept and if you were to examine the data, you wouldn't find a trace of original data anymore.
- The use of the training data is transformative, since the companies themselves used the data to create a GAN model, not create images. And any subsequent product comes as a result of such data.
- The data it scraped was publicly accessible (well, with the exception of Github, which has used code from private repositories to train its copilot)
- Humans learn the same way. We analyze and reproduce copyrighted examples.



Arguments aren't however just limited to the scope of copyright. To name a few:
Anti-AI:
- AI can (and has been) abused for naughty stuff. One very nasty example I could speak about is deepfake.
- You cannot copyright AI generated work

Pro-AI:
- GANs make art, programming and other things more accessible, because if you can master prompt engineering, then sky is the limit.
- If ultimately legality becomes the only real problem preventing AI from existing, it's an easy thing to remedy. There are already AI models trained on public domain, CC-0 and opt-in obtained data.

Note: I have summarized them, but I will not discuss them. At least for now. I don't want this to get overly emotional.
Genuine question, how would you say it consistently assists you? In a way that you couldn't achieve by referring to manuals, tutorials, googling etc.
I can 100% answer that. Lemme pull up my code.

Just to keep it short, here
Spoiler
Code:
//Resolutions:
//1024x768
//1152x720
//1280x720
//1280x800 //steam deck, not sure if I should even support it
//1366x768
//1440x900
//1600x900
//1920x1080

switch (file[0]) {
            0 => {
                this._res_width = 1024;
                this._res_height = 768;
            },
            1 => {
                this._res_width = 1152;
                this._res_height = 720;
            },
            2 => {
                this._res_width = 1280;
                this._res_height = 720;
            },
            3 => {
                this._res_width = 1280;
                this._res_height = 800;
            },
            4 => {
                this._res_width = 1366;
                this._res_height = 768;
            },
            5 => {
                this._res_width = 1440;
                this._res_height = 900;
            },
            6 => {
                this._res_width = 1600;
                this._res_height = 900;
            },
            7 => {
                this._res_width = 1920;
                this._res_height = 1080;
            },
            else => {},
        }
is some code I used to test how well the AI infers stuff from comments.
I simply wrote a couple of resolutions as a comment and then proceeded to type this switch statement.
How much did I type?
Only the "0" segment.
It finished segments 1-7 completely on its own. All I did was press Tab twice.
In this particular case, it isn't relevant - it could have been done in many ways which wouldn't require much typing. But I've had cases where there was no other way. For instance, making a char interpreter.

In general, it saves me a lot of time when I have with repetitive tasks: switches, if cases, similar functions, debug logs and stuff like that. It also saves me a lot of time when I'm refactoring, because it makes far more complex suggestions than search & replace ever could. I can delete entire function segments with ease. If I'm making a function and I define something in another file (or even redefine it), it instantly knows that it should suggest that. All I do is hit Tab.

It may not look like much, but the amount of typing it saves me, I can't appreciate enough. I hate typing as much as I normally would, because it's annoying when I have to type repetitive things and my typing is not foolproof. I'm entirely capable of producing subtle bugs that I have problems finding. Refactoring was a chore, now it isn't so much anymore. If I could pay for such a tool prior to having AI, I would. Because nowadays, I actually have fun while I'm programming. Which is a welcome change.
This has applications not only in programming and art, but also in other spheres of knowledge. It could help us understand DNA or peptides and peptide structures.
My apologies, I had meant specifically generative AI. There's other current AI types going on that undeniably are doing great things; for instance, I've been hearing more and more about this weather model that is being fed weather data that is being voluntarily handed over to the machine and apparently its forecasting is on an insane level compared to even five years ago. And that's with only like 1% of all weather data that we have on record. I'd like to note the word 'voluntary' in case it is relevant.

Humans learn the same way.
That's either a very bold or absurdly simplistic claim. I'm not even sure how to respond to it, it's like claiming oranges and circles are the same thing.

I have summarized them, but I will not discuss them.
Sure thing, I don't expect a response to the above.
I simplified the points into bullet points. I've got a 12 hour night shift behind me and am not particularly keen on having to fight semantics. But very well, let's go a bit deeper.

A human learns on copyrighted materials. If you're learning art, you will analyze works of others to see the techniques they used. If you're learning programming, you will at some point open other people's code to see how they did it. And in both cases until you extract knowledge that allows you to be independent, you will generate output that's as close to the original as possible. We have the ability to achieve deeper understanding thanks to our cognitive reasoning. But even when we're skilled, we will use references, especially in art.
On low level there are significant differences in how we learn, especially when it comes to the ability to comprehend stuff. On high level our learning process is not that different from AI. AI crunches through data until it derives a concept from it. Then it can teach itself on data it generates. We copy data until we have sufficient knowledge. It is a simplification. I'm not going to say it isn't. But you wanted arguments for AI and this is actually a fairly popular one.

Btw. we don't even need to go far for evidence to support this argument.
Rpg maker's core scripts suck. They offer only very basic features and they lack documentation. So if you wanted to learn how to make plugins, Yanfly's code would be your go-to haven. And I know of at least one case where this likely caused controversy regarding stolen code.
I think as an artist since 2016 I'll give a few cents to the discussion. I also will try to not be biased but can't promise it (;´д`)ゞ
The main reasons why people use AI, as I understand, are as follows;
1. It will save time
2. It will produce 'X' of higher quality than I can

I, wholeheartedly and unironically love Fractal Block World style. And this game definitely doesn't have a renaissance level quality of art. But it just doesn't need to be. I love the soul behind it, I adore it's appeal, I see care and fun in every sprite. When you use AI to generate your assets I see it as lying to a customer. I see absolutely no reason to fake your level of output. The only thing AI can help you with, is to form your ideas, but it's output will never replicate what you truly want. I see no point, unless every brush-stroke, every note, was done by you. I play games for you. If I want to waste my time, I'll play any 2010 mobile game I have on my phone, but I want to know you. What part of your life inspired you to draw this sprite like that? What OST inspired you to make this melody? Maybe you even heard it in birds chirping this morning, I wouldn't know. If you use AI, that means, for me, that you don't want to express yourself, in a field that is perfect to enchant player in your world. All your imperfections are still yours. Player will love them if you won't be afraid to show them.

Like, I do not know how to make music. At all, frankly, I just make what sounds okay. Yes, I have to spend a lot time, while balancing it with my University, and my job, but the payoff of making something that has you in it is more than enough for me. To keep learning and trying again and again. Its fun

Upd. I rambled a bit too much. To be specific about coding - I don't get it even as a tool to save time. I saw some people forgetting how to so simple coding stuff because they r just so used to asking ai to do all the small work for them. I feel like it definitely worsens your skills - like if you use it enough to plan/add words to your essays, your writing skills will become actively worse. Also with all of ai generated content, it's much harder to filter and find relevant info/tutorials for fresh beginners, because you need to dig through stuff that really doesn't work.
because no one writes their codes from scratch.
I disagree with this one here though, as Chaucer (passed away) did all from scratch.

advanced coders for specific windows or contents has to be done from scratch or
needs new data object don't even exist, must be made from scratch.

sure, people ask for help building a start or get understanding, because there are more
ways to approach.

AI mostly steals code, don't know the core, so if you need to choose between AI or Human,
I rather choose "human" as they know more of the best approach if they learn it.

I won't lie that I use AI, but mostly to know something like: different or best approach
to use array or object to draw or the meanings with some samples.

not to use them in my code as given, but to learn as it has to be alternate anyway to
function how you exactly want it to run.

and coding in general is still difficult for me, but I have fun making them as I learn from it,
too slowly, but I ask help when required, as human opinion is better than AI if you ask me.
A human learns on copyrighted materials
this is still false equivalence, an LLM doesn't "Learn" the way a human does, they are effectively gathering data as probabilities, and then making the "most probable" response to how it reads a prompt.

When I learned HTML, I looked at sample websites, and I came to understand how the things worked, which allowed me to create something of my own using the rules I came to understand from the samples, but my website didn't contain the exact methods from the samples hardly at all, because I learned and then made it do what I wanted myself.
It is not false equivalence. The argument does not talk about similarities/differences in the process of learning nor does it attempt to create an equivalence in learning of humans and LLMs. It focuses entirely on the fact that during the process of learning, both humans and LLMs take copyrighted data and over time transform it into something that does not resemble the original data. Humans over time learn to apply the knowledge in general. LLMs create a statistical model, but if you were to look into the data they carry, you'd find no trace of the original data. Nor would it even be possible.

TL;DR: That's not false equivalence, because it's not the point. The point is that since humans learn using copyrighted data, it should be fine for LLMs to learn using copyrighted data too.

And just in case, I'm not stating any personal opinion, I'm merely explaining the argument.
Well... For starters, AI has the potential to have much larger base of knowledge than humans ever could. This has applications not only in programming and art, but also in other spheres of knowledge. It could help us understand DNA or peptides and peptide structures.

If we however limit ourselves only to programming and art, since that's what seems to bother everybody:

Currently, moral/ethical issues have varying relevance based on your moral compass, because we've yet to determine whether training AI is IP theft, or fair use. Both sides have valid points. If I'm to summarize them both:

Anti-AI:
- AI companies took large amounts of copyrighted data without permission or reimbursement)
- GANs can reproduce the original data pretty closely or, in certain cases, identically
- AI can, through the industrial power of its production, distill the value of production. Art could suddenly become very cheap.

Pro-AI:
- AI companies took large amounts of data. So much that it has been transformed into a generic concept and if you were to examine the data, you wouldn't find a trace of original data anymore.
- The use of the training data is transformative, since the companies themselves used the data to create a GAN model, not create images. And any subsequent product comes as a result of such data.
- The data it scraped was publicly accessible (well, with the exception of Github, which has used code from private repositories to train its copilot)
- Humans learn the same way. We analyze and reproduce copyrighted examples.



Arguments aren't however just limited to the scope of copyright. To name a few:
Anti-AI:
- AI can (and has been) abused for naughty stuff. One very nasty example I could speak about is deepfake.
- You cannot copyright AI generated work

Pro-AI:
- GANs make art, programming and other things more accessible, because if you can master prompt engineering, then sky is the limit.
- If ultimately legality becomes the only real problem preventing AI from existing, it's an easy thing to remedy. There are already AI models trained on public domain, CC-0 and opt-in obtained data.

Note: I have summarized them, but I will not discuss them. At least for now. I don't want this to get overly emotional.

I can 100% answer that. Lemme pull up my code.

Just to keep it short, here
Spoiler
Code:
//Resolutions:
//1024x768
//1152x720
//1280x720
//1280x800 //steam deck, not sure if I should even support it
//1366x768
//1440x900
//1600x900
//1920x1080

switch (file[0]) {
            0 => {
                this._res_width = 1024;
                this._res_height = 768;
            },
            1 => {
                this._res_width = 1152;
                this._res_height = 720;
            },
            2 => {
                this._res_width = 1280;
                this._res_height = 720;
            },
            3 => {
                this._res_width = 1280;
                this._res_height = 800;
            },
            4 => {
                this._res_width = 1366;
                this._res_height = 768;
            },
            5 => {
                this._res_width = 1440;
                this._res_height = 900;
            },
            6 => {
                this._res_width = 1600;
                this._res_height = 900;
            },
            7 => {
                this._res_width = 1920;
                this._res_height = 1080;
            },
            else => {},
        }
is some code I used to test how well the AI infers stuff from comments.
I simply wrote a couple of resolutions as a comment and then proceeded to type this switch statement.
How much did I type?
Only the "0" segment.
It finished segments 1-7 completely on its own. All I did was press Tab twice.
In this particular case, it isn't relevant - it could have been done in many ways which wouldn't require much typing. But I've had cases where there was no other way. For instance, making a char interpreter.

In general, it saves me a lot of time when I have with repetitive tasks: switches, if cases, similar functions, debug logs and stuff like that. It also saves me a lot of time when I'm refactoring, because it makes far more complex suggestions than search & replace ever could. I can delete entire function segments with ease. If I'm making a function and I define something in another file (or even redefine it), it instantly knows that it should suggest that. All I do is hit Tab.

It may not look like much, but the amount of typing it saves me, I can't appreciate enough. I hate typing as much as I normally would, because it's annoying when I have to type repetitive things and my typing is not foolproof. I'm entirely capable of producing subtle bugs that I have problems finding. Refactoring was a chore, now it isn't so much anymore. If I could pay for such a tool prior to having AI, I would. Because nowadays, I actually have fun while I'm programming. Which is a welcome change.
Won't this error at the first switch because a switch statement doesn't accept a key-value pair as a return value and you can't use value assignment in object properties?
No. It's not javascript.
No. It's not javascript.
Ah right it's Zig, gotcha.
The point is that since humans learn using copyrighted data
wrong.
and it's because of nuisances like this, that the whole system (and, the argument about it) goes haywire.

humans learn by stimuli.
period.

them coming from copyrighted data is another consideration.
you want to address that? WAIT until the other person gets mad about you dismissing that fact, and THEN strike.
you have to make people mind that point by removing it from the argument... otherwise everything remains being given for granted.

you make the right point tho: it should be the same measure for both, but *stating* the thing you state, is validating the falacy you're making.
people learn from stimuli they see in their everyday life, and the distinction between copyright or not is *taught* to them, *once* they can understand the meaning.
it's always been like that.
AI isn't *taught* anything.... only recently is it being refined through "corrections".
so far, it has been "learning" from the bunch of popular opinion... it's at 12th century levels of sentience.
you can't call that "learning" at all!

"copyright" is a modern term.
*knowledge* is primal, as old as humanity itself.
nobody in their right mind would put them at the same level.
come on people! year 2025. SOME sentience, please?

(side note: once you address the point of copyright or not, with an AI that can make the distinction, you still have an AI that can copy the result 100% true, even acknowledging that it must not *duplicate* the work, physically, and call it their own. *EVEN* teaching the AI about copyright, *IT* can't intentionally dumb itself into not-infringing copyright law by under-utilizing it's own capabilities. That defeats the whole purpose of AI. Which, is another whole can of worms.)
(at some point, AI or human, trial-and-error WILL find the ultimate solution to a problem. And when that happens, nobody can claim "copy" anything on it, because there is no alternative possible, sideways or upwards. It would be THE solution, THE procedure and THE answer. Humans took centuries to find some... AI can find others in half a second. It's what it is. The only people angry about it, are the ones watching a profit. Those who don't, DGAF.)
I 100% can call it "learning". By definition, learning is acquiring new knowledge or skills. What is knowledge and what is skill? If nobody has programmed the AI to reliably achieve correct results, if it doesn't have the knowledge or skill to reliably achieve correct results, how comes it's able to reliably achieve correct results? What it even means to acquire knowledge? Is there only one way, the human way to learn, or are there others? If we made an AI capable of processing external stimuli, would it make a difference?

But that's going into philosophy and semantics, which is beyond the scope of what I'm willing to do. Because if we argue about semantics, we can always provide a definition that suits whatever narrative we want to push. And whose definition is correct?
What is knowledge and what is skill?
in this particular case and scope, "what people agree it is"
because, AI can't be objective, and we know it looks to popular opinion for validation.
and when [popular opinion], and [popular agreement], you have [12th century], not objectivity.

how comes it's able to reliably achieve correct results?
by sheer luck.
which, is not out of the question nor capabilities of the AI.
it's bound to find the right answer at some point, by sheer luck.
which leads to "who deems it the right answer?", which leads to popular opinion.
which, some of the members of, might often impose themselves on the rest and call it sense over nonsense, which corrects the AI.
which, still doesn't make the AI smart, just less inaccurate.

If nobody has programmed the AI to reliably achieve correct results,
not 100%, but it was programmed to *try*, and it did.
and, it was programmed to favor success over failure, and it does.
what defines either one? people... not itself.

if it doesn't have the knowledge or skill to reliably achieve correct results
it did.
I mean, it did *not-have* the knowledge.... for a split second, when it was first turned on.
from that point on, it did have, and lots of it.

"true" learning, would be if the AI simply threw out there a bejillion terabytes of data in the form of all possible combinations of things conceivably to throw *AT* things out there, and from the collective results, figured out the way to do something very specific.
because, that is what it *can* do: mind a million things at once, and keep track of it.
*learning* would be, if AI found out how to breach an encryption cypher simply by looking at comm traffic.
so far, what it has "learned" pales in comparison to the things it has been "taught".
and from those, the things it has "kept track of", it did because people agreed they were mostly accurate.
and you see, nowhere in here are we talking copyright.
but the AI doesn't *throw out there*, it merely *takes from out there*... so you can see how it quickly devolves into "well, WHO is it taking FROM?"
the "taking FROM" only matters if there's someone *holding*.

I'm not arguing yes or no, I'm throwing the argument out the window like I said it should be done, and going the lightyear beyond it: let's say you ethically teach the AI not-to.... then what?
what happens when it CAN copy a masterpiece pixel by pixel in full compliance with it's programming of not-doing it, and still does do it, and comes up with a 100% true copy of something it was told NOT to copy, because it's considerably more trouble than any alternatives?
and I don't mean lifting the work from the origin and calling it own, I mean actually putting number and magnitude to the whole process, naming it recipe, following that recipe, starting from scratch, and coming out with a flawless copy.
you'll say "well, we turn it off because that's stealing!"... well, you built it to learn, it did, and it still broke the system... so, why you make it in the first place?
the thing shows you the system is flawed, and you turn it off.
who's the intelligent one there?

long story short:
it shouldn't matter if you use AI code or assets, nor should AI be demonized under the sole consideration of "it steals!"
AI can still come up with code and assets that are true copies, without having copied anything.
them being remotely similar to other works, shouldn't be deemed stealing... because "stealing" is only such when the interest is put in protecting private property, which itself is based on a flawed system.
that is the thorn to address.
"but we can't address that thorn here!"
... and, here we are, here we linger, here we sigh, and back to square one.
someone's gonna get to the same conclusion at some point, might as well say it from the beginning... save you the trouble of having to work every angle, in a million more threads.
the system you're all trying to protect, is flawed. AI is just making it evident.

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