Live data from Hacker News

The language brain matters more for programming than the math brain? (2020)

massivesci.com

181–190 of 465 posts

Re: The language brain matters more for programming than the math brain? (2020)

#181
post #62

Good code doesn’t just solve a problem, it solves it in a way that’s readable and modular. I think the problem-solving part of coding requires math skills, while the organization part requires writing skills. The organization part affects the problem-solving part, because if you write messy code (that you can’t reread once you forget or extend without rewriting) you’ll quickly get overwhelmed. Writing large math proo…

> Whereas programming has more “small steps”: even someone who’s not smart (but has grit) can write an impressive program, if they write one component at a time and there aren’t too many components that rely on each other. ... In my experience, learning to write one component at a time (and try the code, and make sure it works before proceeding) is itself a skill that many struggle to develop. Similarly for avoiding…

I recall reading about a professor at uni which carefully designed his tests throughout the year so he could determine if a student had grasped a certain programming topic. He also tracked effort, through handins and such.

After collecting data for a few semesters he concluded his students could be clearly divided into three categories: those who just "got" programming, those who understood it after working hard, and a small group that just didn't grasp regardless of effort.

Re: The language brain matters more for programming than the math brain? (2020)

#183

> language ability and problem solving skills First red flag is here. The title rewrote this to be language only. That problem solving skills are relevant is pretty obvious, but language less so. I’ve been programming for most of my life and I don’t consider myself a very good speaker. My language skills are passable. And learning new languages? Forget it. So I’m skeptical. Let’s look at the study. First of all, “mat…

> That problem solving skills are relevant is pretty obvious, but language less so. To me, problem solving ability is precisely the same as the ability to articulate the problem and a solution. I don't see a major difference. If you can solve a problem but you can't articulate what the problem is or why the solution will address it, I wouldn't call you a good problem solver. If you can articulate the problem well but…

There are different ways of solving a problem though, some which require more critical thinking than others. Trial and error (in industry you can sound fancy by calling it “choosing parameters empirically”) requires no understanding of the underlying process, only the ability to measure the outcome.

If you’re debugging, you can get by for a long time by trying things until the compiler shuts up. It’s not efficient or good but people do it.

Re: The language brain matters more for programming than the math brain? (2020)

#184
Hold your horses. The summary of that article does not offer any proof of what the title says.

* It's a small sample, and they did not analyze the people who didn't complete the course. That's dubious. Those 6 could have had a massive influence on the outcome.

* The summary does not present the actual numbers. These are: "fluid reasoning and working-memory capacity explained 34% of the variance, followed by language aptitude (17%), resting-state EEG power in beta and low-gamma bands (10%), and numeracy (2%)". Note: numeracy, not math.

* The test result was only partially programming related. 50% consisted of the results of a multiple choice test with questions such as What does the “str()” method do?. Linguistic knowledge indeed.

* It's about completing a 7.5 hour Python course. That's learning indeed, but only the very beginning, where abstraction is not in play. The early phase is about welding bits of syntax into working order.

* The numeracy skills required are very low for such tasks, as the tasks are simple, and mainly require thinking in steps and loops, whereas numeracy aptitude is generally measured on rather problems involving fractions.

Edit: the paper uses the Rasch-Based Numeracy Scale for this, which seems to involve estimation and probabilities.

* 17% explained variance is a rather minimal result, and you cannot easily compare factors in such a small design, even if the other one is only 2%. That's a rather hairy statistical undertaking.

* Linguistic expedience might be explain the speed with which the course was followed, since the instruction is, obviously, linguistic. Hence, this factor is not necessarily related to the actual learning or programming.

* The argument from beta waves is clutching at straws.

* The argument that "perhaps women should have more of a reputation for being “good” at programming" because they score better on tests, is --however well meant-- utterly ridiculous. It reverses correlation to causation and then turns that into a fact.

* That linguistic skills are useful for programmers is widely understood. However, this is not because of the actual coding, but because the coder needs to understand the environment, the specs, the users, etc., all of which is transferred via language.

* And of course, the statistical result relies on Null Hypothesis Test Significance, which is rotten in its very foundations.

* Note that the CodeAcademy course "Learn Python 3" is 23 hours in 14 lessons.

Re: The language brain matters more for programming than the math brain? (2020)

#185

It think this is silly on multiple accounts. I'll claim that there's not real thing such as a "language brain" or "math brain." I'll also claim that most people don't know what math is, and that their evidence supports a "math brain". Math isn't about calculations/computations, it is about patterns. You get to algebra and think "what are these letters doing in my math" but once you get further you think "what are the…

> I'll claim that there's not real thing such as a "language brain" or "math brain.

Did you even read beyond the silly headline?

The article itself is about pre-testing subjects on a range of capabilities from problem solving ability to second (foreign) language learning ability, and then seeing how these correlated to the ability of the test subjects to learn to code.

The results were basically exactly what might be expected - people who learned Python the quickest were those who scored the best at learning a second language, and those who learned to wield it the best were those who had scored the best at problem solving.

Not surprisingly math ability wasn't much of a predictor since programming has little to nothing to do with math.

Re: The language brain matters more for programming than the math brain? (2020)

#186
post #170
post #163

