This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-09-02
Channels
- # bangalore-clj (4)
- # beginners (30)
- # boot (11)
- # cljsrn (11)
- # clojure (18)
- # clojure-conj (2)
- # clojure-italy (1)
- # clojure-uk (6)
- # clojurescript (14)
- # clojurewerkz (1)
- # core-async (3)
- # fulcro (14)
- # hoplon (12)
- # lumo (7)
- # off-topic (24)
- # onyx (2)
- # portkey (1)
- # protorepl (1)
- # re-frame (8)
- # spacemacs (14)
- # specter (95)
- # unrepl (14)
@juanjo.lenero It was the same for me. Coming from Java I did something similar. Now I'm used to something more similar to [most-specific -> most-general]. I rarely use declare
myself nor see it in open source projects
Yep, seems better to just change that habit now, thanks
@juanjo.lenero I would recommend changing the habit, because the nice thing about clojure requiring forward declarations means that the namespace will be ordered specific->general automatically, rather than you having to remember it
yeah understood, I used to prefer the same and if I was choosing between two I'd probably choose top to bottom. but I'll take bottom to top enforced over top to bottom unenforced
Is there a macro thread for map values? I have a function (encode {:k1 2 :j _}) that results in a value that I want to thread into two other encode functions who's k1 is know
@bfabry but I'll take bottom to top enforced over top to bottom unenforced
completely agree
Exercism or 4Clojure or Codewars or Hackerrank?
I would say it depends on your end goal. I like hackerrank, but it seems more focused on finding solutions to problems that may require thinking in algorithms for example, whereas some of the other options are more about learning the Clojure language itself (e.g. 4clojure)... although I might be mistaken
ProjectEuler is another one, more on the algorithm side and plenty challenging... some of the upper problems have stumped my engineering dept.
I think Exercism + Other Clojure specific ones + Hackrank seems the way to go.
Is there a consensus on which tool is “better” between Lein and Boot? Or do they both have their strengths and weaknesses ?
I believe the gernalization is that lein does everything "for you", which is easier to setup but results in more rigidity. Boot if very flexible but a little more involved, though far from difficult to use. I personally prefer boot.
Quick question, why is it necessary in the definition of 'comp' to handle 4 different arities (parameters) when presented with 2 functions to compose?
https://github.com/clojure/clojure/blob/clojure-1.9.0-alpha14/src/clj/clojure/core.clj#L2530
(fn
([] (f (g)))
([x] (f (g x)))
([x y] (f (g x y)))
([x y z] (f (g x y z)))
([x y z & args] (f (apply g x y z args)))))
instead of having [x] then [x y] then [x y z] and then the one with the rest and the apply
or is this just for clarity so that when someone reads the source code of a method, they know what's going on?
Got it - the issue was caused that a :dev
profile in a profile.clj was overriding the one in project.clj - they are NOT merged.
https://github.com/weavejester/environ/issues/15#issuecomment-54002457