News for hackers. Stuff that matters.
Re:To the brain, reading computer code is not the same as re... by Bob_LaBLahh on Tuesday December 15, 2020 @09:39PM (#25438387)
Yep. My hypothesis is that this is largely because code is non-linear whereas most written music is usually read in a linear fashion. Agree/disagree?
Re:To the brain, reading computer code is not the same as re... by analog31 on Tuesday December 15, 2020 @09:49PM (#25438467)
That seems plausible. Music is written to be read in that way. Writing and sight-reading are a sort of symbiosis. There are no subroutines or abstractions. And a good reader recognizes a lot of patterns by familiarity. There's stuff that goes straight from my eyes to my fingers while I'm thinking about something else. But if you write some completely random note pattern or rhythm (or both at the same time), I might be in trouble.
Re:To the brain, reading computer code is not the same as re... by sethhochberg on Tuesday December 15, 2020 @10:53PM (#25438852)
The pattern recognition (and muscle memory that comes with it) is a huge difference between sight-reading music and programming, IMO.

I'm sure if we tried hard enough we could come up with a pretty good analogy between data structures / algorithms and scales / arpeggios / etc... but I've never felt quite the same when recognizing a familiarish algorithm in code as I would when sight-reading some music and having my fingers perform the right kind of movements out of almost unconscious muscle memory.

Re:To the brain, reading computer code is not the same as re... by rubatuga on Tuesday December 15, 2020 @10:09PM (#25438597)
There are loops which could be considered subroutines. Also if else.