Skip to content

Unfamiliar Paradigm

You'll learn a language that takes something away, whether that's loops, mutation or a garbage collector, and your first language will look different afterwards.

About

Your third language should take something away from you, like loops, mutation, exceptions, dynamic types or a garbage collector. Pick one from Haskell, OCaml, Elixir, Clojure, Rust, Prolog or Forth. Build the small things you've already built and notice which parts fight you, because the fight is the point. In the first week you'll write your old language in the new syntax, and the compiler will politely refuse it.

At a glance

Per requirement
35 XP
Completion bonus
300 XP
Requirements
6
Takes
A month
Skill level
Intermediate (months of practice)
Cost
Free
Supplies
Nothing special
Where
At home
Other people
On your own
Locked for now
Earn two more Uncommon badges in Coding to open this one. Log in to see how far along you are.

Requirements

  1. 1
    Pick a language from a different family than anything you've used, and install it. Write two sentences on why you chose this one. The rule is that it has to take away something you rely on, like mutation, loops, exceptions, dynamic types or a garbage collector. Take a screenshot of the version check and your two sentences. Photo
  2. 2
    Work through the official tutorial or a short book for at least ten hours. Learn You a Haskell, the Rust Book and Elixir's getting started guide are all free. Keep a log of your hours. Take a screenshot of the log and the last exercise you completed, with its output. Photo
  3. 3
    Rewrite two of your Loop Drills the way this language wants them written. If it wants recursion instead of loops, use recursion. If it wants pattern matching, use it. If it wants you to say who owns the memory, say it. A line-for-line translation doesn't count here. Take a screenshot of the code with output matching the originals. Photo
  4. 4
    Write a program that would be awkward in your first language and clean in this one. Think of a pipeline of transforms in a functional language, a concurrent counter in Rust that the compiler checks for you, a macro in a Lisp, or a family tree query in Prolog. Take a screenshot of the code and a sentence on why it's clean here. Photo
  5. 5
    Hit a compiler error or type error you don't understand, and work it out from the docs alone. No pasting it into a search engine or a chatbot for the first thirty minutes. Read the error, read the docs, and try things. Then write down what it meant. Take a screenshot of the error and your explanation. Photo
  6. 6
    Go back to your first language and write one thing differently because of this. That might mean fewer mutable variables, smaller functions, or explicit error returns. Show a before and after on a real piece of your own code. Take a screenshot of the diff with a line on what changed. Photo