Comment

Comment by slifin

In the Clojure world we use clj-kondo, maps, and spec to solve these problems

We get editor time feedback of mistakes with optional type hints + light inferance via clj-kondo and a data modelling system that we can export out as database schema, JSON schema etc

And dynamic enough constraint system to express something like all human names must be "Tony" only on Tuesdays

The same constraint that can be shared server side and client side without writing it twice without learning more syntax

Additionally check what the expected inputs for a function are by checking the function specs I think guardrails pro will make this more ergonomic when released

And finally ask the constraint system to generate valid examples of the constraints great for mocking data

I don't miss type systems but I also understand if you're not using solutions here then you're in trouble

parent slifin 6 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton