3 ms·
Seems like a reasonable approach. I wonder if it took less time than it would have taken to build some rule-based codemod script that operates on the AST, but
by __jonas 2y ago
Seems like a reasonable approach.
I wonder if it took less time than it would have taken to build some rule-based codemod script that operates on the AST, but I assume it did.
- AdamN 2y agoIt also takes less context potentially - allowing a more junior engineer or somebody who doesn't know much about the language/library to implement the change.
- deleted 2y ago[deleted]
- morgante 2y agoIf you read the source article[0], they tried a rule-based approach first and the complexity exploded. [0] https://slack.engineering/balancing-old-tricks-with-new-feats-ai-powered-conversion-from-enzyme-to-react-testing-library-at-slack/ https://slack.engineering/balancing-old-tricks-with-new-feat...
- ec109685 2y agoThe rules based made the job of the LLM easier, so it was a worthwhile part of project.