So...is it just impossible to improve your working conditions, when you’re working in a hoarded codebase? Are you just DOOMED to feel anxious every time you need to go near the precariously balanced User class until one day it just...falls over on you?
-
Show this thread
-
Ha ha! Of course not! This is where communication skills come into play. Because it is not at all trivial to even _understand_ the incentive structure that got you where you are, let alone to negotiate a new, healthier set of incentives.
2 replies 8 retweets 101 likesShow this thread -
The most common “presenting” pathology in the hoarded codebases I’ve seen - by far - is that developers don’t feel they have time and/or permission to refactor code.
4 replies 48 retweets 263 likesShow this thread -
Frequently occurring alongside that pathology is another - that developers see “refactoring” as a completely separate activity from building features or fixing bugs. A key indicator of this pathology is seeing stories in the backlog like “refactor user class.”
4 replies 41 retweets 235 likesShow this thread -
Just like its physical analog, a hoarded codebase only improves if you intensively work on changing those habits. This means deciding you will always do small, opportunistic refactorings when they appear to you in the course of fixing a bug or adding a feature.
4 replies 31 retweets 189 likesShow this thread -
I’m not talking about taking three extra days on a 1-point story to totally rewrite the user class. I’m talking about noticing a method you’re working in is out of place, and moving it - even if you don’t have time to extract the rest of the concept from the 8000-line file.
4 replies 11 retweets 126 likesShow this thread -
Just like when you’re dealing with its physical analog, your number one most important mantra when you want to improve a hoarded codebase is: Improvement Over Consistency.
6 replies 80 retweets 346 likesShow this thread -
This is SO HARD for us as developers. It gets drilled into us from day one that consistency is key to good code. And if you had good code, then sure, that would be true. But right now you don’t. Improvement Over Consistency.
2 replies 37 retweets 238 likesShow this thread -
One book on the shelf and five in the pile is better than six books in the pile. Improvement Over Consistency.
5 replies 31 retweets 232 likesShow this thread -
Replying to @sarahmei
I'm having trouble with the idea that inconsistency is an improvement. Most of the legacy codebases I've worked on don't have a shelf to put a book on and I don't have a vision of what the shelf should look like for the first few months.
1 reply 0 retweets 0 likes
Instead, I've mostly tried to loosen the knots (sort the books into piles instead of strewn all over the floor).
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.