3 ms·
When writing code, you don't want to context switch to writing doc comments while holding the problem in your head. So you do it after the fact, if at all.
by SamReidHughes 8y ago
When writing code, you don't want to context switch to writing doc comments while holding the problem in your head. So you do it after the fact, if at all.
- chillacy 8y agoI’ve switched to writing my docs first when writing libraries. it’s like a play on test driven development. The benefit is that I start with a sane and interface if the first thing i think about is the user and not the implementation.