|
|
|
|
|
by JSR_FDED
386 days ago
|
|
After taking a break I often realize I can delete all the code from the last hour and either define away the problem entirely, or fix it in a much simpler way. But it’s so scary to depend on that flash of insight, after all it’s not guaranteed to happen. So you keep grinding in an unenlightened state. If there was a Reliable way to task your subconscious with working on a problem in the background I could probably do my job in a third of the time. |
|
So for a software project, I break it into parts recursively. Sometimes for a module, I can build some scaffolding even when I'm not sure about the full implementation. I can go up and down that tree of problems and I always have something to break away from my current thinking track. So there's always a lot of placeholder code, stubs, and various TODO comments around my codebase. And I rely heavily on refactoring (which is why I learned Vim, then Emacs as they helped me with the kind of quick navigation I need for that approach). Also REPL and/or some test frameworks.
[0]: https://www.youtube.com/watch?v=prQH5V5inbA