Skip to content

Jessitron

Search
  • Blog
  • Twitter
  • Patreon
  • Newsletter
  • Talks
  • Search
Search
  • Blog
  • Twitter
  • Patreon
  • Newsletter
  • Talks
  • Search

contracts

Fun with Optional Typing: cheap mocking

February 10, 2015

For unit tests, it’s handy to mock out side-effecting functions so they don’t slow down tests.[1] Clojure has an easy way to do this: use with-redefs to override function definitions, and then any code within the with-redefs block uses those definitions instead. To verify the input of the side-effecting function, I can override it with …

Read moreFun with Optional Typing: cheap mocking

Tags clojure, contracts, testing

popular

  • Who are we Now?
    Who are we Now?
  • Collective problem solving in music, art, science, and software
    Collective problem solving in music, art, science, and software
  • PowerShell equivalent of find
    PowerShell equivalent of find
  • Who turns software into money? GTM
    Who turns software into money? GTM
  • A Taxonomy of Yak Shaving
    A Taxonomy of Yak Shaving

meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
  • Blog
  • Twitter
  • Patreon
  • Newsletter
  • Talks

Tags

abstraction agile architecture automation business change clojure complexity concurrency design DevOps Docker domain driven design Engineering functional functionalPrinciples Generativity git honeycomb Java javascript learning observability philosophy property-based testing reference ruby scala science Software Development symmathesy systems Systems Thinking teams testing thinkingFunctionally tistil typescript wit Yak Shaving

Archives

Search

© 2026 Jessitron, LLC
Scroll back to top