Re: [ClojureScript] new web-based live desktop environment similar to cloxp

2018-04-24 Thread Jamie Orchard-Hays
Looks interesting. The first thing I look for when something new comes out is, “why did we build this thing? (what problem are we solving with this?)” Do have anything like that on the site? Cheers, Jamie > On Apr 23, 2018, at 11:52 AM, david...@fizzygum.org wrote: > > Hi, > > sending you

Re: [ClojureScript] basic conceptual question: clojurescript & core.async

2016-08-08 Thread Jamie Orchard-Hays
Important concepts to understand are: * Concurrency * Parallelism People often use the terms as synonyms, but they are not. You can have concurrency in single-threaded environments, but you can not have parallelism in single-threaded environments. This recent talk, “From Concurrent to Parallel

Re: [ClojureScript] [Ann] Planck 1.9

2016-01-25 Thread Jamie Orchard-Hays
That’s really great. Mike’s doing terrific work. Jamie > On Jan 25, 2016, at 4:21 AM, Karel Miarka wrote: > > On Monday, January 25, 2016 at 10:16:34 AM UTC+1, Karel Miarka wrote: >> I'm just curious if there is any chance to run it on Linux? >> Thanks! > > The answer is probably here > https

Re: [ClojureScript] Representing Signals

2015-12-10 Thread Jamie Orchard-Hays
Javelin is really nice. > On Dec 10, 2015, at 3:40 PM, Eivind Magnus Hvidevold > wrote: > > > I've used Javelin (https://github.com/hoplon/javelin > ) for this very purpose (window > width/height and resize) in > https://github.com/emnh/glsl-graph/blob/ma

Re: [ClojureScript] [ANN] ClojureScript React Native: cljsrn.org

2015-10-01 Thread Jamie Orchard-Hays
Maybe brutha? https://github.com/weavejester/brutha Or quiescent? https://github.com/levand/quiescent Jamie > On Oct 1, 2015, at 6:31 PM, Marc Fawzi wrote: > > I guess I'm asking if anyone knows of a super thin Rea

Re: [ClojureScript] weird clojurescript encoding of UUID from transit

2015-09-26 Thread Jamie Orchard-Hays
Why *does* Transit have another UUID type? I was surprised to see that. > On Sep 26, 2015, at 6:06 PM, Nikita Prokopov wrote: > > Having two UUID types around is not a good idea. Transit shouldn’t have its > own type, but since it’s there, I recommend re-configure transit reader to > always r

Re: [ClojureScript] Favorite Web Stacks and why

2015-09-12 Thread Jamie Orchard-Hays
uart's Component system for just enough plumbing to manage components >>> - Cursive for the best Clojure IDE in the world or emacs/cider for the >>> best text editor in the world :-) >>> >>> (Cursive and Cider - you both rock!) >>> >>> HTH >

[ClojureScript] Favorite Web Stacks and why

2015-09-11 Thread Jamie Orchard-Hays
I’m curious what your favorite web stacks in Clojure and Clojurescript are these days. Client and server libs you like to use and what you like and don’t like about them. Cheers, Jamie -- Note that posts from new members are moderated - please be patient with your first post. --- You receiv

Re: [ClojureScript] Generating JavaScript Externs

2015-07-09 Thread Jamie Orchard-Hays
I’ll definitely be checking this out. Cheers! > On Jul 8, 2015, at 8:45 PM, Michael McLellan wrote: > > Hi, > > I recently wrote a tool for generating externs from a given JavaScript file. > You can find it on github here: > https://github.com/jmmk/javascript-externs-generator > > I'm hoping

Re: [ClojureScript] Can I use atom inside the function?

2015-06-23 Thread Jamie Orchard-Hays
"volatile" is a great choice of name. It sounds like a warning, as well as indicating that is mutable. BE AWARE WHAT YOU'RE DOING WITH ME, I CAN BE DANGEROUS! :) Jamie On Jun 22, 2015, at 9:20 PM, Marc Fawzi wrote: > Ah! Thank you very much for this explanation!! > > Sent from my iPhone >

Re: [ClojureScript] In Om, why does transact not update cursor value.

2015-05-29 Thread Jamie Orchard-Hays
In some life-cycle methods you need to deref and others you don't. I found it confusing until I got that straight. On May 29, 2015, at 1:11 PM, John Chijioke wrote: > I also didn't understand that was what David meant by "you absolutely need to > deref". > > -- > Note that posts from new me

[ClojureScript] rum

2015-05-21 Thread Jamie Orchard-Hays
The Cambrian Explosion continues! https://github.com/tonsky/rum It's exciting to see all these ideas around React taking form in libraries. Jamie -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscrib

Re: [ClojureScript] Using a state machine to design/program UI ?

2015-05-20 Thread Jamie Orchard-Hays
jebbZ > @Dj3bbZ > > On Wed, May 20, 2015 at 3:51 PM, Jamie Orchard-Hays > wrote: > For local state, I mean state that has to do only with the component itself, > nothing to do with the data itself. For example, if I have a component that > can switch between editing/reading

