Apoptosis Gem - Which lines in your project need to die?
1–7 of 7 posts
Re: Apoptosis Gem - Which lines in your project need to die?
#2Re: Apoptosis Gem - Which lines in your project need to die?
#3That's just crazy talk. Software doesn't grow old!
Re: Apoptosis Gem - Which lines in your project need to die?
#4This is a great idea! You may want to use `git ls-files` instead of `Dir[' / . ']` in order to consider only tracked files inside the directory.
Re: Apoptosis Gem - Which lines in your project need to die?
#5Re: Apoptosis Gem - Which lines in your project need to die?
#6This is totally backwards: code you haven't touched in a while hasn't been touched /because it works/. It is the code you've recently edited where the larger number of buga are going to be found, and the more attention needs to be applied. When code is stable you don't delete it: you trust it.
While this gem is kind of a joke, reminding you of older code that was written a long time ago when you knew less about the problem domain than you do now (since you've been working on it for the last year), checking older code for refactoring/rewriting opportunities can make life easier for you in the future or whoever maintains the code after you.
Speaking as someone who inherited a huge untested codebase - debugging those sections that were written early on and work most of the time, but have never been refactored to take advantage of things that were learned later on in the project, is pretty unpleasant.