Unleash the Power of the REPL
summary
Covers concrete REPL techniques: use the star-e variable with clojure.stacktrace/print-stack-trace to see the full stack and trace a failure back through caller lines; use a local user.clj with reset/refresh (Stuart Sierra reloaded pattern) to reload code without stopping the REPL; add lightweight prints or use the created library made clj to replace threading macros and print intermediate values; and switch to a logging lib like Timber for leveled, line-numbered logs. Also mentions running 200+ services on 10,000+ servers processing ~90 billion events/day.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 0:32The REPL workflow
- 3:04Debugging fundamentals
- 4:09Understanding stack traces
- 6:20Debugging with *e
- 9:12Synchronizing code and data
- 12:53Code for debugging
- 15:50Using `due-to` for debugging
- 17:48Introducing mate-clj
- 20:21Advanced logging libraries
- 22:11Conclusion and recap
related talks
32mGetting Superpowers with Clojure and ClojureScript
45mReinventing the REPL
38mUnravel your REPL
55mREPLs All The Way Up: A Rubric For Virtuous Feedback Loops
21mA Clojure Carol: Three Clojure Web Development A-Ha Moments
36mParty REPL — A multi-player REPL built for pair-programming
30mProto REPL, a New Clojure Development and Visualization Tool
31mDebugging Clojure Code