Re: [ClojureScript] Isomorphic ClojureScript

2015-05-20 Thread Jamie Orchard-Hays
Didn't read like a rant, but rather as some well thought-out points. :) On May 19, 2015, at 6:00 PM, Matt Ho wrote: > Let me give a slightly different take on it. My sense is we got to SPAs > because the industry wanted more responsive and more dynamic web sites. That > said, I would break d

Re: [ClojureScript] Using a state machine to design/program UI ?

2015-05-20 Thread Jamie Orchard-Hays
been > doing local state wrong :) (actually pretty likely!) > > > PS: It'll probably be some time before I get a chance to read Horrocks' book. > If anybody knows of any similar content available on the web for me to read > in the meantime, I'd love to hear of

Re: [ClojureScript] Using a state machine to design/program UI ?

2015-05-19 Thread Jamie Orchard-Hays
I agree. The word that came to mind while reading your comments, Daniel, was "modularity". Does modularity imply local state? Pondering... Jamie On May 18, 2015, at 1:26 PM, Khalid Jebbari wrote: > I like how you break up the state machines, it has sense in web app. Page 1 > has 2 widgets, pa

Re: [ClojureScript] Using a state machine to design/program UI ?

2015-05-15 Thread Jamie Orchard-Hays
Here's where I find local state useful and I am curious how advocates of centralized state handle it: A view component that allows editing. For example, click on the text and it changes to an input element. To me that is local state: "I'm in reading mode. Now I'm in editing mode." In my own app

Re: [ClojureScript] Using a state machine to design/program UI ?

2015-05-14 Thread Jamie Orchard-Hays
Speaking of Cambrian Explosion, I saw in the latest LispCast a link to a new React CLJS lib from weavejester called Brutha: https://github.com/weavejester/brutha Jamie On May 14, 2015, at 8:54 PM, Jamie Orchard-Hays wrote: > Actually, I'm interested in local transitions (cell=) rat

Re: [ClojureScript] Using a state machine to design/program UI ?

2015-05-14 Thread Jamie Orchard-Hays
understanding of supplication logic. > > I'm currently mulling over the idea of combining re-frames app-db with a > state machine (perhaps using automat). I feel like maybe a hybrid approach > could work well, but an unsure how it would look. > > > On Thu, 14 May 2015 22:3

Re: [ClojureScript] Using a state machine to design/program UI ?

2015-05-14 Thread Jamie Orchard-Hays
I'm still in the early stages of digesting Javelin, but one idea I keep having is using it locally in components to make subscriptions that are otherwise global using reframe. On May 14, 2015, at 4:20 PM, Jamie Orchard-Hays wrote: > No kidding. I have this long blog post germinati

Re: [ClojureScript] Using a state machine to design/program UI ?

2015-05-14 Thread Jamie Orchard-Hays
olled inputs. > > > Sent from my iPhone > > On May 14, 2015, at 1:20 PM, Jamie Orchard-Hays wrote: > >> No kidding. I have this long blog post germinating in my head about my >> experiences with Om and re-frame now that I've developed a reasonably-sized &

Re: [ClojureScript] Using a state machine to design/program UI ?

2015-05-14 Thread Jamie Orchard-Hays
ill use, let's invest in this" > then something new comes along. Not good for those of use affected with > "grassisalwaysgreeneritus" :). > > On 14 May 2015 19:39, "Jamie Orchard-Hays" wrote: > This is really interesting stuff. I'd looked over Ho

Re: [ClojureScript] Using a state machine to design/program UI ?

2015-05-14 Thread Jamie Orchard-Hays
This is really interesting stuff. I'd looked over Hoplon a year ago and didn't use it as it wasn't React-based. I really liked the spread-sheet/cell metaphor. I wish I had more time to explore all of these libs! :) CLJS is enjoying quite a Cambrian explosion of interesting libraries. Jamie On

Re: [ClojureScript] Using a state machine to design/program UI ?

2015-05-14 Thread Jamie Orchard-Hays
Ruslan, ampere looks interesting. You've taken the handler/middleware code from re-frame and combined with javelin to make ampere. Is that a fair assessment? I'll have to have a look at javelin. Jamie On May 14, 2015, at 9:45 AM, Ruslan Prokopchuk wrote: > And that is why they should be compil

Re: [ClojureScript] typeahead works with :compile :simple, not :compile :advanced

2015-05-13 Thread Jamie Orchard-Hays
Yup. I realized right after I sent the email that only :advanced needs externs. On May 13, 2015, at 12:33 PM, Daniel Kersten wrote: > As far as I know, in compile simple identifiers are not renamed, so externs > are not needed. > > > On Wed, 13 May 2015 17:28 Jamie Orch

Re: [ClojureScript] typeahead works with :compile :simple, not :compile :advanced

2015-05-13 Thread Jamie Orchard-Hays
ss the library follow strict > conventions. > > David > > On Wed, May 13, 2015 at 12:23 PM, Jamie Orchard-Hays > wrote: > Hoping someone might have some insight that can help with this. > > I'm using Twitters Typehead (0.9.3, before its big rework) in a &

