Ask HN: Do you always FULLY understand the code you are working with?
Is this just me or are other devs experiencing the same?
Is this just me or are other devs experiencing the same?
I have a particular coding style (own-prettifying), and so I can tell if I authored the code or if someone else has. I can also tell if mine's been edited by someone else too.
My style is transforming from year to year to a better one (I hope), so sometimes I cannot recognize my old ones.
You have to. You usually don't have the time or luxury to dig in and understand everything when you have a specific task to complete. Unless you're refactoring some old code where you try and make sure that you understand everything relevant to that codebase. Or you can just wait until it breaks...
Things like automated testing and proper documentation try to help in this regard, but they're useless if they're not kept up-to-date with the code and they have their own set of problems.
With a large codebase, it's impossible to understand everything. So the only thing we can do is to gradually learn how it works.
Sticking with it will make you valuable to the company in time. Moving on will free your mind to do other things.