Automatically editing code
I really enjoy making automated changes to large codebases. When sed
won’t
suffice and the task would take too much elbow grease to do by hand, my
favorite tool (for python) is redbaron. In this post, I’ll walk
through a simple sounding operation that would be tough without a tool like
redbaron.