3 ms·
I like reading source code examples to learn so if an AI coding bot can help me level up I think that’d be great… maybe even analyze my code and suggest improve
by theGnuMe 2y ago
I like reading source code examples to learn so if an AI coding bot can help me level up I think that’d be great… maybe even analyze my code and suggest improvements or a better way to solve a problem. I’m not sure AI is at that level yet though.
- bloopernova 2y agoCopilot explains code really well, in my experience.
- theGnuMe 2y agoReverse engineering code to design patterns is what I am interested in. And then say, have it express the code with different (relevant) patterns possibly. Or take requirements and propose extensible design patterns. There aren't many design patterns per se but that task has a lot of value. Perhaps the most value. Also an AI that can find similar concepts using different patterns where they should be consolidated. This could even be for something "as simple as" file access. So many bugs and issues due to one person not knowing how to access resource X.
- bloopernova 2y agoYeah I have found copilot to be lacking when it comes to understanding the structure of certain things. Like when you ask it to add tests, it can figure out where the test files go, but can't seem to insert code into existing tests, so you have to rearrange code fairly often. I think that code generator models need to understand the abstract syntax tree, like using treesitter to better understand the structure, and as you said, the patterns involved in the code. Plus generators could then check that their new code correctly implements a pattern. I'd love to be able to feed a repo into a model and get documentation and diagrams out of it.