This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-10-31
Channels
- # bangalore-clj (3)
- # beginners (15)
- # boot (128)
- # cider (4)
- # cljs-dev (12)
- # cljsjs (1)
- # clojure (105)
- # clojure-austin (5)
- # clojure-canada (6)
- # clojure-italy (5)
- # clojure-russia (14)
- # clojure-spec (70)
- # clojure-uk (21)
- # clojurebridge (3)
- # clojurescript (264)
- # cloverage (6)
- # cursive (4)
- # data-science (6)
- # datomic (10)
- # dirac (5)
- # editors (30)
- # events (3)
- # hoplon (9)
- # klipse (7)
- # leiningen (3)
- # luminus (4)
- # off-topic (9)
- # om (5)
- # om-next (1)
- # onyx (1)
- # parinfer (2)
- # perun (28)
- # re-frame (5)
- # ring (1)
- # rum (11)
- # spacemacs (2)
- # specter (10)
- # sql (3)
- # uncomplicate (4)
- # untangled (67)
- # vim (2)
- # yada (1)
I have been reading recently about Mount and Component. Is one of those recommended for beginner to use or should I just pick one try?
Or should I even be looking at them? I am trying to write media server so I need currently to keep in memory what songs are in disk etc.
https://www.booleanknot.com/blog/2016/01/24/how-i-use-component.html (highly erecommend reading the discussions) http://yogthos.net/posts/2016-01-19-ContrastingComponentAndMount.html https://www.reddit.com/r/Clojure/comments/41p73n/contrasting_component_and_mount/ I'd say that component is more prevailent. I personally prefer the dependency-injection style of component, but you may come to your own conclusions.
I did already read some of those links but the conversation felt like it was more ideological than practical at least in my beginner eyes
That’s a fair summary, tbqh, though I prefer component as well
I think mount is probably easier, and component is probably simpler, using Rich’s terminology
The most important thing that both provide you is an orderly approach to building, accessing, mutating, and destroying state. That’s 90% of the battle
I don’t think neither mount nor component provide any thing special to have a cache of items from disk.
But, in regards to mount & component, I personally prefer component. I find it much simpler and provides the necessary constraints to force you to think about how to organize the outer edges of your code.
Mount might be “easier” to start, but it is also fairly easy to misuse it because it is non-prescriptive.
I’d recommend to just pick one and learn it, but none of these will really save you the hard work of spending some time thinking about the architecture of your system.
Heh, I guess I have do some more reading about Component and Mount. But good to know that there is no obviously bad choice 🙂
If anyone is interested, here are a list of Clojure(script) open source projects that are beginner-friendly (just check the "beginner friendly?" box on the right): http://open-source.braveclojure.com/