[ClojureScript] typeahead works with :compile :simple, not :compile :advanced

2015-05-13 Thread Jamie Orchard-Hays
Hoping someone might have some insight that can help with this. I'm using Twitters Typehead (0.9.3, before its big rework) in a re-frame/reagent app. Below is a snippet that works fine when :compile :simple is used, but fails when :compile :advanced is used. I'm using the typeahead.js and hogan

Re: [ClojureScript] autocomplete/typeahead in Reagent/re-frame

2015-05-12 Thread Jamie Orchard-Hays
Jamie On May 11, 2015, at 10:58 PM, Oliver Gorman wrote: > On Tuesday, 21 April 2015 09:42:26 UTC-5, Jamie Orchard-Hays wrote: >> Thanks for all the suggestions, y'all. I spent a few hours on the weekend >> and Monday prototyping what effort it would take to create my own. To

Re: [ClojureScript] :foreign-lib differences between :none and :advanced

2015-05-05 Thread Jamie Orchard-Hays
ply externs for > non-Closure libraries. > > David > > On Tue, May 5, 2015 at 12:29 PM, Jamie Orchard-Hays > wrote: > Been chasing a bug this morning which turned out to revolve around using > Big.js for BigDecs in my re-frame app. > > Big.js has a synonym for add()

[ClojureScript] :foreign-lib differences between :none and :advanced

2015-05-05 Thread Jamie Orchard-Hays
Been chasing a bug this morning which turned out to revolve around using Big.js for BigDecs in my re-frame app. Big.js has a synonym for add()--plus()--which worked fine in my dev compilation mode of :none. For production compilation with :advanced, my reduce function was blowing up. Here's h

Re: [ClojureScript] cljs compiler options :closure-defines {:goog.DEBUG false}

2015-05-05 Thread Jamie Orchard-Hays
ffect that :clojure-defines is ignored for :none and :whitespace optimizations. Jamie On May 5, 2015, at 3:07 AM, Mike Thompson wrote: > On Tuesday, May 5, 2015 at 11:02:15 AM UTC+10, Jamie Orchard-Hays wrote: >> WRT wiki: looking at this commit, it looks like a keyword works: >>

Re: [ClojureScript] cljs compiler options :closure-defines {:goog.DEBUG false}

2015-05-04 Thread Jamie Orchard-Hays
WRT wiki: looking at this commit, it looks like a keyword works: https://github.com/clojure/clojurescript/commit/cb7e97f13ae6a03086f5d96ba58e5f3d5cba7dc3 (name key) Jamie On May 4, 2015, at 8:55 PM, Jamie Orchard-Hays wrote: > Aha! Thanks to you both, David and Thomas! :optimizations :n

Re: [ClojureScript] cljs compiler options :closure-defines {:goog.DEBUG false}

2015-05-04 Thread Jamie Orchard-Hays
16 PM, David Nolen wrote: > >> Should be "goog.DEBUG" not :goog.DEBUG. >> >> David >> >> On Mon, May 4, 2015 at 6:13 PM, Jamie Orchard-Hays >> wrote: >> Can't figure out what I'm doing wrong here: >> >>

Re: [ClojureScript] cljs compiler options :closure-defines {:goog.DEBUG false}

2015-05-04 Thread Jamie Orchard-Hays
t :goog.DEBUG. > > David > > On Mon, May 4, 2015 at 6:13 PM, Jamie Orchard-Hays wrote: > Can't figure out what I'm doing wrong here: > > project.clj: > > {:compiler > :closure-defines {:goog.DEBUG false}...} > > But in my app, it evaluates t

[ClojureScript] cljs compiler options :closure-defines {:goog.DEBUG false}

2015-05-04 Thread Jamie Orchard-Hays
Can't figure out what I'm doing wrong here: project.clj: {:compiler :closure-defines {:goog.DEBUG false}...} But in my app, it evaluates true. (println "js/goog.DEBUG: " ^boolean js/goog.DEBUG) => true org.clojure/clojurescript "0.0-3126" lein-cljsbuild "1.0.5" -- Note that posts from new

Re: [ClojureScript] [ANN] re-com v0.5.3 - New Interactive Demo for h-box

2015-04-29 Thread Jamie Orchard-Hays
This looks fantastic. If it worked in all browsers, I'd be tempted to use it. What are the ultimate goals of the re-com project? Jamie On Apr 29, 2015, at 7:31 AM, Mike Thompson wrote: > > > In this release, there's a shinny new interactive demo for h-box. Edit the > hiccup and see the chan

[ClojureScript] Re: file-upload in re-frame/reagent

2015-04-29 Thread Jamie Orchard-Hays
n Apr 28, 2015, at 2:38 PM, Jamie Orchard-Hays wrote: > Wondering what's the simple, canonical way to do file-upload in > re-frame/reagent. > > Cheers, > > Jamie -- Note that posts from new members are moderated - please be patient with your first post. --- You receiv

[ClojureScript] file-upload in re-frame/reagent

2015-04-28 Thread Jamie Orchard-Hays
Wondering what's the simple, canonical way to do file-upload in re-frame/reagent. Cheers, Jamie -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To

