There’s a few major issues surrounding ethics so I’ll try my best to write them up!
1: naturally despite coding being perceived as a bit more open source, there’s very much a difference between programmers sharing their knowledge on the internet, and people’s handwritten code being scooped up for AI training without the consent of the creator. Not all code that ends up in AI data training sets is code that programmers wanted to end up there, which makes it ethically dubious all the same.
2: arguably the bigger issue, environmental and economical impact. Obviously it’s no secret that AI tools have had a massive negative impact on the global economy, especially surrounding prices of the many pieces of tech so many human creators rely on. However, the far worse consequence of these massive AI datacenters is the amount they ruin the areas they are built in, which are often populated with low income families or indigenous folks. They significantly warm up the water in the surrounding areas which disrupts animal and plant life, they contribute to a large amount of 24/7 noise pollution in the area, and they take up vital electricity in areas where the power grid is often already pretty shaky for locals, and the data centers often also contribute to the spiking of their energy bills. Quality of life for the communities that these data centers are built near is provably lower, and it’s all for a technology that, if anything, also disrupts their life by existing, as it’s a threat to the lower income jobs that they have to rely on to live.
Hopefully that explains a few of the issues! Personally, I draw the line for AI coding at the exact same place as I do for any other kind of LLM or visual generation, because they ultimately rely on the same harmful technology and unethical training practices.