Re: [ClojureScript] Re: ANN: Om 0.3.0

2014-01-26 Thread Jamie Orchard-Hays
David, there's a confusing sentence in the paragraph before the om.core/root header: Everything in the atom should be an associative data structure - either a ClojureScript map or indexed sequential data structure such as a vector, list and lazy sequences are not allowed. On Jan 26, 2014, at

Re: [ClojureScript] ANN: Om 0.3.0

2014-01-27 Thread Jamie Orchard-Hays
-components, we're finally getting to the good stuff IMO :) David On Sun, Jan 26, 2014 at 9:59 PM, Jamie Orchard-Hays jamie...@gmail.com wrote: :) Worked through the Om tutorial today. Thanks much, David. Good stuff. On Jan 26, 2014, at 8:54 PM, David Nolen dnolen.li...@gmail.com wrote

[ClojureScript] build-all

2014-03-22 Thread Jamie Orchard-Hays
Looking for a way to do something like zebra-striping when using build-all. I've dug around the code, but I'm not seeing the levers (such as knowing the index of the cursor I'm on) to calculate even/odd. There's a great example in the tutorial of zebra-striping using map and cycle. I'm just not

Re: [ClojureScript] build-all

2014-03-22 Thread Jamie Orchard-Hays
Orchard-Hays jamie...@gmail.com wrote: Looking for a way to do something like zebra-striping when using build-all. I've dug around the code, but I'm not seeing the levers (such as knowing the index of the cursor I'm on) to calculate even/odd. There's a great example in the tutorial of zebra

[ClojureScript] which cljs versions for Om and Reagent?

2014-05-20 Thread Jamie Orchard-Hays
Which Clojurescript version is recommended for latest versions of Om and 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] which cljs versions for Om and Reagent?

2014-05-20 Thread Jamie Orchard-Hays
agree it has a long way to go. On Tue, May 20, 2014 at 11:54 AM, Andrew Keedle akee...@gmail.com wrote: On Tuesday, 20 May 2014 16:21:30 UTC+1, Jamie Orchard-Hays wrote: Which Clojurescript version is recommended for latest versions of Om and Reagent? Cheers, Jamie

[ClojureScript] Foolproof Emacs + Browser Repl instructions?

2014-05-20 Thread Jamie Orchard-Hays
If anyone can point me at some, I'll be most obliged. Too much ditzing around with stuff that doesn't quite get me there the past couple hours. Cheers, Jamie -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you

[ClojureScript] Possible to om/set-state! of parent

2014-05-27 Thread Jamie Orchard-Hays
I have a component that uses om/build to render an editable section. The parent has :editable? local state. Is there a way for the child to set the true/false value of this on the parent? So far haven't discovered how this might be done. Cheers, Jamie -- Note that posts from new members are

Re: [ClojureScript] [ANN] sweatkit, a Clojure(Script) library to work with sports activities data

2014-06-03 Thread Jamie Orchard-Hays
Great name! :) On Jun 3, 2014, at 1:54 PM, Daniel Zacarias daniel.zacar...@gmail.com wrote: Hello everyone, I've recently published the first official release for sweatkit, a Clojure(Script) library to work with sports activities data. Here's the link:

Re: [ClojureScript] crate dom events in ibdknox/crate

2014-06-17 Thread Jamie Orchard-Hays
Sorry Răzvan, I misread your email and thought you were using Om. Cheers, Jamie On Jun 17, 2014, at 2:39 PM, Răzvan Rotaru razvan.rot...@gmail.com wrote: Sablono works only with React, as far as I can tell, so I can't use it. -- Note that posts from new members are moderated - please be

