4 ms·
Good programmers sometimes have to do weird things. Leaving a note about that weird thing is probably a good idea.
by DanBC 12y ago
Good programmers sometimes have to do weird things.
Leaving a note about that weird thing is probably a good idea.
- dllthomas 12y agoI agree with this, but I also think it's better if you can avoid the weird thing.
- notduncansmith 12y agoIn my experience: A novice programmer will just do the weird thing (no comments). An intermediate programmer will spend twice as much time as they should, trying to think of an elegant solution, before doing the weird thing anyways (and maybe leaving a comment). A good programmer will just do the weird thing, leave a comment, and move on.
- dllthomas 12y agoI somewhat agree, except possibly for the "should". I think that trying to think of an elegant solution (and then accepting that you can't, where appropriate) is an important learning process. Of course this depends on context; spending time on learning is sometimes inappropriate.
- notduncansmith 12y agoI agree with that. Perhaps more accurate phrasing would be "more time than the seasoned developer would have". Part of getting to the third stage is learning those types of lessons during the second stage - which only comes with experience.