3 ms·
Definitely agree that most programmers would benefit from studying these topics. They have broader applications than many realize. You can use tools like jscod
by TheAceOfHearts 7y ago
Definitely agree that most programmers would benefit from studying these topics. They have broader applications than many realize.
You can use tools like jscodeshift [0] to refactor code! I've previously written codemods to migrate away from a bad design decisions. The React team has also used codemods to introduce breaking changes. AST Explorer [1] is the best tool I've found for writing codemods since it gives you nearly instant feedback and allows for a good amount of exploration.
[0] https://github.com/facebook/jscodeshift/ https://github.com/facebook/jscodeshift/
[1] https://astexplorer.net/ https://astexplorer.net/