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

> I have to focus on keeping the code non-confusing and writing comments even when alone

This is the key. When I was younger, it was drilled into my head "be kind to your future self". My future self is either maintaining the codebase, or ensuring that someone else is - and the best way to be kind to myself is to make both of these things easy.

I comment my code, even when it's not a difficult segment. I try to capture my thinking process - in the most organizationally friendly way. It makes a world of difference even to me, should I edit my own code a year later. I try to install this into everyone I mentor.



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

Search: