r/learnjava • u/infosec_farmer • Jul 06 '20
Think more, write less
Getting away from the computer and going for a walk or a drive has really helped me when I get stuck. I'll go through what I need to do and the ways I've learned to do it. Then bam, I'm ready to charge into the problem when I'm back at the computer.
14
6
u/bfd71 Jul 06 '20
Think that should be:
Write less, Think more, Don't worry about your code or what it's good for...
3
Jul 06 '20
Haha i do the same! I usually like to take my dog for a walk and it really makes me super productive when I come back! Especially when I have a huge problem to tackle
3
2
u/techbumLabs Jul 06 '20
This a typical example of Focused vs Diffused learning. When you have are Focused staring at your computer and trying to think it doesnt let your mind wander much. When you walk away from the computer just opening up your thoughts a bit more your creative juices start flowing and helps you think in more different ways.
1
1
u/kinghammer1 Jul 07 '20
This is true of almost every conplex problem not just coding. This past semester had a calculus 2 test in the evening and I spent hours studying and doing homework problems so I could prepare right up until the test started. I bombed the test, i mean not terribly i passed it because of the curve and extra points i think because of covid but by the time the test came around I was so burned out and i was drawing blanks panicking looking through all the problems to find the ones i defitinely knew. Next day I woke up made some coffee and looked over the test and some of those questions that I was so lost on suddenly came so clearly.
17
u/foofaw Jul 06 '20
The other side of this is that it's possible to think too much and not make progress in getting some kind of code up and running to be able to test. I would argue that it's common for intermediate level programmers to think too much.
Think, then write, then test, then think again. This is the eternal cycle of programing.