Re: Routing for a non-web-app

2021-04-19 Thread Orestis Markou
As far as I know, reitit could probably do what you want. It works on 
ClojureScript too.

> On 19 Apr 2021, at 01.58, Blake Watson  wrote:
> 
> Howdy,
> 
> Writing a desktop app and thinking describing routes is the way to go, as far 
> as setting up the flow through the program. There are quite a few Clojure 
> routing libraries but most seem to assume it's a web backend (naturally), and 
> the ones that don't seem to be ClojureScript (which I can't use here).
> 
> I could just use a multi-method and roll my own, of course, but I thought it 
> might be useful to try out an existing library.
> 
> ===Blake===
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with your 
> first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en 
> 
> --- 
> You received this message because you are subscribed to the Google Groups 
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to clojure+unsubscr...@googlegroups.com 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/clojure/CAJAnwPnBTuHsbDA_OgGSAt1j_B_tL%2B%3DnCVsigwZrAzD_g9%3D%2BsA%40mail.gmail.com
>  
> .

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/DEF9D4FD-EE14-4855-BB97-A9297DC9DD97%40orestis.gr.


Re: Routing for a non-web-app

2021-04-19 Thread Chris Nuernberger
For 'routing' specifically, if you want a more formal system we used state
machines in the past and recently Clojure has a really nice additional
possibility there - https://github.com/lucywang000/clj-statecharts.

For general UI programming if you are using javafx then I really like cljfx
- https://github.com/cljfx/cljfx.

On Mon, Apr 19, 2021 at 1:46 AM Orestis Markou  wrote:

> As far as I know, reitit could probably do what you want. It works on
> ClojureScript too.
>
> On 19 Apr 2021, at 01.58, Blake Watson  wrote:
>
> Howdy,
>
> Writing a desktop app and thinking describing routes is the way to go, as
> far as setting up the flow through the program. There are quite a few
> Clojure routing libraries but most seem to assume it's a web backend
> (naturally), and the ones that don't seem to be ClojureScript (which I
> can't use here).
>
> I could just use a multi-method and roll my own, of course, but I thought
> it might be useful to try out an existing library.
>
> ===Blake===
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/clojure/CAJAnwPnBTuHsbDA_OgGSAt1j_B_tL%2B%3DnCVsigwZrAzD_g9%3D%2BsA%40mail.gmail.com
> 
> .
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/clojure/DEF9D4FD-EE14-4855-BB97-A9297DC9DD97%40orestis.gr
> 
> .
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/CADbpEJvUMHzfUN3a2KaJv0YZcYubJDbSvnJ2LLd9D0Fy-T3djA%40mail.gmail.com.


Re: Routing for a non-web-app

2021-04-19 Thread Blake Watson
>
> For 'routing' specifically, if you want a more formal system we used state
> machines in the past and recently Clojure has a really nice additional
> possibility there - https://github.com/lucywang000/clj-statecharts.


I really like the idea of the app being as stateless as possible, to where
you could have a history stack which was basically an address like
"\user\update\123" so people could move back and forth between spots
that aren''t otherwise easy to jump around in.


> For general UI programming if you are using javafx then I really like
> cljfx - https://github.com/cljfx/cljfx.
>

I keep looking at cljfx thinking, "Well, this is probably the way to go"
but I could not get the examples to work, despite trying different
Java/JavaFX combos.

But it's a horse pill. Besides JavaFX, you've got component
lifecycles (which I've never grasped), renderers (which I haven't touched
in years, since I used reagent), and after about 3.5K of words and code you
get, "Now that every piece is laid out, it's time to combine them into
application." That kind of approach has not been successful for me, so I've
been interacting with JavaFX directly to get going. This, at least, means
that when I start thinking, "Well, it would make a whole lot of sense to be
able to describe this interface as a data structure," I can go back to
cljfx and go, "Ah, that's why he did that."

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/CAJAnwPkOM%3Da_hU0wfnEDn-ge8yTXKfamqntGA%2B9oKWt7Oc0Ljg%40mail.gmail.com.