domingo, 6 de junio de 2021

Patching via AST in python

Even though I'm lately 75% Clojure and 25% apl/j/k, there's always a spot for a nice python article about patching thousands of lines of code via converting the source code to AST and back to text:

https://engineering.soroco.com/abstract-syntax-tree-for-patching-code-and-assessing-code-quality/ . The corresponding HN thread: https://news.ycombinator.com/item?id=27419237

Reminds me of https://www.debuggingbook.org/ .


Which also reminds me of this clojure https://github.com/bfontaine/grape and https://github.com/borkdude/grasp, that allow you to search clojure code not just by text but by patterns of code, without taking spacing or variable names into account.

And segway to clojure here's some sophisticated clojure codebase walkthrough: https://news.ycombinator.com/item?id=27385208

And last, some good food for thought on leveling up the engineering skillset: https://skamille.medium.com/an-incomplete-list-of-skills-senior-engineers-need-beyond-coding-8ed4a521b29f . Although each one of those make sense, the environment in which one works makes them easier to realize/work.