News for hackers. Stuff that matters.
Re:To the brain, reading computer code is not the same as re... by nico on Sunday May 26, 2024 @10:54AM (#40482625)
And this is why getting interrupted is so annoying

It takes a while to “load up” all of those things in our minds, and it’s a bit like a balancing act, you need to keep balancing them to prevent the whole thing from crashing down

Then if you get interrupted, it is like loosing balance and things falling into a mess. Afterwards you need to sort of pick everything up again, which takes time and effort

More than a couple of those in a row are incredibly frustrating

Pg talks about this in his essay of the maker schedule vs the manager schedule: (2009) https://paulgraham.com/makersschedule.html

Re:To the brain, reading computer code is not the same as re... by tetris11 on Sunday May 26, 2024 @11:04AM (#40482704)
I had this a lot in my 20s, but I notice in my 30s that an interrupt won't derail me as much.

It's not that my brain is better at caching states, I think it's to do with being a better coder: meaningful comments, better proficiency in using the IDE, knowing when to not implement something from scratch,

Re:To the brain, reading computer code is not the same as re... by recursive on Sunday May 26, 2024 @06:08PM (#40485842)
If you're lucky enough to be working on your own code, that can work.
Re:To the brain, reading computer code is not the same as re... by kinos on Sunday May 26, 2024 @06:29PM (#40486000)
Taking notes, taking notes, taking notes. Notepad as an external memory is just an amazing game changer for this. Doesn't even need to be deep, just a running tally of what you're thinking to get it to somewhere that you can reference it instead of running it on a loop in your short term memory. Makes fading in and out of it so much easier. I treat it like a conversation with myself half the time and the other half the time like I'm writing a reference book for someone else. Its worked well for fresh code, code to be, and analyzing existing code made by someone else. Cannot recommend it enough.
Re:To the brain, reading computer code is not the same as re... by gsuuon on Sunday May 26, 2024 @10:33PM (#40487139)
Note taking is great not just for recovering from distractions but also preventing them in the first place. Just jot down branching tasks that would've been a distraction and come back to them later instead of being the Hal fixing a lightbulb meme.
Re:To the brain, reading computer code is not the same as re... by Nevolihs on Sunday May 26, 2024 @07:04PM (#40486198)
There's a fairly simple explanation for this. We've seen in studies that experts aren't fundamentally any better at remembering things. We just get better at chunking more and more abstract groups of information together. We can never increase the around 7 pieces of information we can hold in short-term memory. But we can increase what and how much those 7 pieces represent.