Comment Re:And they will know how? (Score 1) 81
Some are obviously AI-generated. But there as the code quality gets better how would it be distinguishable from human written? Less bugs?
Just because code quality improves doesn’t mean the code looks like what a human writes. Currently AI code seems to not favor writing lots of functions, do it’ll basically expand out the same code in multiple places. Which I admit is also what jr programmers tend to do and maybe you can quality that as something that is code quality and will improve. You can frequently use a prompt to make it “don’t write the same code multiple times, define functions for anything repeated (maybe over a specific complexity)” & that reduces that issue.
I’ve noticed AI generated Swift tends to not use default arguments much, almost never uses custom operators, and uses unnamed method arguments way more frequently then most human written code. Sort of. A lot of example code and people showing things in forums and doing toy programs “in public” are similar which makes me guess those end up in training data sets more then signifiant works that do most of that stuff. Or I write atypical Swift, and have worked at places that do the same (in part because I get to set the coding standards at some of those companies!). At any rate I think _some_ AI code has “tells” which is largely independent form bug rate if not actually “code quality”.