mount

2016-03-25T19:24:50.000057Z

I'm new to mount (having come from Component)...

2016-03-25T19:25:26.000058Z

And with Component, a healthy list of reusable components have emerged for connecting to databases, redis, etc...

2016-03-25T19:25:33.000059Z

Any such thing happening with Mount?

tolitius 2016-03-25T19:42:19.000060Z

@kendall.buchanan: welcome! I am not aware of components per se, but I remember @danielsz mentioned that he is quite open to adding components that could be reused among mount projects one thing to note (a part of the reason it did not yet happen is), take an example of a jdbc Component component: https://github.com/danielsz/system/blob/master/src/system/components/jdbc.clj in mount it'll just be:

(defn connect [db-spec] 
  (jdbc/get-connection db-spec))

(defn disconnect [conn] 
  (.close conn))

2016-03-25T19:43:00.000062Z

Right...

2016-03-25T19:43:10.000063Z

A slightly better example (still simple) is Hikaricp...

2016-03-25T19:43:49.000066Z

Reusable components like this for mount might be useful. Enjoying mount so far, by the way. Very little boilerplate.

tolitius 2016-03-25T19:44:54.000067Z

https://gist.github.com/tolitius/7449fc5c6248c9c9f5ff

tolitius 2016-03-25T19:46:13.000068Z

(thanks :simple_smile: ) yea, but having said that, I believe there is a room for reusable mount components, and it would be really cool to see more pull requests with them into something like <http://github.com/danielsz/system|github.com/danielsz/system>

1🍻
danielsz 2016-03-25T19:47:31.000069Z

Just to confirm : I plan to add support for mount in system.

danielsz 2016-03-25T19:47:41.000070Z

It's just a matter of time.

danielsz 2016-03-25T19:48:25.000071Z

Since I'm busy, and if people don't want to wait, I'll gladly accept PRs.

danielsz 2016-03-25T19:50:44.000073Z

The grand vision is that all the components should have their mount counterparts.

2016-03-25T19:53:51.000074Z

Thanks for the insights, guys.

tolitius 2016-03-25T19:55:00.000075Z

@danielsz: thanks for chiming in, that's great :simple_smile:

danielsz 2016-03-25T19:56:12.000076Z

👍 With great pleasure.