TheaterFire

Computer programmers show distinct, expertise-dependent brain responses to violations in form and meaning when reading code - Scientific Reports

Posted by PenlessScribe@reddit | programming | View on Reddit | 62 comments

Reply to Post

62 Comments

Uberhipster@reddit

is there a tl;dr; version?
View on Reddit #21846114

igoro00@reddit

They showed programmers code with a blatant syntax error and watched their brain activity to see if they got annoyed. Results? They did, in fact, get annoyed.
View on Reddit #22912712

Uberhipster@reddit

thank you you're doing God's work
View on Reddit #23012657

Extra_Progress_7449@reddit

Python programmers...lets evaluate the sober individuals by monitoring drunk individuals....Script Kiddies do not describe Expertise
View on Reddit #22101881

LoopVariant@reddit

The brain-response-based assessments in the article are cool but I find this a more compelling point: >We believe that this is an important distinction to make when it comes **to learning programming languages**. In the current experiment, when considering natural language learning as a model for understanding how programming languages are learned, our focus is on the explicitly taught and learned aspects of natural language. **Specifically, we argue that learning to code might resemble instructed (as opposed to immersed) second language (L2) learning.** This finding indicates that learning a new programming language would be more effective when it is done via instruction rather than by immersion...
View on Reddit #21804314

le_birb@reddit

Anecdotally, I've been having to learn a bit of Julia for a thing I'm doing, and documentation and tutorials for the language have been a hell of a lot more useful than just trying to work out what the code is trying to say, so that seems to check out
View on Reddit #21819555

gwicksted@reddit

Yes, you do need some form of example to start… but instruction alone provides very little retention. It’s practice and tinkering where the real insights occur. Especially brand new coders.. but also experienced coders with new languages.
View on Reddit #22030567

QuickQuirk@reddit

I'm more interested now in what happens when a baby learns a programming language as it's *first* language.
View on Reddit #21820653

ByteArrayInputStream@reddit

Headline in a few years: Three scientists were arrested for cruel human experimentation. They tried to raise children on JavaScript...
View on Reddit #21843632

QuickQuirk@reddit

Better than raising it on C/C++. Too many memory errors and all they did was raise an exception.
View on Reddit #21887546

ByteArrayInputStream@reddit

True, am currently suffering from c++
View on Reddit #21887625

vanhellion@reddit

