"Agility & Robustness: Clojure spec" by Stuart Halloway
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
“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”
“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
talkZach Tellman - Everything Will FlowClojureTV · 4 HN recommenders · 2015–2022
talkRuby Conf 12 - Y Not- Adventures in Functional Programming by Jim WeirichConfreaks · 17 HN recommenders · 2013–2026
talkThe Soul of Erlang and Elixir • Sasa Juric • GOTO 2019GOTO Conferences · 16 HN recommenders · 2019–2024
talk"Simple Made Easy" - Rich Hickey (2011)Strange Loop Conference · 14 HN recommenders · 2022–2026
talk"Making Impossible States Impossible" by Richard Feldmanelm-conf · 9 HN recommenders · 2017–2026
talkWilliam Byrd on "The Most Beautiful Program Ever Written" [PWL NYC]PapersWeLove · 11 HN recommenders · 2017–2026
talkThe Value of Values with Rich HickeyInfoQ · 10 HN recommenders · 2014–2023
talkWhy Isn't Functional Programming the Norm? – Richard FeldmanMetosin · 12 HN recommenders · 2019–2025