This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-08-14
Channels
- # architecture (19)
- # beginners (3)
- # calva (2)
- # cherry (2)
- # clj-kondo (2)
- # clojure (58)
- # clojure-europe (15)
- # clojure-norway (1)
- # conjure (1)
- # data-oriented-programming (9)
- # data-science (10)
- # emacs (9)
- # hyperfiddle (1)
- # nbb (9)
- # off-topic (1)
- # shadow-cljs (24)
- # sql (14)
- # squint (58)
- # testing (13)
- # xtdb (10)
Is passing EDN over-the-wire considered a deprecated design implementation at this point? While browsing cljs-ajax
, I noticed that its EDN parsing was marked as deprecated (https://github.com/JulianBirch/cljs-ajax/blob/master/docs/formats.md), while Transit and JSON seem to be the options with the best performance. I know you can technically respond with application/edn
as your data type when writing HTTP servers, but is this not something that people really do anymore?
Yes, people still use EDN over the wire. ClojureScript has clojure.edn
for parsing it: http://cljs.github.io/api/clojure.edn/ -- but your choice depends on a number of things: is the back end Clojure or some other language? Is performance sufficiently critical to need Transit? Do you need more than just JSON?