This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-07-29
Channels
- # beginners (18)
- # boot (1)
- # cider (12)
- # clojure (18)
- # clojure-russia (5)
- # clojure-uk (8)
- # clojurescript (17)
- # cursive (7)
- # datomic (10)
- # editors (1)
- # figwheel-main (14)
- # hoplon (2)
- # hyperfiddle (1)
- # keechma (2)
- # leiningen (25)
- # off-topic (5)
- # onyx (3)
- # reagent (53)
- # reitit (6)
- # shadow-cljs (14)
- # spacemacs (3)
- # tools-deps (14)
- # uncomplicate (12)
is there a way to make Cursive reindex dependencies (preferably automatically) when new deps are added to a project.clj file, and lein deps
(or some other command which causes the deps to be downloaded) is run?
it seems "File -> Invalidate Caches / Restart" does the trick, but that's kind of annoying when adding new libraries
@risinglight Colin Fleming isn't in this channel but he's very responsive in #cursive if you have questions like that...
i was told not to use one letter variable (parameter?) names before but it seems like it might be ok to do so in clojure as long as you do so idiomatically? like 's' for strings and such. where would i find those? is there an official style guide for that kind of thing?
honestly that's a rule best learned by reading and writing lots of code. learn where it gets confusing to the consumer
a good rule of thumb i've heard is the more general the function the shorter the variable name

@chase-lambert https://github.com/bbatsov/clojure-style-guide#naming <-- this will be a good read for you I think.
Hi, I've been playing with Luminus and would like to add reagent-forms to my project. I added [reagent-forms "0.5.42"]
to the project.clj, however when I try to add [
to the :require section in either core.cljs or core.clj I the error
java.io.FileNotFoundException: Could not locate reagent_forms/core/com__init.class or reagent_forms/core/com.clj on classpath
... I must be missing something simple. I did restart the nrepl / figwheel and the http serverLein did download reagent-forms when I had first restarted it after adding the line to project.clj
so if I am learning clojure am i basically also learning clojurescript? will the main difference be that instead of learning java methods and libraries to call when needed i would just be calling javascript instead? but writing the same ole clojure at the same time?
yes. the interop syntax is the same as well. for the most part the languages are the same just with different native libraries
this is the idea behind .cljc
files which can target any platform and have reader conditionals for the parts that need to specialize
very cool. so is clojure(script) still gaining in popularity or is it kind of in a plateau? even if it's "plateau'ed" the user base is large enough that it seems like a robust, active community right? it's not going anywhere? i know i have rose colored beginner glasses on because i'm so new but it just seems like this could be such a good language to grow with.