That kind of makes sense, because it's difficult to learn "good" code in most programming languages purely through osmosis. Because like 80%+ of production code is shit for teaching idiomatic best practices ("do as I say, not as I do" - every programmer who has shipped one or more products). It's akin to someone wanting to learn English, but if the student was surrounded by a bunch of people who talk like [Brad Pitt from Snatch](https://www.youtube.com/watch?v=tGDO-9hfaiI). In that instance, instructed learning would be far more productive.
View on Reddit #21839711

TomWithTime@reddit

I feel lucky that my self learning was focused on translating intent / steps into code. My highschool teacher said I produced some of the most convoluted code she had ever seen.
View on Reddit #21873525

Coffee_Crisis@reddit

Except that devs are generally awful at teaching
View on Reddit #21814324

No-System-240@reddit

i noticed it it says computer programmers and not software engineers. to the outside world programmers are "computer programmers" and not engineers lol (which is the truth anyway). i think it is really only in the software tech field where programmers are refered to as "engineers".
View on Reddit #21859729

Ethesen@reddit

It says programmers because not all programmers are engineers. 
View on Reddit #21955059

orbit_fire@reddit

We solved the interview process. Just hook us up to a monitor and show us code and pick the person whose brain responded most correctly to the right things.
View on Reddit #21792987

Zardotab@reddit

But it may not scale, because if employers use the same test, then candidates will just run practice sessions that mirror such.
View on Reddit #21811584

BeautifulSynch@reddit

It seems that this kind of practice session would be among the most effective for actually training skills though, so is that a bad thing?
View on Reddit #21822482

Crazy_Firefly@reddit

You are underestimating people's ability to find loopholes. People don't "cheat" on brain scans because there is not much incentive. If this becomes a target I'm sure people will discover dumb things like: "If you eat loads of carrots before the test the machine reads lower numbers" Or who knows what else...
View on Reddit #21883695

Bornee35@reddit

Zero activity on the monitor, "we've just found our next scrum master"
View on Reddit #21796339

SittingWave@reddit

rofl
View on Reddit #21846532

draculamilktoast@reddit

Negative activity (somehow), "CEO found"
View on Reddit #21842779

1RedOne@reddit

Look at that! No thoughts followed by a long silence and then “ok what tshirt size is it?” The chosen one!
View on Reddit #21832662

bwatsnet@reddit

This guy corps
View on Reddit #21816473

Coffee_Crisis@reddit

Savage. Not wrong, though
View on Reddit #21814269

Individual-Praline20@reddit

LOL
View on Reddit #21804573

PMzyox@reddit

Spit out my coffee laugh at this oneq
View on Reddit #21802790

DoitfortheLulz-@reddit

Thanks! I hate it.
View on Reddit #21799509

DontOpenNewTabs@reddit

Soon, we will do away with the interview altogether and you will be able to receive rejection emails for jobs you never even applied to.
View on Reddit #21822269

SaltKhan@reddit

Does this not already happen for everyone else??
View on Reddit #21831695

Dongslinger420@reddit

Artificial Human Neural Networks? Abstracted (H) Neural Networks?
View on Reddit #21810021

_Ilya-_-@reddit

Don't give them ideas
View on Reddit #21795204

cmpthepirate@reddit

What's next, musicians know what dots on a page mean?
View on Reddit #21789032

imnotbis@reddit

More like: we detect different brain waves in musicians when we show them three-eighths-notes and staves with 7 lines.
View on Reddit #21795173

Saturnalliia@reddit

I mean like, ya? Isn't that obvious? If I show someone a page from a book written in Cantonese and they understand Cantonese I'm gonna assume their brain processes that differently than mine because I know precisely 0 Cantonese. This study sounds like it just points out the obvious.
View on Reddit #21822311

ps1horror@reddit

Science is about experimentation and observation to PROVE theories. Just saying "well that's obvious" isn't a good reason not to carry out experiments. You phrased your comment as if it was some kinda gotcha.
View on Reddit #21851609

Saturnalliia@reddit

You cannot prove a theory, you can only disprove. That's a fundamental part of empirical science.
View on Reddit #21858095

imnotbis@reddit

Not different brain waves in musicians and non-musicians. Different brain waves in different kinds of music mistakes shown to musicians.
View on Reddit #21832449

Saturnalliia@reddit

Well ya that's kinda the point I'm making. If you showed me a page of Cantonese with tons of errors and issues I could not tell the difference, my brain processes it all the same. But someone who does is going to have a lot of specific neurons firing in there brain that don't in mine because they understand what's wrong.
View on Reddit #21833036

Omnipresent_Walrus@reddit

But a 3 eighth note exists. Dotted semiquavers.
View on Reddit #21804441

radboss92@reddit

Is this suggesting that computer programmers can read and understand code? 🤯
View on Reddit #21850892

robby_arctor@reddit

This is not unique to programmers or code. Unique brain responses have also been measured in musicians when a musical pattern is broken (i.e., Mary Had a Little Lamb, but one note is out of tune).
View on Reddit #21809721

Surrogard@reddit

I'm not a musician but I definitely have responses to this horror. And not only brain responses but physical flinches ...
View on Reddit #21842681

Lone_Gladiator@reddit

I’ve purchased a full stack developer java course. I’d like to ask you what pc should i look for and the accessories (like second monitor and good chair…). Any other advices are well taken since i’m just starting my journey into developing. Thanks in advance to all.
View on Reddit #21800813

Neurotrace@reddit

Weird place to ask. When you're just learning, it doesn't matter. Buy any mid-market computer. 2 monitors is better than 1 but not required. You might upgrade hardware in the future if you decide to specialize in something like AI or high end graphics
View on Reddit #21801559

Lone_Gladiator@reddit

so you suggest going for a custom build and not a laptop? sincerely i didn’t know where to ask so i hijaked this post sorry for doing this
View on Reddit #21801732

Monstot@reddit

Try not to overthink it. If you make this a career there will be plenty of time for that later. Whatever you have will be fine to start and you'll learn as you to what kind of hardware you'll grow into. I recommend C# if you're looking for a language. You can start very basic and simple and work in any type of project, frontend and backend.
View on Reddit #21842082

toastjam@reddit

Modern IDEs can make developing on remote computers pretty seamless. So by the time you're ready for anything that might need something beyond a basic laptop (GPU programming etc) you can just rent one of those online for < $1/hr. Unless you want to code games, but you probably won't be doing that in Java.
View on Reddit #21842030

Neurotrace@reddit

It literally doesn't matter. Go to Best Buy and buy a random Dell laptop or something. It's kind of like asking "should I buy a Ferrari to learn to drive?" Nope and most people don't need a Ferrari. Get a Toyota Corolla. The only thing I'd recommend paying attention to is the RAM. 16GB or more and you'll be fine. I use my laptop for all kinds of programming (especially full stack stuff) and I have 32GB. It's more than I need
View on Reddit #21802078

Wave_Walnut@reddit

Yes, programmers clearly have different brain responses depending on whether the character code used for indentation is space or tab!
View on Reddit #21841224

shiny0metal0ass@reddit

Lol did they just scientifically prove that programmers hate antipatterns?
View on Reddit #21800331

Chii@reddit

or just the OCD ones?
View on Reddit #21840138

mastermindxs@reddit

Mmmm code smells
View on Reddit #21813813

knowledgebass@reddit

wat
View on Reddit #21839253

tough-dance@reddit

Hell, half the time I feel physical responses to violations in form and meaning Bad code hurts
View on Reddit #21834152

rudster@reddit

Lol. Translation for non-programmers: I showed video of people dipping sushi into ketchup to Japanese sushi master-chefs and they looked frustrated.
View on Reddit #21820469

TheRNGuy@reddit

No idea what it means, but whatever.
View on Reddit #21799950

zoechi@reddit

The paper appears to analyze the background about what WTFs/min actually measure https://www.reddit.com/r/ProgrammerHumor/s/QKITOyxeo7
View on Reddit #21798286

daidoji70@reddit

Yeah its pretty annoying
View on Reddit #21796806

zazzersmel@reddit

i would certainly hope so?
View on Reddit #21784203

sambarbygoingn94@reddit

As a programmer myself, this doesn't surprise me. Our brains may not function the same way as others when it comes to deciphering code. It's both a blessing and a curse!
View on Reddit #21784029