This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-02-01
Channels
- # aleph (71)
- # aws (1)
- # bangalore-clj (4)
- # beginners (36)
- # boot (153)
- # cider (23)
- # clara (9)
- # cljs-dev (67)
- # cljsjs (2)
- # cljsrn (22)
- # clojure (348)
- # clojure-argentina (4)
- # clojure-austin (12)
- # clojure-berlin (9)
- # clojure-dusseldorf (6)
- # clojure-france (4)
- # clojure-italy (4)
- # clojure-russia (358)
- # clojure-spain (2)
- # clojure-spec (28)
- # clojure-uk (109)
- # clojurescript (130)
- # core-typed (1)
- # cursive (35)
- # datascript (6)
- # datomic (18)
- # emacs (12)
- # hoplon (4)
- # klipse (64)
- # lein-figwheel (13)
- # leiningen (3)
- # luminus (4)
- # lumo (51)
- # mount (22)
- # off-topic (83)
- # om (22)
- # om-next (8)
- # onyx (3)
- # pedestal (8)
- # perun (6)
- # portland-or (2)
- # re-frame (50)
- # ring (8)
- # ring-swagger (5)
- # untangled (10)
- # yada (9)
When doing an advanced build, my namespace is said to be not defined
I’m using the official re-frame template without any changes to the project.clj other than adding dependencies and using a checkout
Can you give the full error message?
Does the app build from the template before you've started changing things?
I thought it compiled successfully, but when I scroll back in the history, I see : ERROR - Duplicate extern input
WARNING: uuid? already refers to: cljs.core/uuid? being replaced by: cognitect.transit/uuid? at line 342 /Users/Henrik/Projects/www/no/bdo/heartbeat/target/cljsbuild-compiler-1/cognitect/transit.cljs
feb 01, 2017 11:34:52 AM com.google.javascript.jscomp.LoggerErrorManager println
SEVERE: ERROR - Duplicate extern input: file:/Users/Henrik/.m2/repository/cljsjs/react-with-addons/15.4.0-0/react-with-addons-15.4.0-0.jar!/cljsjs/react/common/react.ext.js
feb 01, 2017 11:34:52 AM com.google.javascript.jscomp.LoggerErrorManager printSummary
WARNING: 1 error(s), 0 warning(s)
ERROR: JSC_DUPLICATE_EXTERN_INPUT. Duplicate extern input: file:/Users/Henrik/.m2/repository/cljsjs/react-with-addons/15.4.0-0/react-with-addons-15.4.0-0.jar!/cljsjs/react/common/react.ext.js at (unknown source) line (unknown line) : (unknown column)
I am newbie in re-frame. How is it with re-frame and JS components. Do I have to wrap them somehow?
@jiri.knesl What JS components are you talking about?
@heeton this is generic question. It can be datepicker http://www.material-ui.com/#/components/date-picker or anything else I find online
It’s pretty trivial to use JS from cljs - https://lambdaisland.com/episodes/clojurescript-interop
If you mean React components specifically, you can look at how to mix those into your reagent components.
with re-frame
I like the re-frame architecture so much, I’m tempted to try and use it on the JVM side. Am I nuts? Anybody using re-frame for significant server-side stuff on the JVM?
I’m just looking at all the cljc files and wondering if that mean’s it’s doable
re-frame is loosely related to a CQRS/event-sourcing architecture, which makes some domains wonderfully clear … but it certainly has its costs
One of my biggest struggles using re-frame to build interfaces is how to coordinate large chains of events … user clicks button - something should be fetched, if the fetch is successful notify another component so it too can go fetch something, or run another process … perhaps interpolated across 2/3/4 cross-cutting components
In a UI I don’t find the issue very frequent, but it’s certainly a demand that comes up often in backend data processing domains
I seem to remember using a library for live state inspection. Seen as an overlay in the browser where you could drill down into the state atom. Does it ring a bell for anyone?
Found the answer to my own question: re-frisk (https://github.com/flexsurfer/re-frisk)
@manutter51 I guess it depends on what you want to do server-side. One thing that came to my mind is that re-frame, and all libraries like it, are really all about having all your client's state in one place. What is the state on the server?
In theory, the db, as in mysql, for example
or maybe a session
The thing that appeals most to me, in the server context, is the idea of breaking response handling into events and event handlers
Eh, the more I think about it, the more I think it might be better to have a re-frame-like architecture built from the ground up for server-side stuff
assuming that’s even a good idea
How are others handling time in views? I don’t really want to be updating my DB with the time a few times each second, but I’m not sure how else to hook into the changing value.
@kauko I’ve got a “looked up the acronym” level understanding of CQRS, I like what I’ve seen of it so far
trying to remember the name of the talk I saw at Abstractions
Yeah. The reason I brought it up is because it sounds like re-frame's architecture is inspiring you, and you're sort of coming up with the idea of CQRS on your own, you know?
Wouldn’t be the first time 😉
Bobby Calderwood’s talk on Commander, using Kafka and Clojure and CQRS
I’ve been doing too much front end stuff lately, forgetting what I used to know about server-side.
I'm looking at re-frame code and trying to see how you'd apply it on the server-side.. REST-endpoints dispatch events (Commands) or expose data they're subscribed to (Queries).. then you'd have your event handlers for changing your state (database)?
Maybe I just lack vision but I don't see the value. At least if you have a stateless api
Yeah something like that. Probably you’re not seeing any value because there isn’t any. I was just looking at sources for re-frame and reagent, and the clj/cljc files prompted me to wonder what if
Thanks for reminding me about CQRS though, I think that’s really what I’m looking for here.