cats
ts-auto-guard
Our great sponsors
cats | ts-auto-guard | |
---|---|---|
4 | 7 | |
940 | 475 | |
0.0% | - | |
3.2 | 5.8 | |
about 2 years ago | about 2 months ago | |
Clojure | TypeScript | |
BSD 2-clause "Simplified" License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
cats
-
A Lisp flavored language which let's you program in cats' language
:'D https://github.com/funcool/cats
-
Understanding "advanced" functional programming concepts (preferably in Java)
There are monad libraries for clojure https://github.com/funcool/cats, but they are more niche
-
Monads for Clojure Programmers
You can have monads in clojure (eg: http://funcool.github.io/cats/latest/#monad) but the problem I see is that they are infectious and kinda force you to use them everywhere. In other languages, it's more palatable because the compiler checks for types, and normally there is some sugar to make it easier on the eyes.
-
Starting out with a Typescript role, any killer library recommendations I should know about?
Oh yeah, I usually find a similar library when I'm writing a program; e.g. funcool/cats in clojure
ts-auto-guard
-
TSON started supporting equivalent validators
Request for comment if I'm off the mark here: https://github.com/rhys-vdw/ts-auto-guard/pull/202
-
How to type guard interfaces beautifully?
Use something like ts-auto-guard to generate your type guards. This eliminates human error when writing them.
-
Starting out with a Typescript role, any killer library recommendations I should know about?
Damn there's so many of these now. Also my ts-auto-guard is an option for type guard generation.
-
Are Dynamic Languages Going to Replace Static Languages? (2003)
To be fair, when writing TypeScript you often end-up needing to write loads of type-guard functions, and there are plenty of popular TypeScript extensions that generate those type-guard functions for you, e.g. https://github.com/rhys-vdw/ts-auto-guard
-
Automatically generating typeguard functions
One thing I did realise after looking at your code was that I could try changing the attributes property to a Record and see if https://github.com/rhys-vdw/ts-auto-guard handled that well, which it did!
-
CLI: Generating validators by parsing TS type definitions
I made one of these too: https://github.com/rhys-vdw/ts-auto-guard
What are some alternatives?
MikroORM - TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, MariaDB, MS SQL Server, PostgreSQL and SQLite/libSQL databases.
runtypes - Runtime validation for static types
promises-spec - An open standard for sound, interoperable JavaScript promises—by implementers, for implementers.
io-ts - Runtime type system for IO decoding/encoding
typescript-runtime-type-benchmarks - đź“Š Benchmark Comparison of Packages with Runtime Validation and TypeScript Support
ttypescript - Over TypeScript tool to use custom transformers in the tsconfig.json
algo.monads - Macros for defining monads, and definition of the most common monads
io-ts-transformer - TypeScript transformer which converts TypeScript types to io-ts entities
mewl - Mewl, program in cats' language; A just-for-fun language
rxjs - Lightweight reimplementation of rxjs
reason - Simple, fast & type safe code that leverages the JavaScript & OCaml ecosystems