This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-08-01
Channels
- # announcements (1)
- # beginners (71)
- # calva (12)
- # cider (3)
- # clj-kondo (12)
- # cljsrn (9)
- # clojure (167)
- # clojure-dev (21)
- # clojure-europe (5)
- # clojure-italy (60)
- # clojure-nl (6)
- # clojure-spec (6)
- # clojure-uk (60)
- # clojurescript (86)
- # core-async (25)
- # cursive (21)
- # datascript (9)
- # datomic (4)
- # figwheel (8)
- # fulcro (7)
- # graalvm (4)
- # jackdaw (6)
- # jobs (8)
- # juxt (2)
- # leiningen (1)
- # malli (1)
- # off-topic (20)
- # re-frame (31)
- # reagent (5)
- # remote-jobs (3)
- # shadow-cljs (57)
- # sql (6)
- # vim (9)
are there any best practices anywhere on where in the code to define specs? at the moment i'm defining function specs alongside the function they go with and don't have a consistent strategy for where to define the specs (spec/def ...) - usually in a few large files
@ben.mumford620 there's a discussion on this here: https://stackoverflow.com/questions/37942495/where-to-put-specs-for-clojure-spec
cheers. i'm guessing then that are no suggestions from rich and the crew?
This is extremely shaky ground on which to make a decision, but here's a cognitect example of a spec only namespace: https://github.com/cognitect-labs/day-of-datomic-cloud/blob/b4103e4a8f14518ed3f6d7f66f56cbf863117974/src/datomic/dodc/repl_ui/specs.clj
thanks alex