Re: [ClojureScript] focus input in tree reagent/re-frame

2015-04-27 Thread Jamie Orchard-Hays
This works: :component-did-update (fn [self _] (-> self reagent/dom-node .-firstChild .focus)) On Apr 23, 2015, at 4:50 PM, Jamie Orchard-Hays wrote: > right on > On Apr 23, 2015, at 4:13 PM, Marc Fawzi wrote: > >> "Hello darkness, my old friend" ... replac

[ClojureScript] Re: reagent :select :selected attr

2015-04-24 Thread Jamie Orchard-Hays
Yargh. Never mind. :value, not :selected. Cheers, Jamie On Apr 24, 2015, at 3:49 PM, Jamie Orchard-Hays wrote: > Confused over behavior I'm seeing. I've got a select element. I'm setting the > :selected attr on it. I can see that it is correctly assigned in the Reac

[ClojureScript] reagent :select :selected attr

2015-04-24 Thread Jamie Orchard-Hays
Confused over behavior I'm seeing. I've got a select element. I'm setting the :selected attr on it. I can see that it is correctly assigned in the React plugin in Chrome: But the rendered HTML does not have an options selected, so showing the first option ("g") when the page first renders ins

Re: [ClojureScript] focus input in tree reagent/re-frame

2015-04-23 Thread Jamie Orchard-Hays
right on On Apr 23, 2015, at 4:13 PM, Marc Fawzi wrote: > "Hello darkness, my old friend" ... replace darkness with DOM, anytime! > > On Thu, Apr 23, 2015 at 12:23 PM, Jamie Orchard-Hays > wrote: > Cheers. I wish my client-side foo was better, but it is the part o

Re: [ClojureScript] focus input in tree reagent/re-frame

2015-04-23 Thread Jamie Orchard-Hays
akes CSS selectors like > .some-class and #some-id and is scoped to the element it is called on (so it > will target the element's descendants. > > Sent from my iPhone > > On Apr 23, 2015, at 12:12 PM, Jamie Orchard-Hays wrote: > >> There was a discus

Re: [ClojureScript] focus input in tree reagent/re-frame

2015-04-23 Thread Jamie Orchard-Hays
the attribute in Reagent it did nothing. > > On Thu, Apr 23, 2015 at 11:19 AM, Jamie Orchard-Hays > wrote: > The classic example uses: > > :component-did-update #(when @editing? (.focus (reagent/dom-node %))) > > This works fine if the :input element is the root doc o

[ClojureScript] focus input in tree reagent/re-frame

2015-04-23 Thread Jamie Orchard-Hays
The classic example uses: :component-did-update #(when @editing? (.focus (reagent/dom-node %))) This works fine if the :input element is the root doc of the component. If I'm wrapping it, in say a :span tag, how do I access the :input, now that it is a child rather than root. Cheers, Jamie

Re: [ClojureScript] re-frame - handling default values

2015-04-22 Thread Jamie Orchard-Hays
This is so cool. Your timing couldn't be better. I was in the middle of rereading your middleware articles when these came through. I'm actually doing something backwards to this. I have a legacy Rails app I'm plopping a re-frame app on. I don't want to recreate validation on the client-side, b

Re: [ClojureScript] re-frame - handling default values

2015-04-22 Thread Jamie Orchard-Hays
Very cool. And probably useful for what I'm working on right now. Typo: "(defn on-changed...)" => "(on-change...)". Actually, I like the name "on-change" or "on-changes". Cheers, Jamie On Apr 22, 2015, at 10:38 AM, Colin Yates wrote: > A cursive glance at this makes me want to marry you (if

Re: [ClojureScript] autocomplete/typeahead in Reagent/re-frame

2015-04-21 Thread Jamie Orchard-Hays
>> Another idea for you is to have the server include in its response what text >> input value it was sent so that if the actual/current text input value >> differs from that then you can ignore the results. With a 300ms debounce on >> keyup this should be pretty smooth. &g

Re: [ClojureScript] re-frame - handling default values

2015-04-20 Thread Jamie Orchard-Hays
My first thought is the Component would have local state with your default value. If a non-default value is passed to your C, then it's used instead. (or passed-in-value default-value) The default is clearly based on the data passed into the tree, which agains suggests a local state. The defau

Re: [ClojureScript] autocomplete/typeahead in Reagent/re-frame

2015-04-18 Thread Jamie Orchard-Hays
Thanks, Mike. I had taken a quick glance at re-com the other for this. I'll look again, though I do need round-trip to server to progressively acquire options. On Apr 18, 2015, at 3:04 AM, Mike Thompson wrote: > On Saturday, April 18, 2015 at 1:26:13 AM UTC+10, Jamie Orchard-Ha

[ClojureScript] Re: autocomplete/typeahead in Reagent/re-frame

2015-04-17 Thread Jamie Orchard-Hays
Bumping this. Anyone have a favorite solution? Jamie On Apr 16, 2015, at 8:37 PM, Jamie Orchard-Hays wrote: > What are folks out there using for autocomplete/typeahead in Reagent/re-frame > apps? > > Cheers, > > Jamie -- Note that posts from new members are moderated -

