This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # announcements (1)
- # aws (11)
- # beginners (28)
- # boot (235)
- # business (1)
- # cider (19)
- # clojure (34)
- # clojure-china (1)
- # clojure-czech (10)
- # clojure-japan (7)
- # clojure-poland (3)
- # clojure-russia (84)
- # clojure-sg (4)
- # clojure-uk (3)
- # clojurescript (114)
- # community-development (4)
- # core-async (15)
- # cursive (8)
- # datascript (5)
- # datomic (6)
- # editors-rus (27)
- # events (2)
- # hoplon (61)
- # jobs (2)
- # ldnclj (56)
- # ldnproclodo (5)
- # lein-figwheel (232)
- # luminus (1)
- # off-topic (5)
- # om (215)
- # onyx (436)
- # overtone (8)
- # re-frame (3)
- # reagent (3)
out of curiosity, do you write any tests against the top level functions, since you have total control of the DB protocol? in my case, i was considering writing some tests against my ring handlers before i did some refactoring
yeah we write them how you did, you can also have the reify impl record its calls in an atom for verification, ie mock vs stub
I definitely got the pattern from someone's talk at clj/west this year, just trying to remember who... probably Anthony Marcar here https://www.youtube.com/watch?v=av9Xi6CNqq4
@bfabry: hey one more question, in that defrecord for SQL-DB, is there any lifecycle stuff to do? if the actual db connection is a separate Component, it will be started and stopped on its own. it seems like there's nothing to start/stop in the SQL-DB component
if the connection is managed by a separate component then yeah, you wouldn't need to implement lifecycle for the db I don't think
Curious if it would be possible with core.match to use rest patterns but also match the last element in a vector? It seems like the rest pattern may preclude that? I want to match a few initial elements, and variable amount of elements, and then the last element
I’d like to override a single method of a protocol for a specific type — is that possible at all? extend-type tells me the protocol is already defined for this type
Other than having an if, is there a Clojure way to inc a value but if a value is at a max level, wrap around back to zero? I vaguely remember seeing very concise code for this at some point.
@thheller was my code snippet the last post you saw? I edited it several times right after I posted it. Maybe slack didn't like that
yeah, then I posted my reply and the rest appeared ... but maybe it was just scroll locked
Hey folks - if I wanted a quick and easy lib to display 3d visualisations, what would you suggest? First thought is Quil, but I haven’t looked at what else is out there.
@pupeno: you can use unchecked-inc to wrap around from Long/MAX_VALUE to Long/MIN_VALUE (basically this removes the overflow check)
how can I control of how some map is being printed in repl (aka implement rubyish
inspect method, not
toString for it?)
Hey all… Could someone explain to me how the fixed future thread pool works and if it borrows from teh available threadpool. I.e. Do spawned futures take threads away from incoming requests (assuming the app is behind a webserver)
alexmiller: So am I correct in assuming that the more futures spawned, that less threads would be available to service requests?
Does anybody know how to teach a CI server like Jenkins about the dependency tree of leiningen dependencies?
I'd like our build server to only rebuild downstream projects if they depend on the specific snapshot build we're integrating....
Was thinking it might be possible to use
lein pom and the jenkins maven plugins to do this?