Do The Math - Learn you a Haskell-the spooky, esoteric cult classic of programming languages.
WIRED|July - August 2024
Learn you a Haskell-the spooky, esoteric cult classic of programming languages. Programming paradigms are mainly divided into "imperative programming" and "functional programming." The dichotomy isn't clear-cut, as a growing number of languages support both styles, but for our purposes it may be enough to say that in imperative programming you write code as a series of steps, line by line, while in functional programming you define mathematical functions and let the machine worry about the steps. In terms of actual functionality and usage, imperative programming is the far more common approach.
By Sheon Han- Illustration By Samuel Tomson
Do The Math - Learn you a Haskell-the spooky, esoteric cult classic of programming languages.

In my first job out of college, I was assigned the task of rewriting the autocomplete feature of a search page. The original code, entombed in a decrepit codebase, was a nauseating monstrosity that others wanted no truck with. The plan was to rewrite it in TypeScript-a dialect of JavaScript-drawing on a library that incorporated some handy features from a language called Haskell.

Haskell. It sounded like a good name for a weapon-a well-sharpened blade, like scimitar or katana. The strong German-sounding plosive in its name, as in Nietzsche or Kafka, added a menacing edge. All I really knew about the language was that it was challenging and intended for math PhDs.

The rewrite could be done without knowing Haskell, technically, but I was an overeager graduate with a "challenge accepted" attitude to everything, even when it was absolutely uncalled for. I found a whimsically titled tutorial book –Learn You a Haskell for Great Good! – and spent that winter writing Haskell most evenings after work. It was like learning to program all over again.

Long before Haskell coalesced into a programming language, it was a swarm of theoretical concepts. In 1977, the computer scientist John Backus delivered an influential lecture titled "Can Programming Be Liberated From the Von Neumann Style?" In it, he argued that existing languages were becoming bloated and ineffective. It was a clarion call to evolve "functional programming" from mathematical esoterica to a practical tool.

This story is from the July - August 2024 edition of WIRED.

Start your 7-day Magzter GOLD free trial to access thousands of curated premium stories, and 9,000+ magazines and newspapers.

This story is from the July - August 2024 edition of WIRED.

Start your 7-day Magzter GOLD free trial to access thousands of curated premium stories, and 9,000+ magazines and newspapers.

MORE STORIES FROM WIREDView All
MOVE SLOWLY AND BUILD THINGS
WIRED

MOVE SLOWLY AND BUILD THINGS

EVERYTHING DEPENDS ON MICROCHIPS-WHICH MEANS TOO MUCH DEPENDS ON TAIWAN. TO REBUILD CHIP MANUFACTURING AT HOME, THE U.S. IS BETTING BIG ON AN AGING TECH GIANT. BUT AS MONEY AND COLOSSAL INFRASTRUCTURE FLOW INTO OHIO, DOES TOO MUCH DEPEND ON INTEL?

time-read
10+ mins  |
January - February 2025
FOLLOW THAT CAR
WIRED

FOLLOW THAT CAR

CHASING A ROBOTAXI FOR HOURS AND HOURS IS WEIRD AND REVELATORY, AND BORING, AND JEALOUSY-INDUCING. BUT THE DRIVERLESS WORLD IS COMING FOR ALL OF US. SO GET IN AND BUCKLE UP.

time-read
10+ mins  |
January - February 2025
REVENGE OF THE SOFTIES
WIRED

REVENGE OF THE SOFTIES

FOR YEARS, PEOPLE COUNTED MICROSOFT OUT. THEN SATYA NADELLA TOOK CONTROL. AS THE COMPANY TURNS 50, IT'S MORE RELEVANT-AND SCARIER-THAN EVER.

time-read
10+ mins  |
January - February 2025
THE NEW COLD WARRIOR
WIRED

THE NEW COLD WARRIOR

CHINA IS RACING TO UNSEAT THE UNITED STATES AS THE WORLD'S TECHNOLOGICAL SUPERPOWER

time-read
10+ mins  |
January - February 2025
CALIFORNIA DREAMIN'
WIRED

CALIFORNIA DREAMIN'

KINDRED MOTORWORKS VW BUS - Despite being German, the VW T1 Microbus is as Californian as the Grateful Dead.

time-read
5 mins  |
January - February 2025
THE INSIDE SCOOP ON DESSERT TECH
WIRED

THE INSIDE SCOOP ON DESSERT TECH

A lab in Denmark works to make the perfect ice cream. Bring on the fava beans?

time-read
3 mins  |
January - February 2025
CONFESSIONS OF A HINGE POWER DATER
WIRED

CONFESSIONS OF A HINGE POWER DATER

BY HIS OWN estimation, JB averages about three dates a week. \"It's gonna sound wild,\" he confesses, \"but I've probably been on close to 200 dates in the last year and a half.\"

time-read
4 mins  |
January - February 2025
THE WATCHFUL INTELLIGENCE OF TIM COOK
WIRED

THE WATCHFUL INTELLIGENCE OF TIM COOK

APPLE INTELLIGENCE IS NOT A PLAY ON \"AI,\" THE CEO INSISTS. BUT IT IS HIS PLAY FOR RELEVANCE IN ALL AREAS, FROM EMAIL AUTO-COMPLETES TO APPS THAT SAVE LIVES.

time-read
10+ mins  |
January - February 2025
COPYCATS (AND DOGS)
WIRED

COPYCATS (AND DOGS)

Nine years ago, a pair of freshly weaned British longhair kittens boarded a private plane in Virginia and flew to their new home in Europe.

time-read
4 mins  |
January - February 2025
STAR POWER
WIRED

STAR POWER

The spirit of Silicon Valley lives onat this nuclear fusion facility's insane, top-secret opening ceremony.

time-read
9 mins  |
January - February 2025