4 ms·
Show HN: Test driven approach for code generation
We are working on a product that incorporates test driven approach for code generation, where AI learns from mistakes that caused test failures and generates code that matches the style of your codebase while passing all of your test cases.
We believe this approach will reduce the time spent on code refactoring and make it more reliable for use in production. The test cases can involve checking inputs and outputs of different functions. They can also include automated browser testing or emulator testing for mobile apps. In these scenarios, the AI can learn from failures triggered by specific UI events, such as the click of a button and generate appropriate code.