This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # arachne (2)
- # beginners (5)
- # boot (6)
- # cider (3)
- # cljsrn (2)
- # clojure (34)
- # clojure-brasil (1)
- # clojure-poland (1)
- # clojure-spec (52)
- # clojure-sweden (1)
- # clojurescript (17)
- # datomic (14)
- # leiningen (3)
- # luminus (2)
- # om (85)
- # proton (89)
- # protorepl (1)
- # re-frame (1)
- # reagent (8)
- # ring-swagger (1)
- # spacemacs (2)
- # yada (6)
I’m using Light Table. I can evaluate expressions in the text editor by pressing <cmd>+<enter>, for example: (eval 123) But when I try to evaluate only: 123 …then nothing happens.
I think this was the wrong forum for this question, so I have posted it at the LightTable Google Discussion group instead 😉
hi guys, do we have any good example of directory structure for ddd project in clojure ? This is what I found in Symfony ? Any idea would be appreciated 😄
as that's quite heavily biased toward OOP, I'd be skeptical about using such a structure as a basis for a clojure project
clojure differs from PHP quite a lot, you need to approach it with a new way of thinking
@pesterhazy: it's domain driven development. @bojan.matic: totally agree, but I find domain ddd quite useful in architecting big project. With clojure we can simplify some abstractions in the design .
@nxqd: I'd be interested in hearing how ddd ideas could be translated to a world of values, not objects, and if anything useful remains
I don’t think ddd is incompatible with clojure, at least as I understand it. A clojure program hewing to ddd would tend to have mostly pure fns that express the logic of the domain and take care to be clear about the domain models (data structures) and interfaces between bounded contexts (protocols, queues?)
Has anyone given much thought to how clojure.spec can be used in conjunction with serialization formats. Basically what is clojure.spec's answer to prismatic/plumatic coercions (even if it's not implemented yet).
@cddr: I believe conformers are supposed to answer that use case: https://clojure.github.io/clojure/branch-master/clojure.spec-api.html#clojure.spec/conformer but they are very different to Schema coercers.
A simple example here: https://gist.github.com/Deraen/6c686358da62e8ed4b3d19c82f3e786a
Hello! There is any way to convert a
let bindings to a map, using the names as keywords? Like the example below, but, in a more concise way:
(Hmm, I dimly recall seeing a clojurewerkz library with binary data in the description... wonder if I can learn this stuff just from those docs, heh)
Hmm... Thanks @gfredericks ... is it just as simple as "find something on the js/cljs end that turns a PDF into base64," then "find something on the clj/java end that turns a base 64 back into a PDF?" This is a low load project, so if that's as easy as it is, then I might just slap something horribly inefficient together and run with it.
Awesome, thanks y'all! Unfortunately it looks like there are a bunch of chrome api restrictions prohibiting just casual passing around of binary data between the bit of the extension that can read a page and the bit that can interact with the outside world... but if a base64 encoding is just a normal ASCII string, even if it's a stupidly long ASCII string, then I can do whatever I want with it. Yay!