Skip to content
0:00 / 0:00

#clojure#adventofcode#tdd

Advent of Code 2020, Day 17

Zach Tellman

97 subscribers • 1 video on Hallway

YouTube
  • Recommended by 1 person: 1 in engineering communities.
  • Presented by Zach Tellman
  • An opinion. It argues one side of a question engineers disagree on.

Intermediate. Assumes working knowledge.

2.6K views5 years ago1 recommendation

Programming languagesTools and practiceLisp and ClojureTesting

Zach Tellman solves Day 17 of Advent of Code 2020 in Clojure to contrast his approach with test-driven development.

This is meant for comparison with youtube.com/watch?v=umKbM5SwLq4, which takes an unexpectedly long time to finish half the problem. I think a close viewing of both will point out some issues with TDD, at least as it relates to Clojure, but I haven't gone through that exercise yet. The code shown at the end of the video can be found at gist.github.com/ztellman/43b2f00aaebf8c196ff90518ba616d57.

Why it's here

1 person recommends this

What people say. Recommended as a comparison piece demonstrating alternative approaches to test-driven development in Clojure.

u/fingertoe11in r/Clojure • Recommends

On “Learn Clojure TDD style”

I like watching folks work through Advent of Code problems as a learning guide. Those problems are hard enough people need to struggle through them, and they are easy enough that they don't usually take hours. There are some Uncle Bob Martin videos of him live-solving Advent of Code puzzles using Clojure and TDD. [video for example. Zach Tellman was unimpressed with the Bob Martin videos using the TDD approach and worked through a problem as a "rebuttal" to show some more efficient solutions. [video Those are two of the most opinionated fellows in the Clojure world -- So you might look at some others for comparison. Arne Brasseur works through quite a few [video I believ…