This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-03-30
Channels
- # announcements (8)
- # babashka (102)
- # beginners (312)
- # calva (9)
- # clj-kondo (9)
- # cljfx (7)
- # clojure (128)
- # clojure-europe (52)
- # clojure-nl (2)
- # clojure-norway (2)
- # clojure-spec (5)
- # clojure-uk (4)
- # clojurescript (13)
- # conjure (5)
- # cursive (5)
- # datalog (18)
- # datomic (8)
- # emacs (1)
- # events (3)
- # fulcro (16)
- # graphql (2)
- # gratitude (1)
- # helix (16)
- # inf-clojure (17)
- # introduce-yourself (9)
- # java (11)
- # lambdaisland (3)
- # leiningen (3)
- # lsp (8)
- # malli (3)
- # membrane (7)
- # missionary (26)
- # nextjournal (1)
- # off-topic (19)
- # pathom (3)
- # polylith (13)
- # portal (16)
- # reagent (39)
- # reitit (2)
- # releases (23)
- # remote-jobs (1)
- # shadow-cljs (40)
- # specter (3)
- # sql (12)
- # tools-deps (8)
- # tree-sitter (1)
- # vim (3)
- # web-security (6)
- # xtdb (16)
Any one encounter this problem? TypeError: Class constructor Connection cannot be invoked without 'new'
when I have something like (new Connection ...)
or (Connection. ...)
.
Yep, but I just solved it by upgrade the versions of ClojureScript and shadow-cljs to the latest. It's probably a solved bug.
Wondering. I'd like to get into WebDev and I've played a lot with Clojure so CLJS is super interesting. I don't know JavaScript well. Is it possible to bypass learning JS and just go straight to CLJS or would it be really helpful to become moderately fluent in JS first?
I don't think it's worth it learning JS in isolation if you want to end up using CLJS.
Definitely learn about JS interop. But it's a single page of syntax, so a rather easy thing to do.
Read through some fundamental stuff, like API available through js/document
and js/window
- without really memorizing anything, but just to let you know what's available.
And then learn relevant bits of JS as you go. Chances are, you will never need to learn what function*
is or what the difference between for (... of ...)
and for (... in ...)
is.
Appreciate your quick reply. Was hoping CLJS sans a JS rabbit trail was viable. Seems it is.
You'll definitely learn a bit about JS intricacies from the interop and stack traces and interacting with libraries
But mainstream JS is so big and full of so many bad ideas now.. not worth it to learn everything just so you can use CLJS effectively. If you wanted to read a single, short book or spend a weekend, sure.
As an hopefully encouraging example, I have been doing professional payed CLJS web-development with Re-Frame for 3 years now and I had very minimal background in JS but good background in Clojure.
I had the same experience as Robert haha
Feel free to ask anything @U032EFN0T33 🙂 You can also check my blog-post on moving from product company to consulting company where I was able to start using professionally Clojure (which I had previously only used in hobby programming): https://www.brotherus.net/post/from-a-product-company-to-a-consulting-company
I think in Clojure-area, since it is bit niche, it is quite posible to be hired as Clojure-developer by having (a) strong general programming background and (b) learned Clojure as hobby. I think one aspect of that is that learning Clojure as a hobby is considered as a strong indication of a good and motivated developer (like the old "python paradox")