3 ms·
There is no problem with thinking with code by trying things out. We left the punched tape and printed result listing era, we can write and tests partial soluti
by p4bl0 4y ago
There is no problem with thinking with code by trying things out. We left the punched tape and printed result listing era, we can write and tests partial solutions to the problems we try to solve almost for free, and that's a good thing. Don't beat yourself up for doing that :).
Also, there are some limits to what one can entirely store and efficiently think about in their mind.
Of course, it doesn't mean that one should always start writing code straight away without actually thinking first, or without using pen and paper to lay down some facts and think about edge cases if necessary, for example.
- mypastself 4y agoThat’s true. Sometimes you have no idea how some black-box API will behave until you try it. The “think-first” approach usually applies to algorithmic solutions to novel problems. They do both have their place.