"Agility & Robustness: Clojure spec" by Stuart Halloway

Channel:Strange Loop Conference · Length:39:59 · Published:2016-09-17 · Views:24651

Watch on YouTube

Summary

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 HN recommends it

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

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. — HN, 2016

Functional programming · Software architecture & design

Subtitles (excerpt)

good morning strange Loop my name is Stuart Halloway uh thanks for having me I'm really excited to be here and I'm going to be talking about uh closure spec and specifically about agility and robustness in programming and how closure respect can help with that and I want to start with a very brief background of the things that worry that I worry about every day that shape uh to some degree the characteristics of spec and why I want to use it uh I'm the founder of a consulting company cognitect uh originally relevant uh that's since 2003 so I have uh 13 years of uh Building Systems for other people uh and you know moving from Project to project uh I've been a closure committer since uh closure 10 and so I have had you know responsibility for a substantial open source project I'm also a developer on the datomic database so it's commercial product development so a lot of different you know kinds of software development um I also run the support team at cognitect so I get to really eat my dog food when we make software you know whether it's uh consulting or open source or product software and it's not working out great for people uh I am where the buck stops and we get to hear about it so which shapes your

On Hacker News

..... you realise clojure has one of the most powerful ways to 'type' your language? Like 100x more powerful than the typescript or whatever type language you are using now ;p [VIDEO] — Jonovono, 2022-03
There have been some fantastic conversations on Hacker News about type systems. I've learned a lot about the different arguments for dynamic typing, versus strict typing, versus gradual typing. Java's type system may or may not have represented new thinking when it was under development in the early 1990s, but it certainly seems a bit dated in the year 2016. The limits of the Java type system hav… — susan_hall, 2016-11
Since they cite me (and my essay from 2014) as part of their decision making process, I want to throw in 2 cents here. They ended up deciding on Go, whereas I have ended up preferring Clojure, yet I agree with a lot of what they say, so I'll try to clarify why I ended up with a different decision than what they made. I understand what they mean when they write: I think the first time I appreciate… — lkrubner, 2017-01

Related videos