Re: [ClojureScript] Re: [reagent] Re: [ANN] SF Reagent Meetup TODAY 6:30pm @Loyal3 @Meerkat

2015-04-17 Thread Jamie Orchard-Hays
Excellent. I tried to watch on periscope, but it never showed up. Jamie On Apr 17, 2015, at 10:20 AM, Marc Fawzi wrote: > yes, will post link here sometime next week > > all 3 presentations were screen captured too so it will be very easy to > follow > > Sent from my iPhone > >> On Apr 17,

[ClojureScript] autocomplete/typeahead in Reagent/re-frame

2015-04-16 Thread Jamie Orchard-Hays
What are folks out there using for autocomplete/typeahead in Reagent/re-frame apps? Cheers, Jamie -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group.

Re: [ClojureScript] Source Maps Help

2015-04-15 Thread Jamie Orchard-Hays
is an additional browser refresh to see > source mapping information. > > David > > On Wed, Apr 15, 2015 at 10:36 AM, Jamie Orchard-Hays > wrote: > Thanks, David. Source maps are definitely enabled. I went to Safari (hadn't > realized it had gotten source maps). Can

Re: [ClojureScript] Source Maps Help

2015-04-15 Thread Jamie Orchard-Hays
file match your expectations? > > HTH, > David > > On Wed, Apr 15, 2015 at 9:56 AM, Jamie Orchard-Hays > wrote: > I've got a CLJS project that in dev mode compiles to a legacy rails app. > Everything works great except source maps. The maps are in their respective

[ClojureScript] Source Maps Help

2015-04-15 Thread Jamie Orchard-Hays
I've got a CLJS project that in dev mode compiles to a legacy rails app. Everything works great except source maps. The maps are in their respective folders. In Chrome dev panel under "Network" I can see that the .map files are retrieved. However, source maps are never shown when there is an err

Re: [ClojureScript] Private def/defn

2015-03-30 Thread Jamie Orchard-Hays
I really like the idea of a var/fn being declared "pirate". :) Some typos are just perfect. Jamie On Mar 30, 2015, at 12:52 PM, Marc Fawzi wrote: > Ok if the CLJS compiler doesn't throw an error when it sees ^:private then I > suppose that's much better than naming stuff using underscores ___

Re: [ClojureScript] Re: re-frame - rationale for not allowing subscriptions in handlers

2015-03-27 Thread Jamie Orchard-Hays
Subscribing to subscriptions is very useful and works great. On Mar 27, 2015, at 6:19 PM, Colin Yates wrote: > Is it ok to reference subscriptions in another subscription? I can't > see any conceptual reason why not but better safe than sorry... > > On 27 March 2015 at 21:15, Mike Thompson w

Re: [ClojureScript] re-frame - rationale for not allowing subscriptions in handlers

2015-03-27 Thread Jamie Orchard-Hays
My first thought about this is that you may run into problems with React's lifecycle. Wondering if that's true. On Mar 27, 2015, at 4:36 PM, Colin Yates wrote: > The fact it is useful for me to do something not only discouraged but > actively against the rules makes me question my design some

Re: [ClojureScript] re-frame - sanity check for re-usable components

2015-03-27 Thread Jamie Orchard-Hays
Mar 27, 2015, at 10:12 AM, Mike Thompson wrote: > On Saturday, March 28, 2015 at 12:58:17 AM UTC+11, Khalid Jebbari wrote: >> On Friday, March 27, 2015 at 2:39:37 PM UTC+1, Jamie Orchard-Hays wrote: >>> Does it make sense to pass the reusable component's context as

Re: [ClojureScript] re-frame - sanity check for re-usable components

2015-03-27 Thread Jamie Orchard-Hays
Does it make sense to pass the reusable component's context as an argument to it? ie, (defn ReusableComponent [some-context] ) Jamie On Mar 27, 2015, at 8:54 AM, Colin Yates wrote: > In re-frame event dispatching is handled by (dispatch [:discriminator > detail]). A corresponding (regis

Re: [ClojureScript] Getting started with re-frame?

2015-03-26 Thread Jamie Orchard-Hays
a. In that case, you'd want to >> arrange under app name and each would have its own repo. >> >> But in that case, I think re-frame might be too much abstraction for the >> amount of code you're having to deal with (less than 400 lines per app) ... >> At

Re: [ClojureScript] re-frame - validating the entire db, not just handler specific context

2015-03-26 Thread Jamie Orchard-Hays
+1 On Mar 26, 2015, at 10:38 AM, Shaun Mahood wrote: > This discussion was really helpful, thanks to both of you as I've been > wondering the same thing. I would love to see something like this in the wiki > or as an example (I would happily contribute if I knew what I was doing). > > -- > N

Re: [ClojureScript] Getting started with re-frame?

