3 ms·
If you wrote the code, there's likely a mental model in your head. This is why it is relatively easy to work on a project you were in on from the beginning. a
by m463 5y ago
If you wrote the code, there's likely a mental model in your head.
This is why it is relatively easy to work on a project you were in on from the beginning.
and why it is always a struggle to come into a project with an existing codebase.
I've spent many years working on large existing codebases and it gets in the way of liking your job.
- drewcoo 5y ago> there's likely a mental model in your head Yes, and unless there was a simple typo, the problem is the model in your head. Most bugs come from unchallenged assumptions.
- Jensson 5y agoKnowing that a particular bug can happen is usually enough to debug your mental model though. You just trace back to different assumptions you made and see which of them could cause this bug if wrong, and then fix it.
- wruza 5y agoIn my personal experience, most bugs come from changing a working code, especially at a refactoring. It mixes assumptions in an unpredictable way, because of chaotic code rearrangements and lots attention required to do that correctly. First-time code is much easier to challenge (if you ignore repl development phase which is not “code” yet).