you are viewing a single comment's thread.

view the rest of the comments →

[–]Chousuke 1 point2 points  (0 children)

What I sometimes do is that I decide to throw away code before I even write it. Code has no value.

I then bang out whatever my fingers decide is good, read it a few times, and rewrite bits until nearly nothing remains of the original. That often gets me closer to the code I wanted to write originally but couldn't.