Skip to content

Write, Delete

There's nothing more pleasant than deleting code. But only if it's not the code you just wrote, and then your manager told you that it's all no longer needed, and we're doing a 180-degree turn.

I'm talking about those cases when you manage to preserve or even expand functionality by deleting more code than you wrote. When you delete unnecessary clutter, replace copy-paste with a flexible universal solution, and all that kind of stuff.

And this works not only if I'm the executor, I'm happy every time I see merge requests from colleagues where the diff has fewer pluses than minuses.

Reducing complexity is the best high there is in programming. Many inexperienced developers think that experienced ones are those who write complex code. In reality, inexperienced developers write complex code, and experienced ones write as complex as the situation requires, in most cases simple.

Out of curiosity, I pulled my commits from corporate GitLab. For 4 months of work, the statistics are: +7690 / -12499. Deleted 40% more code than I wrote. A useful employee, it turns out.