2015-03-26 Thread Jamie Orchard-Hays
Coming from the Rails world as I do, I'd invert that: handlers/page01.cljs subscriptions/page01.cljs views/page01.cljs etc. Jamie On Mar 26, 2015, at 3:32 AM, Colin Yates wrote: > How would you structure this for an SPA with multiple top-level > 'pages'? I am thinking: > > - common (the usu

Re: [ClojureScript] Re: re-frame: updating data in app-db tree

2015-03-25 Thread Jamie Orchard-Hays
g component development much more cumbersome. Since seeing and playing with Re-Frame, I've decided to do this next project with re-frame. Anyway, thanks again for the info, as it definitely helps me along. Jamie On Mar 25, 2015, at 9:46 PM, Mike Thompson wrote: > On Thursday, Ma

Re: [ClojureScript] Re: re-frame: updating data in app-db tree

2015-03-25 Thread Jamie Orchard-Hays
Thanks, Taylor. I'd seen path. It doesn't do what I need, but after reviewing and thinking about it, it may be a good part of a solution. Mainly what is the hard part is dealing with a tree of nested maps/vectors. You won't necessarily know the path until run-time, and certainly don't want to re

[ClojureScript] re-frame: updating data in app-db tree

2015-03-25 Thread Jamie Orchard-Hays
In Om, I didn't have to think about how to find the data in app-db to update as Om has cursors. In the cursorless world of re-frame, I am wondering what are favorite strategies for updating data deep inside a decently rich app-db tree. ie, say I want to update a field that is in a map that is in

Re: [ClojureScript] Getting started with re-frame?

2015-03-25 Thread Jamie Orchard-Hays
I've been playing with it the past week or so. I started with the figwheel template. lein new figwheel -- --reagent Then added re-frame and other dependencies. Diggin' figwheel Jamie On Mar 25, 2015, at 10:07 AM, Colin Yates wrote: > Hi all, > > What is the recommended approach? Clonin

Re: [ClojureScript] Macros and type hints

