Fork me on GitHub
#beginners
<
2021-02-28
>
popeye08:02:06

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

futurile09:02:12

@popeyepwr are you saying you're trying to use the var function, or that you don't understand what a var is?

popeye10:02:04

@slgeorge did not understood var

futurile10:02:55

@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

👍 3
popeye14:02:22

Thanks @slgeorge for your inputs

grazfather15:02:49

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

grazfather15:02:22

haha but looks like part 2 never happened

blak3mill3r21:03:00

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

David Vujic12:02:39

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

👍 3
clj 6
Karo15:02:51

Hi all, please suggest a good tutorial for learning Clojure (preferable on Udemy)

Scott Starkey16:02:00

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. 😞

Scott Starkey16:02:43

I guess the Udemy courses were worth the $10 I spent on sale. :-D

Cj Pangilinan23:02:21

Course #: 14594952

Scott Starkey13:03:28

@U01CGUJTK37 - I’ll check that one out. Thanks for the tip! I’d not seen that one before.

👍 3
borkdude21:02:19

@david043 #news-and-articles is also a good place to post these videos

David Vujic22:02:33

Thank you, I’ll do that!