This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-01-10
Channels
- # adventofcode (3)
- # aws (2)
- # beginners (85)
- # boot (8)
- # boot-dev (4)
- # cider (36)
- # clara (3)
- # cljs-dev (87)
- # cljsrn (3)
- # clojure (87)
- # clojure-austin (12)
- # clojure-brasil (1)
- # clojure-dev (8)
- # clojure-dusseldorf (5)
- # clojure-estonia (5)
- # clojure-greece (4)
- # clojure-italy (3)
- # clojure-spec (17)
- # clojure-uk (55)
- # clojurescript (70)
- # core-logic (2)
- # cursive (6)
- # data-science (18)
- # datomic (13)
- # emacs (34)
- # fulcro (347)
- # graphql (12)
- # hoplon (6)
- # jobs (3)
- # jobs-discuss (43)
- # juxt (2)
- # keechma (31)
- # leiningen (29)
- # lumo (2)
- # midje (2)
- # off-topic (118)
- # om-next (4)
- # onyx (39)
- # pedestal (6)
- # re-frame (85)
- # reagent (21)
- # remote-jobs (3)
- # ring (5)
- # rum (2)
- # shadow-cljs (126)
- # spacemacs (1)
- # sql (6)
Random core function of the day:
-------------------------
clojure.core/comp
([] [f] [f g] [f g & fs])
Takes a set of functions and returns a fn that is the composition
of those fns. The returned fn takes a variable number of args,
applies the rightmost of fns to the args, the next
fn (right-to-left) to the result, etc.
do we use a function to determine the random core function of the day... some like rnd-nth
on a vector of the functions from the core file ?
There might be a better way, but Iām using:
(eval `(doc ~(-> 'clojure.core ns-publics keys rand-nth)))
@U0FR9C8RZ what does the ~
do?
it unquotes the following form
TIL š
effectively we look up a random symbol, and then stick it into the (doc ...)
form for evaluation
because doc
is a macro, itās a bit of a pain, ie. you canāt just apply
it to something
Morning
Would comp
then be the same thing as chaining functions together?
How else might you chain them? Were you thinking with ->
?
ĀÆ\(ć)/ĀÆ
Maybe
I like that Clojure works for (source ->)
The effect of comp
is similar, yes. but you get a function rather than a form (as with ->
)
I always have to think carefully about the argument order when calling comp
though
Nice thing about comp
is itās pure functions, no macro magic involved.
So, today, finally, I am back to a normal(ish) work scheduleā¦ Did everyone have a nice Xmas / New Year?
Does anyone out there know of a mature / usable ClojureScript Library for building forms with drag and drop
not sure @maleghast but I vaguely remember there was something with bootstrap and reagent.
@guy - I will have a look at re-forms, as it might be enough of a foundation for me to build on.
I need to put together a UI to ābuildā / create data schema, so that non-technical people can lay out the bones of a domain data type for a crop or a port or well, many kinds of things, so that on the back end that description can be processed into a Datomic Schema.
This ^^ is a great library, thanks chaps š Iāll be honest I am going to spend a little more time looking around for something that does āexactlyā what I am looking for, but I am going to use reforms to build what I want if I canāt find it, and the next time I need to build a form to just be a form then itās going to be my āgotoā unless something better has come along in the meantimeā¦
looks like a nice libraryā¦ shame itās bootstrap 3 not 4 though
>shame it's bootstrap 3 not 4 though