News for hackers. Stuff that matters.
Re:Show HN: js.spec, a JavaScript implementation of clojure.... by dwwoelfel on Tuesday November 29, 2016 @06:56PM (#13067294)
Have you used js.spec or clojure.spec in production? Has it helped you catch bugs that you would have otherwise missed? How does the runtime-only limitation work out in practice?

I know that flow has prevented me from checking in bugs, because I've tried to push up code with e.g. misspelled property names and the pre-push hook stopped me.

Re:Show HN: js.spec, a JavaScript implementation of clojure.... by mhluongo on Tuesday November 29, 2016 @07:02PM (#13067330)
One of the Clojure validation libs predating spec, schema, has saved us from a ton of errors, and works similarly. It also opens up reasoning about data shape- eg, auto-generating test data based on schemas. spec's support for that use case is even better.

EDIT: You can see schema in action in https://github.com/cardforcoin/shale. In fact, the latest build surfaced a bug via schema- https://circleci.com/gh/cardforcoin/shale/379. Next version we're planning to migrate to spec.

Re:Show HN: js.spec, a JavaScript implementation of clojure.... by prayerslayer on Wednesday November 30, 2016 @02:27AM (#13069079)
> Have you used js.spec or clojure.spec in production?

Not yet, but I have some use cases (mostly validation).