I'm working on an old codebase which is... not perfect, in an environment which is neitherisn't either. It's not the most terribleworst codebase I've seen in my life, but there are still lots of issues: zero unit tests,tests; methods with thousand and morethousand+ lines of code within it,code; misunderstanding of basic object oriented principles,principles; etc.
I have much pain maintainingIt hurts to maintain the code.
- Every time I have to debug a thousand-lines lines of a badly-written written method with variables reused all aroundover, I'm totally lost.
- Some modifications or refactoring I've done introduced bugs in other places of the application, etc.
- With noLacking any documentation, tests and, or an observable architecture and combined with badly named methods, I feel that I filledfill up all of my available working memory and there. There is no room left over for all the other things I have to keep in memoryremember in order to understand the code I should modify.
- Constant interruptions at the workplace disturb me and slow me down.
- I can't remember more than two or three tasks at a time without a bug tracking system, and I forget all of them duringover the weekend.
My colleagues don't seem to have similar issues.
- They achievemanage to debug badly written methods much faster than Ime.
- They introduce lessfewer bugs than I do when changing the codebase.
- They seem to remember very well all they need to in order to change the code, even when it requires reading thousands of lines of code in twenty different files.
- They don't lookappear to be disturbed by emails, ringing phones, people talking all around, and other people asking them questions.
- They don't want to use athe bug tracking system (that theythat we already have, since we use TFS), preferring. They prefer to just remember every task they should do.
Why does thatthis happen? Is it a particular skill developers acquire when working with badly written code for a long time and to the fact that I have no enough? Does my relative lack of experience with bad code contribute to these problems / feelings? Do I have issues with my memory?