3 ms·
So like a basic linter.
by yrgulation 4y ago
So 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.