hackertube.io

"Agility & Robustness: Clojure spec" by Stuart Halloway

Strange Loop Conference · talk · Watch on YouTube

What it is

Stuart Halloway shows how Clojure's spec library lets you build programs that are both agile and robust. He covers declarative, predicate-based specification layered on interactive REPL development.

Why Hacker News recommends it

Cited as an argument for runtime specs as an alternative to static typing, including a comparison of types, tests and spec.

  • 2 people recommended it
  • 2 different months
  • 0 strong recommendations
  • first 2016, last 2022

What HN commenters said

  1. “He offers a chart that shows the strengths and weaknesses of strict typing versus unit tests versus the run-time checks offered by Spec. It's worth a look.”

    Compares strict typing, unit tests and runtime checks.

    susan_hall, 2016-11 · Recommendation · in “The Unsound Playground: Java and Scala's Type Systems are Unsound”

  2. “clojure has one of the most powerful ways to 'type' your language?”

    Clojure spec as a powerful alternative to static typing.

    Jonovono, 2022-03 · Recommendation · in “Clojure 1.11 is now available”

Excerpts from Hacker News comments, linked to the originals. Summaries and labels were written by a language model from those comments.

Topics: clojure, spec, functional programming, static vs dynamic typing, validation

Also recommended by the same people