6 ms·
Almost automated code reviews
- MillerUsla 4y ago[dead]
- aleksiy123 4y agoI wonder if you could train it to apply a style guide like https://google.github.io/styleguide/cppguide.html https://google.github.io/styleguide/cppguide.html . I think that this would be nice problem that static analysis can't necessarily solve but is more defined than general code reviews which are more subjective.
- yrgulation 4y agoSo like a basic linter.
- GuB-42 4y agoIt is not a BASIC linter, it is a PHP linter. Anyways, I think it is a better application of current machine learning tech than code generation. The result of my experiments with ChatGPT is that the code it generates is almost right, as a result, it can be dangerous. But I think it is good at telling you "what you wrote here is not what others usually do in that situation", and it can be a valuable indication. If you really mean it, then you probably thought about it and it can be dismissed (or it may be a good indication that a comment is welcome), if you don't, then maybe it is a bug. For example, if you write resize(width, width), it is weird. It may be a bug, a common one actually, and the AI found it, or it can be deliberate, and in this case maybe you want to clarify it (ex:// make it square-shaped), or just ignore it. Anyways, it something worth pointing out.
- pleb_nz 4y agoOk, at a high level I get it. But there must have been some instructions provided. Could someone provide some example of what the instructions might look like for the case in this article? I apologize in advance if this is stated in the article.