Fork me on GitHub
#re-frame
<
2016-06-07
>
escherize02:06:36

spec being rolled into re-frame 💕

fasiha04:06:21

Should I be using spec in all my Clojure/Script code? I read the introductory article and worked thru the examples, I can see the value proposition but it seems like … work.

fasiha04:06:45

(Really lazy question, I know, sorry. It's the dichotomy between improving existing code vs writing new code to do new things)

danielcompton04:06:08

@fasiha: it’s entirely optional

danielcompton04:06:17

if you don’t want then don’t use it, easy as that 🙂

mikethompson06:06:56

@fasiha: up until now, we've always recommended that you create a Prismatic Schema for app-db. The todomvc app shows how to check it after every event handler

mikethompson06:06:13

A Prismatic Schema acts to (1) document the information model you are using (2) check that event handlers are working correctly. If I'm seeking to understand an re-frame app, the very first thing I look at is the Prismatic schema. Quite soon that recommendation will change to use clojure.spec. But I'd just be waiting for release of clojure 1.9 .

cky13:06:44

The most confusing thing is that it’s now known as Plumatic schema. 😉

escherize14:06:59

Hey guys, I'd like some feedback on my.. cheat codes for getting around in my re-frame app: http://take.ms/1nzLp

escherize14:06:10

You can copy the namespace and update steps with whatever dispatches you'd like and give it a try - it might render weird for you tho!

danielcompton21:06:50

@escherize: not sure what we’re able to do there? I just see your source nicely formatted?