This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-02-28
Channels
- # announcements (11)
- # babashka (66)
- # beginners (19)
- # calva (4)
- # clj-kondo (26)
- # cljsrn (33)
- # clojure (38)
- # clojure-australia (10)
- # clojure-dev (3)
- # clojurescript (18)
- # conjure (8)
- # data-science (2)
- # datahike (1)
- # datascript (5)
- # defnpodcast (3)
- # emacs (3)
- # events (2)
- # fulcro (17)
- # funcool (66)
- # girouette (28)
- # jobs-discuss (1)
- # lsp (33)
- # malli (1)
- # membrane (11)
- # off-topic (2)
- # practicalli (1)
- # re-frame (141)
- # rewrite-clj (6)
- # sci (1)
- # shadow-cljs (68)
- # sql (5)
- # startup-in-a-month (7)
- # vim (1)
- # xtdb (21)
I was referring the cheasheet and I did not get the actual use of var and when to use it, Can anyone help me in this
@popeyepwr are you saying you're trying to use the var
function, or that you don't understand what a var is?
@popeyepwr So far I haven't needed to understand much about symbols/vars. What I understand is that a 'symbol' is the name I give to a "variable" (using def). In Clojure speak I'm actually "binding" a symbol to a memory location which is what a Var is. So technically a Var cannot change (it is immutable). We can actually re-bind a Symbol to a different Var - so when playing in the repl I do this - but generally you should not. Here's where I got this from: http://www.creativeapplications.net/tutorials/introduction-to-clojure-part-1/#sec6
This is a great article/tutorial. Not done it yet, but I think so far it’s better than brave-clojure and I wish I read it months ago
haha but looks like part 2 never happened
clojure.lang.Var
is in fact a reference type (it is not immutable, the root binding can change and there can be separate thread-local bindings) https://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/Var.java#L20
Hey everyone! Earlier this week I talked about developing web apps using ClojureScript together with Reagent, Hiccup and re-frame at the Func Prog Sweden second 2021 meetup (online). 😅 I hope you don’t mind me posting the video here. If you are a beginner (and/or new to developing web apps with Clojure), the talk might be helpful. Let me know what you think! I would be very happy receiving feedback from you: https://youtu.be/SVouy-Zd-_g
This is a great article/tutorial. Not done it yet, but I think so far it’s better than brave-clojure and I wish I read it months ago
Hi @U01A09W6FS8 - Just my opinion, but I did not find the Udemy courses about Clojure were very good. There was once a pretty good course on http://Lynda.com but it went away. 😞
I guess the Udemy courses were worth the $10 I spent on sale. :-D
@UH0FTE610 thanks
Course #: 14594952
@U01CGUJTK37 - I’ll check that one out. Thanks for the tip! I’d not seen that one before.
Lots of links here: https://gist.github.com/yogthos/be323be0361c589570a6da4ccc85f58f
Thank you, I’ll do that!