This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-08-04
Channels
- # arachne (1)
- # beginners (41)
- # boot (92)
- # capetown (8)
- # cider (10)
- # cljsjs (4)
- # cljsrn (42)
- # clojure (94)
- # clojure-india (1)
- # clojure-russia (48)
- # clojure-sanfrancisco (1)
- # clojure-spec (34)
- # clojure-uk (13)
- # clojurescript (29)
- # cursive (12)
- # datavis (4)
- # datomic (10)
- # dirac (63)
- # editors-rus (16)
- # emacs (57)
- # funcool (5)
- # hoplon (22)
- # jobs (2)
- # lein-figwheel (3)
- # leiningen (5)
- # onyx (51)
- # other-languages (2)
- # proton (1)
- # protorepl (2)
- # re-frame (34)
- # remote-jobs (1)
- # sfcljs (5)
- # spacemacs (1)
- # specter (2)
- # sql (20)
- # test-check (54)
- # yada (1)
I’m having trouble writing code that uses .requestAnimationFrame
and reloads well.
If I just call it on the first page load, then the old function definition stays running, and if I call it again then the function runs multiple times.
Well, I think I just solved my own problem, I call @draw-fn
and just (reset! draw-fn draw)
every time. Is this the best way to do this?
not sure what to make of this - when i set! a javascript data structure to add a new property, i’m unable to read that particular property later on - although .log js/console shows that the property is already there
4Clojure app on Android has been awesome to get my head around syntax nice and slowly. Also embeds some concepts quite nicely. I can do an exercise whenever I have time, so it’s convenient. Thought I’d throw it out.
I haven't tried the app, but the 4clojure web site is pretty great. Although it has only been ok to help me learn the concepts from scratch- after a lot of looking up things, I still often wind up stuck. I have started reading Clojure for the Brave and True, though, and it is better for a complete beginner
What is the best way to start writing code in Clojure?
Any beginner project?
@abhishekamralkar, or look at Clojure Koans, Clojure Katas, Wonderland Clojure Katas, and 4Clojure.
Those are good ways to get exposed to ‘coding’ in Clojure without investing in an entire personal project.
And I was offering a possible alternative which is why I added the clause ‘…without investing in an entire personal project’.
Thanks Guys
I will check it out
I'm running into a problem with some clojurescript / javascript interop, and I'm pretty sure I'm just doing something dumb... I have the function
function callback() { Acad.Editor.executeCommand("_erase","all","");}
in js and my translation to cljs is (defn callback [] (js/Acad.Editor.executeCommand "_erase" "all" ""))
When I compare the output, I am getting function my-ns$core$callback(){return Acad.Editor.executeCommand("_erase","all","");}
Any ideas how to get my output to match the original javascript? Or is there something else I'm doing wrong?