4 ms·
There is one nice way to push oneself in the zone faster: just open a broken test in your test suite, it will point you to the next step. [edited to clarify]
by gbog 13y ago
There is one nice way to push oneself in the zone faster: just open a broken test in your test suite, it will point you to the next step. [edited to clarify]
- keyle 13y agoI quite often leave my code broken so that next time I open the solution I know exactly where I left off. I will often leave a comment there or throw("get X to do Y now")
- jtheory 13y agoI do this as well -- once I have the complete solution to something in my head, I quickly go through the various parts of the codebase that will be affected and drop pseudo-code or even just rapid notes in each place -- which will intentionally break the compilation, so that I can use the compiler errors as a fast & direct way to pick up the threads again if I'm interrupted. For non-compiled code I'll add a dozen line breaks and a note in all-caps to make it jump out in a diff.
- gbog 13y agoGreat but using tests is better, because written correctly you will keep them and they will check forever that the thing is working
- rmc 13y agoI often leave code unchecked in at the end of the day. So the next time I can just "git diff" to see where I was working on.
- julian37 13y agoWhy not commit and "git log -p" the next day?
- kansface 13y agoNot all problems are testable or have tests. Some problems require hours of exploration and careful thought.