Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> You should document your tests, too, because I guarantee the next programmer won't understand your tests as well as you (think you) do. Also: the "next programmer" will be you in a year.

I hear this a lot, but I haven't found the same with myself. I can read and understand old code I wrote.

I attribute it to my IQ being mostly held up by reading and writing comprehension skills. The way I process information makes it easier for me to remember and understand old code (I believe), compared to a lot of programmers whose inherit skills align more closely to things like math and logic.

Documentation can be a rabbit hole for me, and I often don't feel I benefit from it within the code.

I appreciate this is as good tactic for many people, but implying it's for everyone is too dogmatic.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: