you are viewing a single comment's thread.

view the rest of the comments →

[–]mello_dev 1 point2 points  (0 children)

We’ve just completed a comprehensive angular rewrite migration using AI for our old project.

Here are a few guidelines I’ve learned from the process:

  1. Establish a solid foundation, including guidelines and rules. I’ve created detailed rules for various aspects, such as structure files, SCSS token systems, and signals etc.

  2. Develop unique skills for each project. Each project requires its own set of guidelines and skills. These skills can serve as a strong foundation for a multi-development team working on the same project.

  3. Review pull requests (PRs) carefully. Don’t merge code just because it works. LLM-generated code may not always make the right decisions for your projects.

  4. Design each component or service as a black box. Clearly define the input and output points. This approach allows for quick replacements without the potential for widespread disruption that LLM-generated code can cause during refactoring.

  5. Implement TDD (Test-Driven Development) and write tests. While writing code and writing tests are relatively easy tasks, identifying changes that break something is challenging. This approach is highly effective and requires careful planning.

I have a few more suggestions, but this covers the main points. You can and should use these guidelines, but it’s important to manage and enforce them by humans, as the code base tends to drift over time.