9 ms·
Reverse 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
by theGnuMe 2y ago
Reverse 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.