This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-09-16
Channels
- # announcements (7)
- # babashka (1)
- # beginners (125)
- # bristol-clojurians (4)
- # calva (49)
- # cider (10)
- # cljs-dev (3)
- # clojure (102)
- # clojure-berlin (3)
- # clojure-czech (4)
- # clojure-europe (84)
- # clojure-france (29)
- # clojure-italy (2)
- # clojure-nl (26)
- # clojure-norway (5)
- # clojure-spec (4)
- # clojure-sweden (4)
- # clojure-uk (50)
- # clojurescript (3)
- # community-development (2)
- # conjure (19)
- # cursive (9)
- # datascript (4)
- # datomic (33)
- # fulcro (4)
- # off-topic (26)
- # parinfer (10)
- # pedestal (4)
- # quil (8)
- # re-frame (1)
- # reagent (20)
- # remote-jobs (5)
- # reveal (53)
- # sci (10)
- # shadow-cljs (37)
- # spacemacs (6)
- # sql (25)
- # tools-deps (24)
- # vrac (2)
- # xtdb (10)
We are planning to use something like spec
in our codebase, to get more safety and better understand what everything is supposed to do. Do you have any practical advice? Like: spec vs schema (or both?!)? And best practices, like where to define the spec-related things (near the function, end of file, separate file, …)?
@stefan.van.den.oord Spec is still alpha. The old spec (spec1) will be replaced with spec2 which is still undergoing changes. See #clojure-spec.
Schema is fine for simple usage, but right now #malli might be more interesting to use
Right, I heard that, but is that a reason to not start using it at this point? It’s working just fine isn’t it?
@stefan.van.den.oord It depends if you want to migrate to spec2 later.
also ongoing changes will break things, including maybe a lot of your code, so it depends if you’re willing to risk that pain in the future…
Ok I’ll also see what I can find about spec2, but given what you know at the moment, do you expect that to replace malli?
(but malli might also be going through some changes, don't know how stable it is, ask in #malli)
Yeah I’m hoping for you as well @hobosarefriends. What’s your experience level would you say? (In Clojure specifically and in dev generally)
About 4 years general and 0 professional in Clojure (which is the main problem), all I have to show for my Clojure is some hobby projects that never went anywhere (which is my secondary problem).