I've been thinking about this all morning... surely there must be people already working on the following:
- AI that builds an understanding of a large legacy codebase, and is able to diagram & explain it
- using that to refactor convoluted logic and reduce complexity
- using that to train something that can write code from scratch or rewrite an exisiting codebase in a different language
Seems like a billion dollar business, as the world develops more and more large and shitty codebases with high maintenance costs.