This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-09-12
Channels
- # announcements (2)
- # architecture (1)
- # aws (22)
- # babashka (2)
- # beginners (39)
- # bristol-clojurians (2)
- # cider (1)
- # clj-kondo (12)
- # cljfx (75)
- # cljs-dev (16)
- # clojure (51)
- # clojure-berlin (1)
- # clojure-france (4)
- # clojure-nl (2)
- # clojure-norway (36)
- # clojurescript (5)
- # community-development (8)
- # data-science (1)
- # datomic (4)
- # emacs (4)
- # fulcro (7)
- # jobs-discuss (7)
- # juxt (1)
- # nrepl (3)
- # off-topic (38)
- # reitit (1)
- # ring (7)
- # sci (79)
- # shadow-cljs (5)
- # sql (15)
- # tools-deps (22)
- # uncomplicate (7)
- # vrac (1)
- # xtdb (18)
What are the best online free resources to start learning web development with Clojure?
@sunchaesk There's probably some Practicalli stuff about that...?
Yeah, here you go: https://practicalli.github.io/clojure-webapps/
@U05254DQM would be the one to provide more detail... He's in the UK so it's early morning Saturday for him right now.
alright... I think they are changing it from lein to something and because I use lein, I think I should be fine
I suspect John is updating it all to use the official Clojure CLI stuff
(but if it still uses lein
in the examples you'll be fine)
Ah, yes, he says as much on that home page and links to https://practicalli.github.io/blog/posts/clojure-web-server-cli-tools-deps-edn/
Hi Chris, the ToDo app is an example of a webapp using Leiningen build tool. All new content is predominately Clojure CLI tools based, however, this makes no difference to the actual code. The main difference is using the tooling, Clojure CLI and community tools vs leiningen and plugins. There is a #practicalli channel if you want to discuss any content or have questions, or you can send me a direct message through slack.
@sunchaesk I can also recommend https://pragprog.com/titles/dswdcloj3/web-development-with-clojure-third-edition/
Sorry, not free
Anybody fancy to help a beginner with Spec? I am having some troubles on why something is passing the validation
Why is this true? The ::children
— is supposed to be a ::node
and it's missing the required property ::value
:thinking_face:
When I try evaluating that in a REPL, the call to s/valid? returns false.
What do you see?
I have a foo.cljc
requiring some symbol defined in bar.cljc
, for which the same namespace also has a bar.clj
. If I eval bar.cljc
first then foo.cljc
will eval just fine, but if I integrant.repl/reset
it can't find the symbol -- it seems to only look in bar.clj
. is this expected?
Yes that should be expected. cljc files have the lowest precedence. Any reason you want a clj and a cljc with the same name? cljc files are for combined clj/cljs code, so typically you would have a cljs and a clj file, or 1 cljc file using reader conditionals to split out the clj from the cljs in the 1 cljc file.
aesthetics, really. reader conditionals are generally ok but when the imports are really different all the #?@s get noisy, and copy pasting across separate files is of course a non-starter
yeah I see we can't actually have the same (ns foo) across multiple files, so there's no way this could work the way I'm imagining it, with some kind of ns merging ability. thanks for the info!
That guide shows a pretty clean way to have requires split without having to splice everywhere.
Hi all, wondering what the solutions are when it comes to authorization for a a clojurescript app. Are there any libs for dealing with this?
If you have an SPA, any JS solution should work just fine.
@az You could try looking at https://www.clojure-toolbox.com/ and see if you find anything there.