logoalt Hacker News

danesparzayesterday at 6:05 PM1 replyview on HN

I think you mean to say, "code you don't understand is a liability, not an asset"

But please correct me if I'm wrong.


Replies

malfistyesterday at 7:38 PM

No I said what I meant. Code is a liability, though to your point, code you don't understand is an even bigger liability.

Even if I understand all my code, when I go to make changes, if it's 100k lines of code vs 2k lines of code, it's going to take more time and be more error prone.

Even if I understand all my code, the intern I hired last week won't and I'll have to teach it to them.

Even if I understand all my code, I don't remember everything all the time and I can forget about an edge case handed in thousands of lines of code.

Even if I understand all my code, I don't understand my co-workers code, and they don't understand mine.

Even if I understand all my code, I might not want to work for this company the rest of my life.

show 1 reply