Earlier quoted context omitted.

I disagree that the current generation of AI has "solved" artistic fields any more than it's solved math or programming. Just as an LLM may be good at spitting out code that looks plausible but fails to work, diffusion models are good at spitting out art that looks shiny but is lacking in any real creativity or artistic expression.

> "looks shiny but is lacking in any real creativity or artistic expression." My experience with that is that artistic milieus now sometimes even explicitly admit that the difference is who created the art. "Human that suffered and created something" => high quality art "The exact same thing but by a machine" => soulless claptrap It's not about the end result. A lot could be written about this but it's completely soc…

Truly great art, the kind that expands the field of artistry and makes people think, requires creativity; if you make something that's just a rehashing of existing art, that's not truly creative, it's boring and derivative.

This has nothing to do with whether a human or AI created the art, and I don't think it's controversial to say that AI-generated art is derivative; the models are literally trained to mimic existing artwork.

Re: The language brain matters more for programming than the math brain? (2020)

#187

Earlier quoted context omitted.

Most coding doesn't need much of any math past boolean logic and very basic set operations. I'm much more likely to spend my time studying DB and interface schemas to understand how something works than doing a lot of mathy fiddling. Sure, some people write game engines and such, but even much of 3D graphics doesn't need anything more complicated than the first half of a linear algebra course.

> Most coding doesn't need much of any math past boolean logic and very basic set operations Coding IS math. Not "coding uses math", I mean it is math. Mathematicians do not deal in objects, but in relations among objects; they are free to replace some object by others so long as the relations remain unchanged. Content to them is irrelevant; they are interested in form only. - Poincare[0] I don't know how you code, b…

I don't think that quote really supports coding and math being equivalent. To me, the quote provides an abstraction of math through a structuralist perspective. Language can also be viewed through this abstraction. I think coding could share the abstraction, but that doesn't make the three of these fields equivalent.

Re: The language brain matters more for programming than the math brain? (2020)

#188

Earlier quoted context omitted.

100%. I have 2 kids and what they learn at school is absurd... I have to put them in an extra class outside school where they learn a lot of the more abstract stuff, albeit as you say at a level which makes sense (not too deep).

Yeah, certainly we'd need to adapt classes to match their level, but we've tried before[0]. While it "failed" it also seemed pretty successful, especially in France and the USSR. I mean is it any surprise kids get bored in math? They spend years learning the same thing. You spend years learning addition and multiplication (subtraction and division are the same operators). I sure as hell hated math as a kid. Especiall…

> I mean is it any surprise kids get bored in math?

Indeed. Kids did not evolve to learn things because they would be useful years down the road. But they did evolve to inhale knowledge at very high rates wherever it extends their capabilities in the moment.

My take on this is that math should be tied to kids crafting, experimenting, and learned directly in the context of its fun and creative uses.

Geometry screams out to be developed within a context of design, crafting, art and physical puzzles. Algebra, trigonometry, calculus ... they all have direct (and fun) uses, especially at the introduction stage.

The availability for graphics software, sim worlds, 3D printing, etc. should make math, from the simplest to most advanced, more fun and immediately applicable than ever.

Boredom with math is a failure to design education for human beings.

(Then there is the worst crime of all - moving kids through math in cohorts, pushing individuals both faster and slower than they are able to absorb it. Profound failure by design.)

Re: The language brain matters more for programming than the math brain? (2020)

#189
At the beginning, the article mentions correlation with language skills AND problem-solving. Focusing only on language skills in the second half is misleading. According to the abstract of the original paper, problem solving and working memory capacity were FAR MORE important.

Also, the article doesn't mention "math skills". It talks about numeracy, which is defined in a cited paper as "the ability to understand, manipulate, and use numerical information, including probabilities". This is only a very small part of mathematics. I would even argue that mathematics involves a lot of problem solving and since problem solving is a good predictor, math skills are good predictor.

Re: The language brain matters more for programming than the math brain? (2020)

#190

Earlier quoted context omitted.

How much math is in a typical CS program these days? Calc 1-3 (maybe 3, varied by school), Linear Algebra, Statistics (inconsistent across programs), Discrete were pretty much it when I was in school 25+ years or so ago. That's only 4-6 courses depending on the university, though some where the CS dept was more strongly associated with an engineering college might have added Diff Eq and others. (I got interested in C…

I'd argue none of that math is really necessary. While I have used most of my classes at least once, it was never a barrier to advancement in my career. Hell you could say the same thing about any of the theory. Like yea it's cool I know what a "merkle tree" is but it ultimately is a distraction from most of the skills you need to work with git. Anyway, both computation and math are grouped under "apriori" knowledge.…

When I did my CS degree in New Zealand there were just two mandatory maths papers - statistics and discrete mathematics. Would be wrong to say I didn't get anything from them - but I'm not fumbling around truth tables or poisson distributions all that often either. Everything else was pretty standard: intro to programming, DSA, low level programming, compilers and networks. What I do find kind of mind blowing is comparing my lectures with the ones from MIT and CM (on YouTube) where they can't go more than a few seconds without jumping into math. Ultimately I'm left unconvinced I was deprived of anything important as a typical software engineer.
Post reply on HN