Fork me on GitHub
#beginners
<
2018-06-16
>
dylandrake01:06:40

Does anyone know of any good examples for full Clojure web apps passing transit back and forth between server and client in ajax requests?

noisesmith01:06:23

sente uses transit and can be configured to use ajax (though it prefers websockets)

_rj_r_13:06:53

why is the use of use frowned upon in production code?

_rj_r_13:06:09

ah.. nevermind I think... I just found that since use also refers ... that using require is preferred to avoid namespace collisions. Correct?

dpsutton13:06:32

exactly right. also there's interest in people reading your code to see the prefix namespace where it came from without having to remember all of the constituent parts of each imported namespace

4
4
montanonic20:06:09

How do I change the way a record displays in repl or when printed?

mg23:06:51

@montanonic something like

(defmethod clojure.core/print-method YourRecord
  [your-record ^java.io.Writer w]
  (.write w some-code-here-that-returns-your-string-representation))

👍 4