25 October, 2026 / color theme: ef-spring
TDD, Agile and agentic loops show the same pattern over and over again: the faster we get feedback, the more correct the program will be in the end.
The REPL is one of the fastest ways to get a feedback that I know of (the faster way might be Probes in Hazel experimental language, but it is a research topic).
What might be faster than write a function and evaluate it instantly by a shortcut?
The counterpart of the REPL in static languages is the write-compile-test loop, which requires thinking in bigger steps: before we can see what a particular line of code does, the whole program has to be specified and correct.
That’s unfortunate, because most of the time I work, the program is broken: I’m on my way to building a new feature, refactoring or debugging my code, or fixing a bug.
We have half-working programs in our hands most of the time. So tools that help navigate broken programs are great.
When we need to migrate the database, the easiest way is to write a SQL script. Also, it’s easier to write little one-off scripts in dynamic languages like Python and Clojure than to create types just for a one-off task.
Or let’s say we have event sourcing, and we need to replay month-old events. What were the types of events at the time? Should we keep old versions of types for such cases? In dynamically typed languages, that can be expressed more naturally, since developers assume no types.
We can use SQL shells, but it’s much better to get a database record from the code, and start building the code for working with the record right away. Thus we don’t do the same job twice.
Encapsulating details in private fields is a good idea, but sometimes libraries have bugs, and it’s useful to change something midway.
In
dynamically typed languages, it’s more common to have hooks, decorators,
advice, late binding, the ability to change the implementation or
implement an interface in place (like reify in Clojure) and
duck typing.
All these tools help with poorly designed or buggy libraries.
In Go, the common approach is to fork the library and use that fork, but that’s much more ceremony than I want.