Refactoring with Codemods to Automate API Changes

(martinfowler.com)

17 points | by teivah 395 days ago

2 comments

  • transitivebs 392 days ago
    https://github.com/getgrit/gritql is the best large-scale codemod / refactoring tool I've ever used.
    • mmastrac 392 days ago
      It's finicky and picky, very dependent on the tree sitter grammar but when it works, it's magical.
      • wcdolphin 391 days ago
        Have you found any tools you think are easier/better? I’d love to learn more about the space.
        • mmastrac 391 days ago
          Nope, I'd say it's the best :)
  • westurner 392 days 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, ]