Back

Refactoring with Codemods to Automate API Changes

17 points6 monthsmartinfowler.com
transitivebs6 months ago

https://github.com/getgrit/gritql is the best large-scale codemod / refactoring tool I've ever used.

mmastrac6 months ago

It's finicky and picky, very dependent on the tree sitter grammar but when it works, it's magical.

wcdolphin6 months ago

Have you found any tools you think are easier/better? I’d love to learn more about the space.

mmastrac6 months ago

Nope, I'd say it's the best :)

westurner6 months ago

From "Show HN: Codemodder – A new codemod library for Java and Python" (2024) https://news.ycombinator.com/item?id=39111747 :

> [ codemodder-python, libCST, MOSES and Holman's elegant normal form, singnet/asmoses, Formal Verification, ]