Alex Jones

Subsecond Playground - jQuery but for code instead of HTML

by
jQuery is the best and most widely used way to modify a node tree. Code itself is a node tree (AST), so it just makes sense to use jQuery for codemod. Try it out with this online editor.

Add a comment

Replies

Best
Alex Jones
I've been a really big fan of structured code modification since I ran into jscodeshift a couple years ago, but it's usually not worth the added complexity and confusion. My hope is that tools like Subsecond will be able to combat the amount of spaghetti code that is on the horizon with the emergence of copilot and other ai code tools.