q. I'm not fond of your scavenger games;
I like my things to be easily found.
So please move your code in such a way,
That change doesn't require a look around!
a. Divergent Chang
For a list of the 22 Code Smells feel free to visit the Code Smells website.
Need help? Here is a list of remaining Code Smells for this riddle series.
Post a comment with your guess :)
~/riddle by me
Shotgun Surgery?
ReplyDeleteOpposite of divergent change. Every time you make a kind of change you have to make a lot of little changes to a lot of different classes. Hard to find, easy to miss an important change.
* Use Move Method and Move Field to put all the change sites into one class. If a good place to put them does not exist, create one.
* Use Inline Class to bring a bunch of behavior together. You will get a small amount of divergent change.
* Divergent change or shotgun surgery, you want a 1 to 1 link between common changes and classes.
I just found this blog. Really interesting idea. Nice work!
ReplyDelete