Why Learning a Hard Language Makes You Better at Easy Ones

There's a reason we teach Haskell. It's not because every job requires it. It's not because it's the most popular language. It's because the research on learning, skill transfer, and deliberate practice all point to the same conclusion: training on harder material produces better results, even when you end up working on easier material.


Deliberate Practice: Why Comfort Zones Are Traps

In 1993, K. Anders Ericsson published his landmark research on deliberate practice, the study of how experts in every field actually develop their expertise. His central finding has been replicated hundreds of times since:

Performance improves fastest when training occurs at the edge of current ability, not in comfort zones.

This is why concert pianists practice the passages they can't play, not the ones they can. Why Olympic athletes train at intensities beyond what competition requires. Why chess grandmasters study positions that confuse them rather than replaying games they've already won.

The principle applies universally. Ericsson studied musicians, athletes, chess players, and medical professionals. In every domain, the pattern was the same: experts became experts by systematically practicing what they couldn't yet do. Comfortable repetition of existing skills produced stagnation, not growth.

The implication for programming education is direct: if you want to produce strong engineers, you don't train them on easy material. You train them on the hardest material they can engage with productively. The struggle isn't a side effect of good training. It's the mechanism.

A 2020 study by Hauser, Stark, and colleagues (presented at ECSEE) examined deliberate practice specifically among programmers. They found that the components Ericsson identified (challenging goals, performance monitoring, feedback) manifested differently in software contexts. Social interaction and collaborative work with other programmers were critically important. The most effective practice wasn't solitary grinding through exercises. It was building real systems alongside more experienced engineers who could provide immediate, contextual feedback.

Desirable Difficulties: The Illusion of Easy Learning

Robert Bjork's research on "desirable difficulties" (1994) established a counterintuitive principle that most educational programs get exactly backward:

Learning conditions that make acquisition harder produce better long-term retention and transfer.

Bjork showed that easy learning creates an illusion of competence. Students who breeze through material feel confident. They can recall it immediately, they perform well on next-day tests. But they forget quickly and struggle to apply knowledge in new contexts. The fluency feels like mastery, but it's shallow.

Students who struggle with harder material feel less confident during learning. They make more errors, progress more slowly, and report lower satisfaction. But they retain more, transfer knowledge more effectively, and perform better on delayed tests and novel problems.

The research identifies specific "desirable difficulties" that improve learning outcomes:

A well-designed training program incorporates all of these. A program optimized for student comfort and satisfaction eliminates all of them.

Transfer Learning: Why Abstract Beats Concrete

Valerie Shute's research (1991) on learning transfer established a principle with direct implications for any skill-based education:

Learning more abstract or formal systems transfers downward to concrete tasks, but not the reverse.

A mathematician who learns programming picks it up quickly. Their abstract reasoning transfers. A programmer who tries to learn mathematics faces a much harder road. The abstract-to-concrete transfer is natural; the concrete-to-abstract transfer is painful and rare.

This asymmetry has been replicated across dozens of domains. Students who learn formal logic perform better on informal reasoning tasks. Students who study Latin grammar acquire new languages faster than students who start with modern conversational languages. Musicians trained in classical theory adapt to jazz and pop more easily than the reverse.

Perkins and Salomon (1992) called this "high road transfer," transfer that happens through explicit abstraction and mindful reflection. Low road transfer (automatic, reflexive) handles routine tasks. High road transfer handles novel situations, the ones that matter most in professional contexts.

The key insight: high road transfer requires that the original learning context forces abstract thinking. If you can learn a skill without ever engaging with the underlying principles, you'll execute it well in familiar contexts but struggle when anything changes. If the learning context demands abstraction, the knowledge transfers broadly.

What CS Education Research Confirms

The general principles above have been tested specifically in computer science education, and the results are striking.

In 2015, Schanzer, Fisler, Krishnamurthi, and Felleisen published a study at SIGCSE examining whether learning functional programming transfers to other problem-solving domains. They taught students programming using Racket (a functional language) through the Bootstrap curriculum. The result: students who learned to express mathematical relationships as functions in code performed measurably better on algebra word problems. The transfer was direct and quantifiable. Learning to think functionally improved mathematical reasoning, not because the students learned algebra, but because functional programming forced the same abstract thinking that algebra requires.

Tshukudu and Cutts (2020, ICER) developed a model explaining how programming language knowledge transfers between languages. They identified three categories: True Carryover Concepts (concepts that map directly between languages), False Carryover Concepts (concepts that appear similar but behave differently, causing interference), and Abstract True Carryover (concepts present in both languages but expressed differently). Their finding: languages that force explicit abstract reasoning produce more True Carryover and less interference when developers switch contexts. Haskell's explicitness about types, effects, and state makes it a strong source language for positive transfer.

What the Education Research Shows

The educational research supports this framework across disciplines:

Programming

Marceau, Fisler, and Krishnamurthi (2011, SIGCSE Best Paper) studied how novice programmers respond to error messages in DrRacket, a programming environment with a static type-like system. They found that well-designed type error messages significantly improved students' ability to identify and fix errors. The type system wasn't just catching bugs. It was teaching students to reason about their code more precisely. This pedagogical scaffolding effect is exactly what Haskell's type system provides at a deeper level: the compiler doesn't just reject bad code, it trains you to write better code.

Mathematics

Students who learn from harder, more abstract curricula consistently perform better on standardized tests, even when those tests focus on concrete, applied problems. A 2001 meta-analysis by the National Research Council found that conceptual understanding (not procedural fluency) was the strongest predictor of mathematical problem-solving ability in novel contexts.

Language Acquisition

Students who learn inflected languages (languages with complex grammar, case systems, and conjugation patterns) acquire subsequent languages faster than students who start with simpler grammars. The initial struggle with complexity builds grammatical intuition that transfers. Students who start with simpler languages develop habits that actually interfere with learning more complex ones later.

Medical Education

Medical schools that use problem-based learning (where students confront complex, ambiguous cases before being taught the textbook answers) produce graduates who perform better in clinical practice than schools that teach concepts first and apply them later. The difficulty of reasoning without a framework builds diagnostic thinking that transfers to novel cases.

Music

Conservatory students trained in classical technique (harder, more demanding) adapt to contemporary genres more easily than self-taught musicians moving in the other direction. The formal training builds a foundation that makes everything else accessible.

The Difficulty Is the Feature

The pattern is consistent across every domain researchers have studied: harder initial training produces better long-term outcomes. Easy training produces confident but brittle practitioners. Hard training produces practitioners who adapt, transfer, and grow.

We teach Haskell not because it's easy but because it's hard. The difficulty is the feature. The research on deliberate practice, desirable difficulties, and transfer learning all converge on the same conclusion: if you want to produce the best practitioners in any field, train them on the hardest material. Everything else becomes easier by comparison, not because the material changed, but because the practitioner did.


References