4ever-clojure
schema
4ever-clojure | schema | |
---|---|---|
17 | 9 | |
220 | 2,390 | |
- | 0.4% | |
4.1 | 0.0 | |
2 months ago | 18 days ago | |
Clojure | Clojure | |
- | GNU General Public License v3.0 or later |
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.
4ever-clojure
- Old but not rusty - Learning Clojure?
-
New to clojure, where to start?
I found this to be an awesome bridge between reading about the theory and actually writing code that works: https://4clojure.oxal.org/
-
Babashka Babooka: Write Command Line Clojure
This is for general Clojure, I’ve had a lot of fun and learned a lot from it (and the original): https://4clojure.oxal.org/
-
Change a variable inside cycle
It's normal to apply methodology like this to clojure when transitioning from other languages. When I was first learning I did a bunch of exercises on 4clojure and my first attempts looked like this. Then I found loop from the standard library and I understood immutability but relied on loop to do anything to collections of things. Eventually, after looking at the answers, I started to get familiar with the standard library. Then my solutions started to look like the two line solution above.
-
BTowersCoding/ctrain: do 4Clojure (RIP) exercises in the terminal
4Clojure is here now: https://4clojure.oxal.org/. It runs locally in your browser.
-
The best Clojure learning path
Go to https://4clojure.oxal.org/ and solve some stuff. And don't learn any theory. You're thinking how a C# developer thinks and you think you need to learn some kind of packages by heart or something.
-
Building a Startup on Clojure
I learned by reading through a book, then working through problems on https://4clojure.oxal.org/. If you've got JS experience it won't take too much effort to pick up. Don't get too carried away with forming the perfect tail recursive pure functional monad or whatever. Get into just doing what you're trying to do quickly, then after you're competent, read other people's code to correct your style.
-
learning Clojure
I'm only a couple months into learning Clojure too, but I found solving a problem myself and then seeing others solutions on this website https://4clojure.oxal.org/ was invaluable for learning to think like a clojurist.
-
Anything like 4clojure for Haskell?
I'm trying to learn Haskell and found https://4clojure.oxal.org/ very helpful. https://tryhaskell.org/ was also nice, but it is limited in scope as compared to its Clojure equivalent.
-
'Interactive Problems' section in the side bar contains a bad link to '4clojure.'
The actual address is https://4clojure.oxal.org/
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.
What are some alternatives?
rich4clojure - Practice Clojure using Interactive Programming in your editor
malli - High-performance data-driven data specification library for Clojure/Script.
datascript - Immutable database and Datalog query engine for Clojure, ClojureScript and JS
clj-kondo - Static analyzer and linter for Clojure code that sparks joy
reagent - A minimalistic ClojureScript interface to React.js
specter - Clojure(Script)'s missing piece
logseq - A local-first, non-linear, outliner notebook for organizing and sharing your personal knowledge base. Use it to organize your todo list, to write your journals, or to record your unique life.
matcher-combinators - Library for creating matcher combinator to compare nested data structures
clojure-by-example - An introduction to Clojure, for programmers who are new to Clojure.
clojure-dsl-resources - A curated list of Clojure resources for dealing with domain-specific languages.
ultralisp - The software behind a Ultralisp.org Common Lisp repository
fulcro - A library for development of single-page full-stack web applications in clj/cljs