[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

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. tokomakoma...@gmail.com wrote: Hi Dave, With your suggestion, I could generate lia href=#menu1/a/li block

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 andrew...@gmail.com wrote: On Saturday, January 25, 2014 11:38:14 PM UTC+8, David Nolen

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 tg82...@gmail.com wrote: Sean and Jack, Thanks a lot for your responses. Sean - I like the look of sablono over

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

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

2014-09-12 Thread Jamie Orchard-Hays
, Jamie Orchard-Hays jami...@gmail.com 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 in Reagent. (I wrote a question to the original developer, but he never replied.) For my purposes, Om's cursors made handling data

[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] 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

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 - Passing channels down through hierarchy

2014-10-18 Thread Jamie Orchard-Hays
if there 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 October 2014 16:02, Jamie Orchard-Hays jamie...@gmail.com

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=safarirls=enq=freactiveie=UTF-8oe=UTF-8 On Nov 16, 2014, at 9:20 PM,

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 colin.ya...@gmail.com 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

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 *

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 gary.trakh...@gmail.com wrote: Yea, I think the

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

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 m.l.thompson...@gmail.com wrote: On Tuesday, March 10, 2015 at 2:03:00 PM UTC+11, Mike Thompson wrote: On Tuesday, March 10, 2015 at

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 m.l.thompson...@gmail.com 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

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 m.l.thompson...@gmail.com wrote: Hmm. I should

[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

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 learn

[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

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] 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 marc.fa...@gmail.com 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

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

2015-03-27 Thread Jamie Orchard-Hays
AM, Mike Thompson m.l.thompson...@gmail.com 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 an argument to it? ie, (defn

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 colin.ya...@gmail.com wrote: The fact it is useful for me to do something not only discouraged but actively against the rules makes me

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 colin.ya...@gmail.com 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

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 colin.ya...@gmail.com wrote: How would you structure this for an SPA with multiple top-level 'pages'? I am thinking:

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

2015-03-26 Thread Jamie Orchard-Hays
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 some small scale the abstraction becomes noise. On Thu, Mar 26, 2015 at 8:00 AM, Jamie Orchard-Hays jamie

[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] focus input in tree reagent/re-frame

2015-04-23 Thread Jamie Orchard-Hays
. On Thu, Apr 23, 2015 at 11:19 AM, Jamie Orchard-Hays jamie...@gmail.com 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 of the component. If I'm wrapping it, in say a :span tag, how

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

2015-04-23 Thread Jamie Orchard-Hays
.querySelector which takes 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 jamie...@gmail.com wrote: There was a discussion around this last

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 marc.fa...@gmail.com wrote: Hello darkness, my old friend ... replace darkness with DOM, anytime! On Thu, Apr 23, 2015 at 12:23 PM, Jamie Orchard-Hays jamie...@gmail.com wrote: Cheers. I wish my client-side foo was better, but it is the part

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

2015-04-21 Thread Jamie Orchard-Hays
text input value differs from that then you can ignore the results. With a 300ms debounce on keyup this should be pretty smooth. Sent from my iPhone On Apr 18, 2015, at 6:53 AM, Jamie Orchard-Hays jamie...@gmail.com wrote: Thanks, Mike. I had taken a quick glance at re-com the other

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,

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

[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: ReactDOMSelect selected=kg But the rendered HTML does not have an options selected, so showing the first option (g) when

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 m.l.thompson...@gmail.com wrote: In this release, there's a shinny new interactive demo for h-box. Edit the

[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] 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 jamie...@gmail.com wrote: Aha! Thanks to you both, David and Thomas

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

2015-05-05 Thread Jamie Orchard-Hays
that :clojure-defines is ignored for :none and :whitespace optimizations. Jamie On May 5, 2015, at 3:07 AM, Mike Thompson m.l.thompson...@gmail.com 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

[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] cljs compiler options :closure-defines {:goog.DEBUG false}

2015-05-04 Thread Jamie Orchard-Hays
be goog.DEBUG not :goog.DEBUG. David On Mon, May 4, 2015 at 6:13 PM, Jamie Orchard-Hays jamie...@gmail.com 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 true. (println js/goog.DEBUG

[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

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

2015-05-05 Thread Jamie Orchard-Hays
-libs. You must supply externs for non-Closure libraries. David On Tue, May 5, 2015 at 12:29 PM, Jamie Orchard-Hays jamie...@gmail.com 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

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

2015-05-12 Thread Jamie Orchard-Hays
On May 11, 2015, at 10:58 PM, Oliver Gorman oliver.m.gor...@gmail.com 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. Too much

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 fer.ob...@gmail.com wrote: And that is why

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

2015-05-14 Thread Jamie Orchard-Hays
:20 PM, Jamie Orchard-Hays jamie...@gmail.com 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 app in each. Problem is, I have no time to write it. One thing I've come to appreciate about

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 jamie...@gmail.com wrote: No kidding. I have this long blog post

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

2015-05-14 Thread Jamie Orchard-Hays
(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:34 Jamie Orchard-Hays jamie...@gmail.com wrote: I'm still in the early stages of digesting Javelin, but one idea I keep having is using it locally in components

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 jamie...@gmail.com wrote: Actually, I'm interested in local transitions

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] typeahead works with :compile :simple, not :compile :advanced

2015-05-13 Thread Jamie Orchard-Hays
if it works unless the library follow strict conventions. David On Wed, May 13, 2015 at 12:23 PM, Jamie Orchard-Hays jamie...@gmail.com 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 re-frame/reagent

[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

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 dkers...@gmail.com 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 Orchard-Hays

[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

Re: [ClojureScript] Source Maps Help

2015-04-15 Thread Jamie Orchard-Hays
your expectations? HTH, David On Wed, Apr 15, 2015 at 9:56 AM, Jamie Orchard-Hays jamie...@gmail.com 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 folders. In Chrome dev panel

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 jamie...@gmail.com wrote: Thanks, David. Source maps are definitely enabled. I went to Safari (hadn't realized it had gotten source maps). Can see the CLJS files

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 marc.fa...@gmail.com 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

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

2015-04-18 Thread Jamie Orchard-Hays
Orchard-Hays wrote: Bumping this. Anyone have a favorite solution? Jamie On Apr 16, 2015, at 8:37 PM, Jamie Orchard-Hays jamie...@gmail.com wrote: What are folks out there using for autocomplete/typeahead in Reagent/re-frame apps? Hi Jamie, It is not clear if you need to round

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 khalid.jebb...@gmail.com wrote: I like how you break up the state machines, it has sense in web app. Page

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

2015-05-20 Thread Jamie Orchard-Hays
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 it! On Tue, 19 May 2015 at 14:34 Jamie Orchard-Hays jamie...@gmail.com wrote: I agree. The word that came to mind

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

2015-05-20 Thread Jamie Orchard-Hays
DjebbZ @Dj3bbZ On Wed, May 20, 2015 at 3:51 PM, Jamie Orchard-Hays jamie...@gmail.com 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 states

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 matt...@gmail.com 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,

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 marc.fa...@gmail.com wrote: Ah! Thank you very much for this explanation!! Sent

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 johnben...@gmail.com wrote: I also didn't understand that was what David meant by you absolutely need to deref. -- Note that

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 jmikem...@gmail.com 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

Re: [ClojureScript] Favorite Web Stacks and why

2015-09-12 Thread Jamie Orchard-Hays
n the server side >>> - prismatic schema everywhere >>> - Stuart'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 :-) >>> >>>

[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

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

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

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 >

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

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