Nothing more enchanting than when the answer to your coding problem literally comes to you in a dream. Had an array issue in C++ where I literally woke up saying "I don’t need a ghost array to search after all is said and done, it’s already sorted!"
Comment on Stare at it.
Lmaydev@programming.dev 6 months ago
I find for coding problems it’s actually better to walk away and let it tick over in your mind.
You’ll often get a shower thought type moment.
frauddogg@lemmygrad.ml 6 months ago
lennivelkant@discuss.tchncs.de 5 months ago
Me, staring at my code, fiddling around, retrying it over and over: “WHY WON’T YOU WORK, DAMMIT?”
Me, late at night, trying to sleep, suddenly wide awake: “Oh that’s why!”
Me, the next morning, staring at my code: “…what was it again?”
Dagwood222@lemm.ee 6 months ago
That works for pretty much anything.
Get up and do anything else for a while. School teaches us to sit at our desks and work on the problem. Stop acting like a sixth grader.
brbposting@sh.itjust.works 6 months ago
This got me fired from the daycare
Image
Dagwood222@lemm.ee 6 months ago
You were just staring at the kids. You were supposed to be changing diapers and feeding them. Insert obvious misunderstanding here.
Deebster@programming.dev 6 months ago
One place I worked had a small park, so sometimes I’d go for a lap or two to think something through - the fresh air, mild exercise, change of scenery and lack of distractions wroked wonders.