schema
clojure-cli-config
Our great sponsors
schema | clojure-cli-config | |
---|---|---|
9 | 8 | |
2,380 | 495 | |
0.0% | 0.8% | |
0.0 | 8.7 | |
about 1 year ago | 2 months ago | |
Clojure | Makefile | |
GNU General Public License v3.0 or later | Creative Commons Attribution Share Alike 4.0 |
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.
schema
-
Tired by the dynamicism
Plumatic schema (https://github.com/plumatic/schema) , or friends I might be wrong, but I think schema might make more sense to you coming from the F# world (might be wrong)
-
Clojure from a Schemer's perspective
This one? I didn't. I hear good things about it, and it's reached a point of maturity, being widely used in production.
-
Worrying comment from HN on Building a Startup on Clojure
Uhhh spec has existed for a long time and before that, schema Nowadays we also have the excellent malli. If his codebase is full of functions where the shape of the data isn’t obvious, isn’t documented and isn’t specified in a specific/schema, that’s on him and his bad coding practices and really no different from passing data in other dynamic languages. A class by itself (without additional effort) only gives you field names.
-
Building a Startup on Clojure
I don't understand this reputation either. There are very large systems built on other Lisps. For example, Emacs has a massive amount of Elisp. Elisp is much more primitive than Clojure, and traditionally libraries don't use e.g. data schemas [1] as runtime contracts for data.
Obviously, once a system built on top of a dynamic language grows beyond certain threshold, you need to be very disciplined as there are no static types to ensure some degree of correctness.
[1] https://github.com/plumatic/schema
- Clojure needs a Rails, but not for the reason you think
-
General anxiety regarding learning Clojure and such
Try to learn a schema library early, like Malli or Prismatic Schema. Do not mistook them as "static-typing" things - it's more for data validation and coercion than "security that things will get the right typing information". The idea to learn them early is how you'll shape future code: validating all "output data" first, them using that data inside your program without "defensive programming" like checking every time if a specific value on a map is nil, etc
- Six years of professional Clojure development
-
What are some great Clojure libraries, as of 2021?
In Clojure, declarative data specifications for validation and generation are also very mainstream. Schema was first out the door, Clojure Spec is the most popular library, while malli is gaining popularity fast at the moment.
clojure-cli-config
- Clojure Turns 15 panel discussion video
-
good current tutorial on tooling and REPL dev for Clojure?
Programming Clojure 3rd edition does have some minimal coverage of the CLI but it just barely made it to publication and a lot has been added since. You might find the CLI guide (https://clojure.org/guides/deps_and_cli) and CLI reference (https://clojure.org/reference/deps_and_cli) to be helpful for some questions. The Practicalli guide (https://practical.li/clojure/) has a number of good pages and resources on repl, tools, and use.
-
Clojure 15th Anniversary: A Retrospective
Yeah this is grim.
There is https://github.com/practicalli/clojure-deps-edn which solves this but it’s not linked to from any official docs which seems a miss to me. As well as the config and full documentation, it also comes with a video walking you through a demo of all the features.
-
Building a Startup on Clojure
I was lost when I moved to deps from lein, but just forking and cloning https://github.com/practicalli/clojure-deps-edn as $HOME/.clojure solved the problem - this base deps.edn contained all the aliases I needed - creating a new project, searching and adding dependencies, hooking up data inspectors like portal or reveal, testing, code coverage, benchmarking, building uberjar etc. Moving to deps also introduced me to polylith [1], which has been very useful for building large multi-component projects
[1] https://polylith.gitbook.io/polylith/
-
Book recommendation focusing on tooling?
When I'm looking for tooling related stuff I do always check practical.li (https://practical.li/clojure/) since it probably has a good, if terse, description and mostly has links to the good documentation (or at least the best available).
-
Scala Isn't Fun Anymore
4. You need build tooling and it seemed the choices were lein (easy user experience but not “blessed” future direction? - not sure about what i’m saying here but it’s the understanding i formed). Tools.deps is the blessed approach but designed to customise the heck out of it - problematic for a beginner like me! Thankfully you can park the customisation for later and just get started with a well laid out starter https://github.com/practicalli/clojure-deps-edn - there’s even a video walks you through its features, all the inspectors and visualisers are nice to know about but not needed yet on a beginner journey
- New Clojure Project Quickstart
- Clojure needs a Rails, but not for the reason you think
What are some alternatives?
malli - High-performance data-driven data specification library for Clojure/Script.
clj-kondo - Static analyzer and linter for Clojure code that sparks joy
yada - A powerful Clojure web library, full HTTP, full async - see https://juxt.pro/yada/index.html
specter - Clojure(Script)'s missing piece
clojure-site - clojure.org site
matcher-combinators - Library for creating matcher combinator to compare nested data structures
portal - A clojure tool to navigate through your data.
clojure-dsl-resources - A curated list of Clojure resources for dealing with domain-specific languages.
babashka - Native, fast starting Clojure interpreter for scripting
fulcro - A library for development of single-page full-stack web applications in clj/cljs
re-frame - A ClojureScript framework for building user interfaces, leveraging React