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

I try to sneak in refactoring with other tasks.


I find the best method is:

1. Figure out what needs doing and what code you need to use

2. Refactor the code you're using until the new code or change is easy

3. Make the change

4. Tidy and document.

Repeat

I often also document during step 1, while I am trying to understand code and realise that comments are missing.




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

Search: