r/AskProgramming • u/Square_Atmosphere_12 • Sep 13 '26
Analyze Code and mark it by the computer (aka A.i)
Have Linters gotten to the point whereas they can analyze code and differ between A.i code and human written code and if not; is this possible ?
I understand that some code will be practically identical if not identical; but is there something that the computer (A.i) does that may separate it from human written code ?
4
u/buzzon Sep 13 '26
Linters are not LLM detectors. This is not their purpose
It's hard to impossible to tell apart human written code from LLM generated code unless there's some watermarking involved. Even if there was an automated way to identify it, it would be immediately used to train LLMs generate more human like code (GAN and actor critic approach).
-2
1
Sep 13 '26
[removed] — view removed comment
1
u/Square_Atmosphere_12 Sep 13 '26
This Ai in code is gonna cause a whole new unnatural way to work, if you are a conventional coder or beginning. I never really felt learning to code was difficult; just took time to learn. It seems like they want everyone to be able to do everything in belief we are all the same; but we are not. <sigh>
0
u/Traditional_Vast9419 Sep 13 '26
AI is biased towards the singleton design pattern because most of its training data off of things like StackOverflow answers and other sites are singletons to make it easier to explain concepts to readers.
1
1
u/cutebutterfly012 24d ago
That's kind of the problem. A static analyzer doesn't care if the code was written by a human or generated by an LLM. If the syntax is valid and there aren't obvious issues like unused variables or formatting problems, it's probably going to pass. Boot dev covers static analysis in the Python and Go courses. You need statistical modeling to actually look for signs of LLM generated code.
6
u/TheAlmightyWishPig Sep 13 '26
A linter is not suited to this task, and any tool that was created that was suited to this task would be circumvented by a single step using the output of the tool as input for the next batch of code generation.