Editor macros are a secret weapon for editing text. While they are hard to learn, no other tool offers such broad speed and power for automating changes. A skilled macro wielder can make huge changes to a codebase with ease. Here are some inspirational patterns to demonstrate major structural refactorings using Vim macros and search/replace commands. Reorder A List Of Numbers A change left me with a file with unordered numbers.
Dependency Injection can be greatly simplified while retaining all of its power. Injection of an interface through the constructor is a common way to replace a dependency for unit-test mocking. Unfortunately, it is an extremely verbose pattern.