8 ms·
To the brain, reading computer code is not the same as reading language (2020)
- yamrzou 2y agoBetter replace the submission with the linked article at the end: https://news.mit.edu/2020/brain-reading-computer-code-1215 https://news.mit.edu/2020/brain-reading-computer-code-1215
- ooterness 2y agoRelated discussion here: https://news.ycombinator.com/item?id=40481536 https://news.ycombinator.com/item?id=40481536
- dang 2y agoWe'll merge that one hither. Thanks!
- dang 2y agoThanks—we changed the URL above from https://learnhub.top/understanding-how-the-brain-reads-code-versus-language/ https://learnhub.top/understanding-how-the-brain-reads-code-.... Submitters: "Please submit the original source. If a post reports on something found on another site, submit the latter." - https://news.ycombinator.com/newsguidelines.html https://news.ycombinator.com/newsguidelines.html
- danybittel 2y ago"Language" in the context of PL is a misnomer. People even scientist seem to fall into that trap (remember the literate programming movement). PL's are better described as "Specifications". More similar to file format specifications, later converted to executables or interpreted. > the researchers showed them snippets of code and asked them to predict what action the code would produce. That is only (a small) part of programming (the simulating in your head). I'd argue that biggest part of programming is organizing and communication.
- jraph 2y agoI disagree. Wikipedia's definition [1] is what I had in mind for language: > Language is a structured system of communication that consists of grammar and vocabulary Programming languages are structured, have grammars (often described formally using a grammar definition for some parser generator) and vocabulary (the set of functions and types you can use, possibly modules and package, basically), and they are used to communicate (with the machines, and with fellow developers). The "file format specification" would be a (subset of) the specification of the language, not the language itself, and yes, a file format specification can describe a language (but I believe we only say this for stuff intended to be read and written by a human - so ZIP would not be a language, but HTML would be). I do agree that programming languages and human languages are not the same thing, they have different characteristics, traits, use cases, behavior… and that's why this study compares them. And that's also why we need to make the distinction. And they also have common stuff, hence the same word. But even if you disagree that they have a relevant amount of common stuff, polysemy is a thing, so it's still "fine" to call English a language and C a language. Quotes around fine because I'm actually only describing what happens: we do call them both "language", that's a fact. > I'd argue that biggest part of programming is It might be, but the paper studies and focuses on programming languages, not the more general practice of programming (which is worth studying, but studies always have a (restricted) scope). > remember the literate programming movement Where's the confusion in / what's wrong this? Some think that it's better to narrate in code and we call that literate programming. I don't share the vision, but everything looks clear to me. [1] https://en.wikipedia.org/wiki/Language https://en.wikipedia.org/wiki/Language
- danybittel 2y agoWho are you "communicating" with? A programmer does not communicate with a computer, through a PL. He or she writes it down, to later be executed or interpreted, so the computer can "communicate" with the user, through the User interface (not the PL). Also, the vocabulary works very different, in a PL almost all of the vocabulary is defined "at hoc", as you go. I mean I don't have a problem calling them a language, people should just be vary not to use language ideas for PL.
- JonChesterfield 2y agoThe paper wasn't linked as far as I can tell but is probably https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7738192/pdf/elife-58906.pdf https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7738192/pdf/eli... > While the programmers lay in a functional magnetic resonance (fMRI) scanner, the researchers showed them snippets of code and asked them to predict what action the code would produce I have a suspicion that writing code and understanding that written by someone else are different skill sets.
- fmbb 2y agoI feel like this is akin to asking someone to read a fairytale and to tell you how many times a person crossed a bridge in it, or what they carry in their hand in the end, or where the apple is when all is done. I don’t think this is about understand what is written, it’s about figuring out what that which is written means.
- wanderingstan 2y agoThat’s an excellent point. I’ve realized that I sometimes read code in more of a “story” mode, where I’m just looking for the gist of what’s happening and what it is “about” rather than the nuts and bolts of how it actually works.
- bigyikes 2y ago“Story” mode is why I like to organize my code top-down, often with definitions appearing after their usages. It makes the code read more like a story from top to bottom. Some like to organize their code such that any term always appears before it is used. Like a math proof or something. I find this somewhat pleasing but unhelpful for understanding the “story” you mention.
- rav 2y agoBoth programs and math proofs are allowed to be written in story mode where definitions can come after their usages. Unless you write in C. There's no story mode in C :-)
- fredgrott 2y agofrom my own exp of rebuilding my mind map after getting control of my adhd through nootropics it seems to be writing and explaining it to someone else forces my brain to fine tune the meta-language mind map of coding it has.
- jraph 2y ago> rebuilding my mind map and > to fine tune the meta-language mind map of coding it has I have difficulties to understand / unpack these parts of your sentence, what do you mean?
- codeflo 2y agoFrom the linked article, they found that it activates the region of the brain that carefully reasons through unfamiliar problems. They also speculate that this might not generalize to people with 30 years of programming experience. Well, fine, a lot of academic research is done with students. But doesn’t that invalidate any comparisons with natural language processing, something that the test subjects do have decades of experience in?
- jraph 2y agoWhat I understand from this is that it could be that with 30 years of programming experience, the region of the brain that carefully reasons through unfamiliar problems activates less. That would make sense: if you are unfamiliar with programming, it makes sense that the unfamiliar problems zone activates. It would be interesting to study this, to know if this zone activates because of the unfamiliarity or if it still activates with experience while dealing with code. It could be that the zone will activate regardless (i.e. because when you are reading code, you are somehow always dealing with unfamiliar stuff - because this is why you are reading code in the first place usually) or not (i.e. because reading code is now familiar). > But doesn’t that invalidate any comparisons with natural language processing, something that the test subjects do have decades of experience in? It could: the test subjects would probably need experience in both natural language processing (which they have) and programming for the comparison to be fair. We most likely won't have "as familiar in both stuff", so we'll most certainly have to just do with "familiar enough with code".
- abcde777666 2y agoAnecdotally, looking at code written by someone else always goes to 'unfamiliar' territory. I can only read code I'm very familiar with like a book.
- 8372049 2y agoEqually anecdotally, I mostly agree but have a friend who writes code much like I do. Reading his code is like reading my own.
- upmind 2y agoPeople have always told me the best programmers/computer scientists are also great mathematicians and this seems to support that. Esp thinking about Turing, Von Neumann and Knuth
- blueflow 2y agoYou can tell because code has no narrator voice in your head when you read it.
- chownie 2y agoNarrator voice doesn't kick in for me until a character speaks, narration is voiceless.
- tstrimple 2y agoThat must be nice. My internal dialog never shuts the fuck up.
- laurowyn 2y agoI would say `narrator voice` in this context is distinctly different from internal dialogue. Obviously the internal voice can narrate to yourself, but that voice tends to be slightly different in my experience. Narrator voice is a specific voice, cadence, pattern etc. that your internal voice takes on when reading a narrative, rather than the narration of your experience. For me, I have a different voice when reading/writing technical documentation compared to reading/writing fictional works, which both are different from my day to day internal dialogue.
- vinceguidry 2y agoThese folks have a proven track record in shutting that thing up if it's worth $500 to you. https://45daystoawakening.com/landing-page1594666682471 https://45daystoawakening.com/landing-page1594666682471
- codesnik 2y agowell, people are different. I feel like I have narrator voice for the code, not exactly the same way books do, but still something similar. Also when I'm trying to read code I feel distracted and annoyed by any background noise where I can recognize words, like speech or music in a familiar language. And I can't talk while coding, it messes up what I'm typing. Also I really prefer english-like languages, like ruby, to more sigil or symbol loaded, like rust, or full of abbreviations and operators, like Haskell. But I'm sure other developers have other brain pathways activated.
- apantel 2y agoI can tell this is true because every now and then with enough syntactic sugar I write code that CAN be read almost like language, and reading it that way takes a shift of mind that feels weird. It’s like putting on a different set of goggles.
- gilleain 2y agoYeah I feel like this is why fluent APIs sometimes irritate me. Like they can be clever, and can be natural: do(thisThing).and(thisOtherThing).until(someStopcondition).... but when this breaks down it becomes quite ugly.
- crazygringo 2y agoThis definitely feels intuitively correct, at least for how my brain works. When I'm reading language (prose), so much is happening -- what is the writer's overarching point and how does this fit in, parsing tons of ambiguity (a word can have lots of meanings), picking up on the writer's "style" (short and to the point? verbose and flowery?), sometimes enjoying the rhythm and even "musicality" of a sentence, visually imagining a "picture" if it's literature, and so forth. When I'm reading code, it feels much more like following Lego set instructions, or a math proof. And I'm going slowly. It absolutely feels like I'm using a completely different part of my brain from when I'm reading. Yes there's a little bit of overlap -- variables can use long descriptive names, and I might be reading a non-fiction article about economics that uses some of they math-y concept-building I use in reading code. But that's about it. Technically both have a "grammar", but they written language grammar has a flexibility and artistry and ambiguity about it, while computer grammar is rigid and logical and unyielding. Interpreting them feels like they use very different parts of the brain indeed.
- ants_everywhere 2y agoI run a YouTube channel that's mostly devoted to reading code: https://www.youtube.com/@ants_are_everywhere https://www.youtube.com/@ants_are_everywhere I (try to) read code from popular open source projects. It's a bit like sight reading in music because the idea is that I go in blind and try to make sense of it. This rings true to me: > The researchers saw little to no response to code in the language regions of the brain. Instead, they found that the coding task mainly activated the so-called multiple demand network. This network, whose activity is spread throughout the frontal and parietal lobes of the brain, is typically recruited for tasks that require holding many pieces of information in mind at once, and is responsible for our ability to perform a wide variety of mental tasks. There is language of course, but I'm not working hard to process the language so it wouldn't show up as an fMRI signal. I am often holding several things in mind at once, including things like what the code does, what the authors are trying to do, what the author's background might be, how similar software works etc. I did study math, and it also doesn't really feel like reading or doing math.
- inciampati 2y agoTo me reading code is reading math. It feels exactly the same. Same pattern about holding lots of things in mind at once.
- nkozyra 2y agoMost code is interpreted as declarative regardless of how it's written. I've always interpreted a chunk of functionality as a block of logic. Which is why syntax structures like if/else feel do natural. But we don't really follow natural language the same way.
- jack_riminton 2y agoWhat coding language/s do you normally use and what things are you most often coding?
- cgriswald 2y agoLikewise. Both code and math are almost physical objects in my mind. I hold these objects and relationships between them in my mind. I find it interesting that for language I find reading easier than writing but for code or math it is the opposite. When reading code or math it almost feels the same as when I’m learning a foreign language and trying to read it. I have to “translate” it into the my internal “objects”.
- theodric 2y agoAt the risk of just being flippant, duh. Language is a means for expressing thoughts, feelings, emotions, and data. Code is a means for instructing a machine how to behave. One encapsulates as much of the experience of being a human as we've been able to cram into it, and the other is a shopping list. They are not the same.
- Kim_Bruning 2y agoThere's quite some things that seem to only/best be expressed as code or mathematical formulas, rather than as natural language. (things like cellular automata come to mind)
- theodric 2y agoGranted, but what about this would suggest that code or math should necessarily activate the language center?
- Kim_Bruning 2y agoIt suggests that the language center may not be sufficient for all forms of understanding. I guess there's a reason why we have the rest of our brains as well! (Possibly the above might seem too glib at first. So, reasoning further...: ) But this is confusing, since natural language should -by necessity- also be Turing complete and thus be able to express anything expressible in the known universe. https://en.wikipedia.org/wiki/Turing_completeness https://en.wikipedia.org/wiki/Turing_completeness Would that mean that some form of Sapir-Whorf would apply, where in the case of some languages, a completely different part of the brain is activated even? https://en.wikipedia.org/wiki/Linguistic_relativity https://en.wikipedia.org/wiki/Linguistic_relativity . I think -intuitively- the best way to see it is some amalgamation of weak-form Sapir-Whorf and Turing equivalence should apply: Not all data structures are equally good at expressing the same things: Some are better than others, depending on the domain.
- mercurialsolo 2y agoWe have come to see with LLM's that language can be generated by using math. Would love to see if this is the same when reading different patterns of code - functional vs object oriented. Where do product specs or technical specs lie? All of this feels more pseudo-science to me - the distinction between language and math is not well understood at the moment.
- jack_riminton 2y agoI wonder if some coding languages are more akin to 'normal' languages than others. I found it interesting that the scratchJS activated more of the brain associated with spatial tasks which makes sense as I believe scratch is most often used for computer game-type apps?
- distortionfield 2y agoA really interesting finding considering how many comparisons of code to literature exist. I.e. the advice of laying your files out like a “newspaper”, writing your code in logical evolutions like an essay, etc…
- IshKebab 2y agoI've never heard that advice about newspapers? Maybe you're thinking of literate programming. Anyway I don't think it's a remotely interesting finding. Anyone that has done any programming knows that it is not like natural language. We even explicitly know that from the complete failure of languages that try to be programming languages and natural languages like AppleTalk. The fact that you use English words in your identifiers and comments in your code doesn't make it English any more than writing a paper about maths and using `m` for mass means maths is linguistic.
- distortionfield 2y agoI’m not thinking of literate programming, no. I’m familiar with that. I’m referring to a fairly well-known recommendation from Clean Code. https://www.baeldung.com/cs/clean-code-formatting#vertical-formatting https://www.baeldung.com/cs/clean-code-formatting#vertical-f... I don’t agree that “anyone who has done any programming” knows it’s not the same. The number of comments to the contrary in this thread is evidence enough. The parallels between natural and programmatic languages are not just undeniable but often useful, and how the human brain models its understanding of code is orthogonal to that utility.
- Ericson2314 2y agoDoes anyone actually read code in textual order? I am much more often reading vertically, like a shallow AST traversal.
- hashemian 2y agoIf you are interested in this topic, I suggest watching the conversation between Edward Gibson and Lex Fridman. In the middle of the conversation [1] Edward talks about how there is a "human language comprehension network" within human brain, which gets activated only when we read or speak in any human languages, but nothing else. For example for those speaking multiple languages, reading or writing in any of those languages activates the network. But reading gibberish or computer code, neither activate the network. [1] https://www.youtube.com/watch?v=F3Jd9GI6XqE&t=4906s https://www.youtube.com/watch?v=F3Jd9GI6XqE&t=4906s
- randomdata 2y agoStands to reason. The brain has to constantly resolve ambiguity when reading natural languages, while artificial languages are (usually) designed to be free of ambiguity.
- JumpinJack_Cash 2y agoDuh, not even reading math is the same as language. That, I feel, is the greatest barrier for math teaching in our education system. The need to compress everything into a line or two, supposedly for ease of transcription and speed. Hopefully VR and AR can bring about a novel way to teach math which is much more visual/extensive and less about signs and the need to compress
- djtango 2y agoWhile names reveal intention I do find it easier to reason about code when everything has one letter variables. If I'm trying to think about an algorithm or just some complex logic, the shorter the names, the easier I can manipulate things and reason about them I have found
- JumpinJack_Cash 2y agoWhat I am trying to convey is that presently your way is the only way, whereas we deserve something to enable everybody to contribute. Much like some people get their best intuitions under the shower whereas others do it while walking, other still have them while listening to music...
- xg15 2y agoI'm more surprised that anyone with any experience in programming languages has actually thought this could be the case. Making programming languages superficially more like human languages is one of the classic rookie mistakes of programming language design. (See Perl's "do what I mean" paradigm and the chaos that resulted from it) I think two important differences right there are that programming languages are more like "constructing" some sort of entity - a formula, an algorithm, a data structure, an architecture of different components, etc" than it is about communication. Consequently, a lot of "thought" when programming is about the implicit properties of that thing being constructed and less so about the syntactic specifics. You can do the same in human language, e.g. if you write a recipe, a legal text, a mathematical definition, rules for a board game or instructions for an LLM, but human language can also be used for many modes of communication that have completely different purposes. I think a comparison of brain activity between reading computer code and reading formalized human language - or between reading formalized and non-formalized human language would be more interesting.
- itronitron 2y ago>> Making programming languages superficially more like human languages is one of the classic rookie mistakes one of the least productive programmers I've worked with was obsessed with Groovy
- Izkata 2y agoI'm approaching 30 years of experience and I do read code like human language. The visualizations I'm using for data structures aren't really much different than visualizing a scene from a book.
- Tor3 2y agoKnowing and using a bunch of programming languages, and also knowing and using several human languages to various levels, I'm firmly in the camp which says that these are totally, utterly different things. Learning a programming language is just as learning any other particular skill (though it's better if you have a programmer's brain, or rather, interest), while learning a human language is.. just very different. And tremendously more difficult, and it doesn't help that it's mostly a semi-conscious business, in fact "studying" in the general sense gives very little return.
- calibas 2y agoTo me, reading new code is like separating a bunch of string that's been tangled together. What thread goes where, what's it's purpose, how is it connected to the other threads? It's a very active process. Reading language is different, I move my eyes left to right, top to bottom, to consume someone else's ideas. It's a much more passive process than reading code.
- neom 2y agoI'd be curious to see some research like this done in children with dyslexia. Dyslexia seems to like things that more bilaterally use MD (I'm dyslexic so I often think about brain functioning in that context).
- ginko 2y agoThis feels intuitive to me. At least for programming languages I know well "reading" code is more like looking at it from a structural point of view. Like reviewing a diagram or flowchart. I don't usually read code from front to back like you do with natural language.
- nickdothutton 2y agoTo me, reading code is more like looking at one of those pictures of a set of gears and then being asked whether “gear A turns anticlockwise or clockwise”. At least this is how it feels. It’s more like studying a mechanism than understanding language.
- jwie 2y agoMight not be the same, but reading computer code and Ancient Greek or Latin are remarkably similar skills. I could be convinced that parsing a language at that resolution isn’t how language processing works for general use, but that’s like saying diagraming a sentence isn’t speaking a language. Technically true but missing the point.
- emporas 2y agoAgree, something i noticed also, is that people who make PLs, like Guido van Rossum (Python), Rich Hickey (Clojure), Guy Steele (Common Lisp), Stroustrup (C++) and many others, they use natural language expertly. They express their thoughts in a simple way yet accurate, they are not getting confused, they do not use a million "you know" and "like" hand waiving and getting lost in the weeds. Stating that PLs are not absolutely the same as natural languages is true, but no association at all? Or very little association? Difficult to believe.
- rhelz 2y agoWhat if I'm reading very well commented code?
- englishrookie 2y agoThen the language area in your brain is activated separately for the comment parts.
- hotdogscout 2y agoIs this not the case for almost everything? Show a dog and show a cat and it'll light up different parts on the MRI.
- alentred 2y agoNot to dismiss the study - I agree that hypotheses require proofs - but, based on my personal experience coding *feels* much more like math, and almost not at all a spoken language, except for the fact that we give identifiable "names" to things (keywords, variables, functions, etc.). Well, not unlike in math in fact. I wonder if the authors (neuroscientists) discussed the premise with programmers and linguists to formulate the hypothesis. I mean, I would say that the question should have been: are the same regions of the brain activated when doing math/chemistry/physics/neuroscience(so meta!)/science and coding, instead of when talking/writing/reading and coding. Maybe there are people who experience coding differently - please, let me know if so, but I would be so much surprised.
- bborud 2y agoIt would be interesting to look at programmers with very long (2-4) decades of experience solving programming tasks in different domains. Also, I'd be interested in seeing what happens when they write code for domains entirely new to them vs very familiar.
- aleph_minus_one 2y ago> based on my personal experience coding feels much more like math, and almost not at all a spoken language To me, both spoken/written natural languages and programming languages feel a little bit like math. :-) (no joke!) I thus often tend to analyze subtle aspects of words just like one does code audits for hidden backdoors (admittedly - native speakers of English agreed - this is easier and more yielding to do in German, my native language, than in English).
- bossyTeacher 2y agoThis has been obvious to know who programs and speaks more than one language fluently. There was a government of an anglosaxon country trying to replace a language subject with programming arguing that programming is a language so kids should be able to choose between foreign language or programming
- nurple 2y agoLex Fridman recently interviewed Edward Gibson, a linguist, and they talked a lot about how the brain processes language, including how someone reading code lights up a completely different part of the brain than language. #426 https://lexfridman.com/podcast/ https://lexfridman.com/podcast/ ETA: I believe Evelina Fedorenko, from this paper, is Edward's wife.
- Salgat 2y agoI believe it. My worst grade in primary school was french and I'm having such a hard time learning Chinese compared to my peers (taking evening online classes in community college) but programming has always come naturally to me. Completely different skillsets as far as I'm concerned.
- aleph_minus_one 2y ago> Completely different skillsets as far as I'm concerned. My experience differs: I find the way how programming is typically (also self-)taught much more fitting to my brain than how natural languages are (also self-)taught. From my experience I do believe that if natural languages were taught in a different style, it would be much easier for a programmer brain to get good in them (I also consider it to be plausible that there might exist a way on how to teach programming languages that is more natural to "language-minded brains").
- lambdaxyzw 2y agoMy worst grade in school was German. Then, after graduating and when working my third programming job, I've started learning it again and I realized I'm actually really good at human languages (learning words and reading came naturally to me). It's just a school environment which stopped me.
- kkarakk 2y ago[link]https://youtu.be/F3Jd9GI6XqE?t=4847 https://youtu.be/F3Jd9GI6XqE?t=4847 to relevant section
- IIAOPSW 2y agoI was just thinking today about an idea to introduce some programming constructs to legal documents like contracts and organization policies/procedures. The specific situational semantics inside the documents would still be natural language and meant for human decision makers to implement, but the control flow aspects would be rigidly formalized well enough that documents conforming to this standard could be automatically turned into flow charts. More generally, it would ensure the documents conforming to the standard are able to be "read like a machine" to a certain degree (if not outright machine readable), which has implications for the ability of regulators and judges to "debug"/"trace" situations, or to pro-actively identify "edge cases", or to make tooling which assists with analyzing the documents and related paper trails, irrespective of the particular organization where the matter came from. So as a follow up to this research, I'm really interested to see, does the brain read legal/formal documents more similar to how it reads code, or more similar to how it reads natural language. Or is it somewhere in between? Does it change when we introduce some syntax constraints on the legal documents? How much rigid syntax does there need to be before the brain switches from one mode to the other?
- Izkata 2y ago> I was just thinking today about an idea to introduce some programming constructs to legal documents like contracts and organization policies/procedures. In my late teens I saw a contract my dad had brought home, and that one at least already had some basic constructs - I saw analogues to variables, logic/conditionals (as used in a programming language rather than natural language), and possibly even subroutines. And that's just what I remember, it wouldn't surprise me if there were already more such commonalities. It would certainly explain why legal documents are so difficult for the layperson.
- SaintSeiya 2y agoNot surprising at all, reading code is not like reading prose, not even doing math, is more like a puzzle building in the brain. There's a myriad things to mentally connect and substitute/translate in realtime in order to understand what the code is doing: each function, symbol, variable, statement, abstractions all the way down that makes reading code even more complex than writing it in the first place.
- itronitron 2y agoYes, and I think the argument could be made that code is the exact opposite of language, since it's a set of machine instructions that lay out what the computer will do and can't, or won't or shouldn't, be a metaphor for something else as happens in the domain of language.
- tgv 2y agoIt looks different and has a very different syntax and meaning. Practically yhe only thing it has in common is that it's also called "a language."
- mcfedr 2y agoThanks cap!
- byyoung3 2y agowould rather just do a fmri than a leetcode interview....
- kderbyma 2y agoProgramming is more spatial than linguistic. It requires temporal understanding in order to formulate, and usually data 'structures' are based around physically laying data out.
- aleph_minus_one 2y agoThis claim does hold or imperative programming languages, but does it also hold for strongly declarative ones?
- gls2ro 2y agoI am wondering if the domain model is not influencing the results. If the code is describing a math function then it seems to me reading it will activate the same parts as math. What if they will read a business logic that is about say users creating accounts?
- thefaux 2y ago> “Understanding computer code seems to be its own thing. It’s not the same as language, and it’s not the same as math and logic,” says Anna Ivanova, an MIT graduate student and the lead author of the study. I'm not sure if this is what they are implying but I find the statement "reading computer code is the same as reading language or math or logic" to be an odd null hypothesis.
- karmakaze 2y agoEvery one of these are languages and I'll add music. The purposes and constructed of these types of languages vary so should the thought processes. Computer programs can be written in a proof/solver language which would get closer to math/logic. This puts things on a grayscale IMO.
- janandonly 2y agoBah. This scientific research completely undermines the premise of the book “Snowcrash” that I just finished reading, and loved.
- smitty1110 2y agoAlright, since I did a quick skim over the article liked by @JonChesterfield and didn't find any discussion of how they calibrated their fMRI machine or if they did any Multiple Comparison Corrections, time to post the obvious: http://prefrontal.org/files/posters/Bennett-Salmon-2009.pdf http://prefrontal.org/files/posters/Bennett-Salmon-2009.pdf fMRI is not a silver bullet, do your due diligence everyone. I'll wait for this to be replicated before I read anything into it.
- piloto_ciego 2y agoI have a stupid question, does anything ever actually get replicated? I mean; I have a graduate degree, and I’m proud of the work and I think it could very practically be replicated… but will it? Probably not. If you claim to invent cold fusion probably, but for a study about coding brain I can’t see it being even useful to replicate.
- flkiwi 2y agoFascinating. As someone who has written (and read) a lot of code and written (and read) a lot of legal language, and as someone who has consistently recommended that young people learn programming principles before going to law school, I'd be very curious to see if reading a complex contract prompted the same response. I always heard that "you'll never read for pleasure again" after law school, but, if anything, I read for pleasure more now than I ever did, and my work "reading" feels like something completely removed from it.
- yahoobing 2y agoI would think intuitively it is a different brain process. I wonder if brain-wise reading code is similar to a judge reading through various laws to make a judgement? Is it also similar to reading a math proof? Are all these things different?
- jongjong 2y ago> It’s not the same as language, and it’s not the same as math and logic Not the same as logic? What?? Code is literally logic itself. Code that works with all supported parameters is logically correct code by definition. It's often impossible to prove exhaustively but it can be inferred with very high confidence in many cases. Producing correct code is the goal of all good developers. Just like producing correct equations is the goal of all good mathematicians.
- Jtsummers 2y agoYou missed a paragraph that would help out your understanding of what they're discussing and studying and remove the need to spam the '?' key in mock outrage: > Previous studies have shown that math and logic problems seem to rely mainly on the multiple demand regions in the left hemisphere, while tasks that involve spatial navigation activate the right hemisphere more than the left. Working with Marina Bers, a professor of child study and human development at Tufts University, the MIT team found that reading computer code appears to activate both the left and right sides of the multiple demand network, and ScratchJr activated the right side slightly more than the left. She didn't say anything about what code is in relation to math and logic, she was speaking about how the activated regions in the brain are different between the two tasks. And per the study they are different, or, as she said, "not the same".
- jongjong 2y agoYou should check the article again. My quote came directly from a quote inside the article. My critique was about that quote.
- kazinator 2y agoWhen computers read programming languages, that also doesn't activate anything resembling language processing, so why would it require human language processing capabilities.
- richrichie 2y agoThere is a study i read a while ago which basically said fMRI pattern comparison studies may be suspect because of what fMRI actually does. "Lighting up" may not mean much, at least not in the sense of how papers that do this comparison. It is a shame that I can't locate it. There is probably a book on this topic as well.
- doall 2y agoNot reading but writing code, I have a similar feeling as playing the piano, especially in highly interactive programming languages like Clojure or Common Lisp. Does anyone have similar experiences?
- tgv 2y agoNot me. Far from it, actually. Playing music feels very distinct from programming. However, mathematicians and computer scientists are more drawn to Bach than other people. There's some connection between music appreciation and programming.
- deleted 2y ago[deleted]
- pvdoom 2y agoI think there is some nuance to it.The absolutely best thing for clean code for me has been taking courses in academic writing. But also why would it activate just the language centres of the brain - especially if you are asked to predict what a piece of code would do. I think comparing to say a planning task would be more akin...
- jlmorton 2y agoI mostly work at home, and when I'm coding, I generally have music on. I like to sing along with music, and I sit at my desk singing and coding all day long. But I could never do this if I was reading something. It's impossible to read something and sing something else at the same time. But it's perfectly easy to do while coding.
- ulrischa 2y agoI always think it is like reading Latin
- r0b05 2y agoI'd say coding is more like playing a game than reading. It is initially difficult but once the fundamentals are learnt, the activity becomes one of how to use the fundamentals in creative ways to achieve a goal.
- kovac 2y agoShould have used lisp instead, and see all them networks light up like the new years' fireworks.
- mcswell 2y agoI'm not sure LISP (which I learned while working (at Boeing Computer Services (which no longer exists))) is a good candidate (for a programming language (that would work like human languages (at least the ones I know))).
- Squeeeez 2y agoThis is exactly why I dread the future when people say "oh you will be able to tell the AI what to do, in normal language, and it will do it for you". I do not want to have 8h of "normal" text or speech conversations each and every day. It sounds exhausting. 8h of dealing with programming languages, though, that's fun!
- devsda 2y ago> This is exactly why I dread the future when people say "oh you will be able to tell the AI what to do, in normal language, and it will do it for you" If it ever comes to that, it should be close to pair programming with AI and it should allow a mix of AI generated and human written code. Like unsafe in Rust, we should be able to say "I know what I'm doing here, stay out of my way". Then let AI verify human written parts for correctness by means of tests or any other methods. I think we sort of do this already, but it is the humans who verify the AI generated code and I believe we are a long way from swapping the roles.
- Squeeeez 2y agoPair programming, in my case, mostly degenerates into "no, wait, don't, how about, what if, hm, if you click on the, on the, button there, no not there, left left left, the third from- yeah that one, ah right, thanks for guessing what I meant". (obviously not always, but the language center of my brain is obviously not well connected to the programming center, and I have noticed similar behavior from several other programmers). Let's hope the results are somewhat better than previous attempt ala COBOL. Regarding verification, in my opinion the foundation for current LLMs is, similar to humans, not far from total hallucinations. I am not sure if actual verification is really possible in that direction. At most "well, 99% of the others have been doing it that way for the past ten years".
- martin82 2y agoThat's why Elon is building Neuralink. Then you can condense the 8hr conversation into 8 minutes of thinking :)
- 2y ago
- fivig24 2y agoI could have told them this decades ago. I get migraines with an aura that starts in the middle of my vision and spreads to one quadrant. Years ago they were more commonly in the top right quadrant than they are now. With those, the chances were high that I'd get the symptoms of aphasia too. For about 20 minutes, I couldn't form a sentence or understand one. However, if I was working on embedded C, I could read, write and debug code without any issue. The comments, however, might as well have been in Greek.
- readthenotes1 2y agoCurious. I know 2 dyslexics who coded for a living. Both reported troubles reading code same as literature. I got much better about putting white space to spread things out from working with them.
- spacetimeuser5 2y agoThese MRI machines generate a rather strong magnetic field 3-5 T. Even if it is a minimal 0.5 T, natural Earth's magnetic field is much smaller ~5 × 10^(-5) T. Thus for ecological validity they should have checked that MRI MF really does not interfere with the measured brain function. It can be somewhat ok to solve HackerRank type problems for 30 minutes in such MRI generated field. IRL programming sessions can take up to several hours. And let's see what quality of code would be produced or interpreted for hours in an MF 10000< times stronger than natural. Thus 80% of such neuroscience is non-scalable fragile bs.
- pnt12 2y agoWhen I write code, I'm concerned about two things: - it does what I want - it's easy for others to understand it If I'm doing red green refactor, the red and green phases are all about logic and constraints, but the refactor step is all about communication - I focus on making the code easy to read for others. But if I'm reading code, I just want to know what it does. Só, I didn't make a study, but I'd argue that writing code is more similar to writing natural language than reading code is to reading natural language.