Good morning!
Mornin
Morning
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
if you plan on using it both server and clientside Malli gets another +1 from me
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?
I’ll check out malli, hadn’t heard about that before.
@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…
tl;dr: malli :)
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)
unless you’re using yada? I think they use schema by default
Yes, we use yada with Schema and that's great
I’m jealous, I hope I find a clojure job soon.
Yeah I’m hoping for you as well @hobosarefriends. What’s your experience level would you say? (In Clojure specifically and in dev generally)
(AFK for a while, I’ll check back later)
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).
Good luck!
Programming language is not everything, as long as it isn’t Scala 😉
I can’t help but admit I miss some of the IDE powers scala had since I’m writing ruby at the moment, but I wouldn’t go back.
Ruby friendly, it hugs me and tells me everything is gonna be ok.
and you know I’m happy to vouch for you as a reference if it can help 🙂
Thanks bud!