Skip to content

joakimen/clojure-examples

Repository files navigation

babashka-examples

Samples of useful things to do in Clojure that are supported either by the babashka-interpreter or by standard Clojure.

Ideas

  • Implementing protocols (interfaces) with clojure.core.protocols
  • CLI argument parsing with babashka.cli
  • Logging with timbre
  • Pattern matching with clojure.core.match
  • Using the babashka CLI as a Task Runner to replace Makefiles
  • HTTP client using slurp, org.httpkit.client, babashka.curl etc
  • Property testing with clojure.test.check
  • Glueing together CLI-utilities with process
  • Wait for ports/files with babashka.wait
  • Parse data
    • JSON with cheshire.core
    • YAML with clj-yaml.core
  • File system operations using babashka.fs
  • Data structure enforcement with clojure.spec
  • Generative testing with clojure.spec.test
  • Multi-method polymorphism

See also

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published