This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-11-19
Channels
- # aleph (5)
- # announcements (1)
- # babashka (5)
- # beginners (123)
- # biff (9)
- # calva (8)
- # cider (1)
- # clj-on-windows (8)
- # clojure (20)
- # clojure-europe (7)
- # clojure-hungary (3)
- # clojure-norway (1)
- # clojure-sweden (32)
- # clojurescript (2)
- # core-async (2)
- # emacs (6)
- # events (3)
- # fulcro (30)
- # graphql (4)
- # gratitude (3)
- # helix (10)
- # honeysql (7)
- # introduce-yourself (11)
- # kaocha (1)
- # malli (16)
- # matcher-combinators (1)
- # off-topic (7)
- # portal (1)
- # re-frame (12)
- # reagent (3)
- # ring (7)
- # scittle (3)
- # shadow-cljs (1)
- # sql (1)
- # tools-deps (8)
If someone has mad skills or just passion for visualizing things with javascrip/plantuml/any-open-source, would appreciate tips or help: I would like to visualize both the malli transformer chains + the meander transformations. Did the https://www.metosin.fi/blog/transforming-data-with-malli-and-meander/#visualization in the blog post with Joint+, but it’s under commercial licence, so not valid for OS. Just did a http://www.plantuml.com/plantuml/uml/fPHHxz8m4C3V-oak-_i0wYH0JBGGn1XUUT74HrFM0wfRIxgEe8HFvdVmCzckb7MXQ8nls-_krj_jRblMXcdJL2L1QOJv3XzLemi4LaD6Y_euKXnr1cS2Bq1m2hGsMiYTkzqANPirgx17IvQ0mc0rlYEJ7h5NYAQ7VeX3TtyXGV4JqpiqNf6hYWbvPzaqWhSFTTt4BW7bKJFkIPv-yLKovLzRSiJ2AEq8urnZxLZ53f7RUyzZkMTAMxlHjIApagbk4-qAQL1lMO6mEXrShL1o3FCv37xzV0bFRrv_6A_U3c6n07XQioFxgZxlhUci51BffcJ5j_RorKQLV6RmP3m4Pm3lKkEpk6G9UgxGx1M_mC2og1GooBgIuIFfILBwNvpFFOlCBcRswB1fyh3_E6sWcRIJpDrEjItw_QFqEb78jTZjJPu_3zCdn7z5b0eUeWi8PTsgXQpkVORaUE9H_5PHiZyMX73duJx0UvLshtj9axyb-SMzPOMMG-2MPvSvaMGf8PrgGaawxNXrqkylpfacd3bPekJsl_OR with PlantUML, but the layout is kinda bad and doesn’t support nested fields properly. 🧵
What about https://mermaid-js.github.io/mermaid/#/classDiagramUnfortunately, no experience yet and not sure if it is better than PlantUML.
@U055NJ5CC I tried graphviz dot (for the first time - so this could be improved upon I guess): https://bit.ly/3TVe9NU
merged the :enum
& :=
type-inferrer with transformers into master. So, this works now:
(m/decode
[:map
[:enum1 [:enum :kikka :kukka]]
[:enum2 [:enum 'kikka 'kukka]]
[:enum3 [:enum 1 2]]
[:enum4 [:enum 1.1 2.2]]]
{:enum1 "kikka"
:enum2 "kikka"
:enum3 "1"
:enum4 "1.1"}
(mt/string-transformer))
;{:enum1 :kikka
; :enum2 kikka
; :enum3 1
; :enum4 1.1}
Hi, I've started using malli's function intrumentation for cljs projects, it works great but on error I'm getting "Warning" message in browser's console, is it posible to make it to be an "error" instead of "warning"?
can you post a screenshot? and how are you starting the instrumentation?
this is how they look with
https://github.com/metosin/malli/blob/master/docs/clojurescript-function-instrumentation.md#errors-in-the-browser-console
when its reload (shadow-cljs detects some changes) it's an warning, when page is refreshed (for example F5) it's an error
ah, i think this is due to the way shadow-cljs loads cljs code - it uses eval
and prevents exceptions from being thrown as they normally do
I've found the following pattern works to get proper malli exceptions displaying:
https://github.com/matterandvoid-space/todomvc-fulcro-subscriptions/blob/766d27be316c3f2ab6a23bd8db30932ec0601a4f/src/main/space/matterandvoid/todomvc/client/dev_entry.cljs#L20