2015-03-24 Thread Jamie Orchard-Hays
There's https://pragprog.com/book/cjclojure/mastering-clojure-macros Jamie On Mar 24, 2015, at 10:09 AM, Marc Fawzi wrote: > looks like magic to a beginner, trying to parse > > ` is quote while ~ is unquote but what is ' compared to ` > > also, does :tag in meta have a special meaning res

Re: [ClojureScript] how to design nested componentes with Om

2015-03-19 Thread Jamie Orchard-Hays
I used a channel in the parent. You pass that to the descendants and write to the channel. The ancestor receives messages via the channel. On Mar 19, 2015, at 7:53 AM, Wilker wrote: > Hi, > > I'm creating a component here that will actually render on canvas, to be more > specific I wanna hav

Re: [ClojureScript] namespacing re-frame handlers

2015-03-13 Thread Jamie Orchard-Hays
Thanks, Mike. I have had similar thoughts. I'm just not there yet. I'm just past baby steps, but I'll be building a decent-sized SPA soon, so thinking about these issues already. Cheers, Jamie On Mar 12, 2015, at 10:56 PM, Mike Thompson wrote: > Hmm. I should clarify - you normally don't ha

Re: [ClojureScript] namespacing re-frame handlers

2015-03-13 Thread Jamie Orchard-Hays
Cheers. :) Jamie On Mar 12, 2015, at 10:31 PM, Mike Thompson wrote: > On Friday, March 13, 2015 at 6:04:21 AM UTC+11, Jamie Orchard-Hays wrote: >> As I'm starting to explore re-frame in a playground app, one of my first >> questions is "how does one namespace handlers

[ClojureScript] namespacing re-frame handlers

2015-03-12 Thread Jamie Orchard-Hays
As I'm starting to explore re-frame in a playground app, one of my first questions is "how does one namespace handlers in a medium to large app?" I'm thinking you'd just simple namespace the keyname: (register-handler :foo/update-name ) Is this your approach Mike, or do you handle it di

Re: [ClojureScript] Resources for Getting Started with Clojurescript

2015-03-12 Thread Jamie Orchard-Hays
What's your goal? What are you trying to build? Jamie On Mar 12, 2015, at 9:46 AM, kennyo...@gmail.com wrote: > I've got clojurescript set up and used it a bit but I can't say I grok it. > I'm past the Quick Start phase and I'm left with "what now"? > > What are some resources where I can lear

Re: [ClojureScript] ANN: re-frame v0.2.0 - an FRP MVC pattern for writing SPAs in Reagent. (Woah, so many LTAs!!)

2015-03-10 Thread Jamie Orchard-Hays
Thanks for this, Mike. And thanks for the humor in your docs. I thoroughly enjoy your writing style. Cheers, Jamie On Mar 10, 2015, at 9:32 AM, Mike Thompson wrote: > On Tuesday, March 10, 2015 at 2:03:00 PM UTC+11, Mike Thompson wrote: >> On Tuesday, March 10, 2015 at 2:14:42 AM UTC+11, Mike

Re: [ClojureScript] ANN: re-frame v0.2.0 - an FRP MVC pattern for writing SPAs in Reagent. (Woah, so many LTAs!!)

2015-03-09 Thread Jamie Orchard-Hays
Marc, it's all here: https://github.com/Day8/re-frame and here: https://github.com/Day8/re-frame/wiki Mike has done an excellent job of writing explanations. I spent a bunch of time last week reading through and taking some notes. It's worth it. I was a big advocate of cursurs (in fact I aban

Re: [ClojureScript] ClojureScript in Existing Web Application

2015-02-17 Thread Jamie Orchard-Hays
Possibly analogous: I have a Rails app that I've got some CLJS in. * Rails app in a git repo * CLJS (Om) in a git repo * lein with lein-cljsbuild for building CLJS * rails-dev build for fast dev builds that compile into rails' assets' javascript dir * the dev CLJS build is ignored by git * rails

Re: [ClojureScript] Parallel data processing and CLJS

2015-02-10 Thread Jamie Orchard-Hays
Dunno how CLJS compares with CLJ WRT to this, but reading about how Clojure gains performance under the covers (and exposes these fns to use) is illuminating: http://clojure.org/transients Jamie On Feb 10, 2015, at 12:49 PM, Gary Trakhman wrote: > Yea, I think the general clojure advice has

Re: [ClojureScript] [ANN] Cuttle - a ClojureScript user tool

2015-01-30 Thread Jamie Orchard-Hays
Anything named for cuttlefish gets my attention. :-P Looks cool. Jamie On Jan 30, 2015, at 10:25 AM, Chris Oakman wrote: > We are excited to announce the first release of Cuttle: > https://github.com/oakmac/cuttle/ > > Cuttle is a standalone application for Linux, Mac, and Windows that aims to

Re: [ClojureScript] Why use Clojurescript now?

2015-01-13 Thread Jamie Orchard-Hays
My really short answer is that it's far easier to reason about non-trivial apps in CLJS than in JS. Jamie On Jan 13, 2015, at 10:14 AM, Hello Funk wrote: > Developers generally prefer a language that minimizes its inner > inconsistencies. JS is certainly not a language that is easy to love

Re: [ClojureScript] [ANN] shin — ClojureScript implementation in Ruby minus the JVM & Google Closure parts

2014-12-02 Thread Jamie Orchard-Hays
Amos, I'm curious about your motivation for this. Fun? Curiosity? Business need? I'm using Om/CLJS in a Ruby on Rails app, so this caught my eye. On Dec 2, 2014, at 8:35 AM, Amos Wenger wrote: > shin (新) is an early-stage but relatively complete implementation of a > ClojureScript-to-JavaScri

Re: [ClojureScript] [ANN] freactive - high performance, pure Clojurescript, declarative DOM library

2014-11-24 Thread Jamie Orchard-Hays
no way! "freactive" is way better. Way Better. Jamie On Nov 22, 2014, at 11:25 PM, Aaron wrote: > I'm still not totally happy with the name "freactive". Maybe something like > "synergy" or "synergy-ui"? -- Note that posts from new members are moderated - please be patient with your first po

Re: [ClojureScript] om - idiomatic way to compose components?

2014-11-19 Thread Jamie Orchard-Hays
at still feels icky to me but that is almost > certainly my lack of familiarity. > > P.S. Does anybody else keep thinking they finally 'get it' and then the very > next thing they do has them scurrying back to the om tutorials/react docs :). > P.P.S. Can library authors

Re: [ClojureScript] om - idiomatic way to compose components?

2014-11-18 Thread Jamie Orchard-Hays
HeaderComponent won't have anything to display. > > This is obviously just a hoicky example though. > > > On Tuesday, 18 November 2014 15:15:20 UTC, Jamie Orchard-Hays wrote: >> Colin, is the optionally displayed component dependent on the data? >> >>

Re: [ClojureScript] om - idiomatic way to compose components?

2014-11-18 Thread Jamie Orchard-Hays
Colin, is the optionally displayed component dependent on the data? On Nov 18, 2014, at 5:24 AM, Colin Yates wrote: > The reason I have shied away from multimethods is that they aren't local to > the current namespace (which is the point I guess :)), and I tend to end up > 'using' each namesp

Re: [ClojureScript] [ANN] freactive - high performance, pure Clojurescript, declarative DOM library

2014-11-17 Thread Jamie Orchard-Hays
I kind of like it. For some reason it made me think of Professor Frink, which brings me a smile: http://en.wikipedia.org/wiki/Professor_Frink Here's what you get googling for "freactive" https://www.google.com/search?client=safari&rls=en&q=freactive&ie=UTF-8&oe=UTF-8 On Nov 16, 2014, at 9:20 P

Re: [ClojureScript] Om - Passing channels down through hierarchy

2014-10-18 Thread Jamie Orchard-Hays
here was only one global channel needed. >> >> It wouldn't work if you needed separate channels for different branches of >> the tree - say if you had multiple items in a list and each of those items >> needed a channel to pass to sub-components. >> >> On 17

Re: [ClojureScript] Om - Passing channels down through hierarchy

2014-10-17 Thread Jamie Orchard-Hays
I have a base component that creates a channel and then I pass the channel via the :opts key-value to its children. However, another user posted recently that the :shared data could be modified as it is passed down the hierarchy. It seems to me this would be a DRYer way to pass the channel down

Re: [ClojureScript] Om root atom best practices

2014-10-02 Thread Jamie Orchard-Hays
Interesting problem. I've developed an Om component that allows the creating and editing of recursive trees with various kinds of lists, but haven't had the need to move a list or an item to a different one, so haven't tackled this particular problem. What were the issues caused with your first

[ClojureScript] Select with :multiple true

2014-09-18 Thread Jamie Orchard-Hays
Needed a select element with multiple="true". After much digging finally came up with a way to handle them. Code below. Curious if anyone has a better way. The relevant code starts at (let [options... (defn update-data [item owner k] (let [node (om/get-node owner (name k)) v (if (->

Re: [ClojureScript] [ANN] reagent-forms a simple data binding library for Reagent

2014-09-12 Thread Jamie Orchard-Hays
's ease of >> use comes with a cost at some point. >> >> >> On Thu, Sep 11, 2014 at 8:01 AM, Jamie Orchard-Hays >> wrote: >> On my project, I was using data in the form of a recursive tree--an editable >> one. I got stuck somewhere WRT to this

Re: [ClojureScript] [ANN] reagent-forms a simple data binding library for Reagent

2014-09-11 Thread Jamie Orchard-Hays
x27; makes it > easy to create local states for components as well as managing the global > state using a global state atom. I'd be curious to hear what limitations > others have run into and how they could be addressed. > > On Wednesday, September 10, 2014 11:40:13 AM UTC-4, Jami

Re: [ClojureScript] [ANN] reagent-forms a simple data binding library for Reagent

2014-09-10 Thread Jamie Orchard-Hays
I'm curious as well. I started with Reagent, but switched to Om/Sablono after finding Reagent's app data handling too limited for what I needed. The trade-off is much more to think about (complexity) when writing Om components. Jamie On Sep 9, 2014, at 3:51 AM, Daniel Kersten wrote: > My apo

Re: [ClojureScript] [Om] [om-bootstrap] Programatically populate items in om-bootstrap dropdown

2014-09-05 Thread Jamie Orchard-Hays
Tom, while I'm also using Sablono, you might also have a look at om-tools from Prismatic: https://github.com/Prismatic/om-tools On Sep 5, 2014, at 12:59 PM, Tom George wrote: > Sean and Jack, > > Thanks a lot for your responses. > > Sean - I like the look of sablono over om.dom, I think I'm

Re: [ClojureScript] [Om] Transforming cursor data for render-state

2014-09-03 Thread Jamie Orchard-Hays
Alan, if you haven't read this page, it's very helpful: https://github.com/swannodette/om/wiki/Cursors Jamie On Sep 3, 2014, at 3:21 PM, Alan Shaw wrote: > Ahh thanks! > > 2014/9/3 上午11:48 於 "David Nolen" 寫道: > It is not. Use om.core/value > > On Wed, Sep 3, 2014 at 2:29 PM, Alan Shaw w

Re: [ClojureScript] Reagent port of the Om tutorial

2014-07-17 Thread Jamie Orchard-Hays
om/update! is working on the cursor's view/entry-point into the app state atom, not directly with the entire atom you've declared to hold your app state. On Jul 16, 2014, at 8:31 PM, Andrew Stoeckley wrote: > On Saturday, January 25, 2014 11:38:14 PM UTC+8, David Nolen wrote: >> >> If I was t

Re: [ClojureScript] anchor in om

2014-07-09 Thread Jamie Orchard-Hays
You might consider using a lib such as Om Tools or Sablono for the dom. https://github.com/Prismatic/om-tools https://github.com/r0man/sablono On Jul 9, 2014, at 7:14 AM, Makoto H. wrote: > Hi Dave, > > With your suggestion, I could generate "menu1" > block using the following clojurescript

[ClojureScript] Re: SOLVED: Updating app data, but not getting cursor

2014-07-02 Thread Jamie Orchard-Hays
Needed to call (vec) on (conj children new-child): (vec (conj children new-child)) On Wednesday, July 2, 2014 11:22:05 AM UTC-4, Jamie Orchard-Hays wrote: > I've got a tree of data for app-state. I can conj a new item to a parent's > children, but when the new item rende

[ClojureScript] Updating app data, but not getting cursor

2014-07-02 Thread Jamie Orchard-Hays
I've got a tree of data for app-state. I can conj a new item to a parent's children, but when the new item renders, it's type is cljs.core.PersistentArrayMap {meta: null, cnt: 3, arr: Array[6], __hash: null, cljs$lang$protocol_mask$partition0$: 16647951...} rather than om.core.MapCursor {val

Re: [ClojureScript] Comparing React.js libraries

2014-06-20 Thread Jamie Orchard-Hays
I've developed the same prototype with both Reagent and Om. Reagent: Very easy to grasp and build out your UI. Not a lot of pieces to think about. Lost me on the data handling. I posted a question to the owner, but never heard back: https://github.com/holmsand/reagent/issues/35 Om: Much more

  1   2   >