Fork me on GitHub
#hoplon
<
2015-09-16
>
jouerose05:09:47

hi @alandipert here i am. you advised me to come here on twitter

jouerose05:09:18

i am quite impressed by hoplon and i was wondering how it could be helpful in mobile cross platform dev

jouerose05:09:35

could anyone please give me some hints/methods/frameworks ? much appreciated. thank you

xificurC06:09:50

hi @jouerose , Alan is in a different time zone, you'll have to wait for him a bit. Could you elaborate on your question? What exactly is your use case?

jouerose06:09:33

thanks @xifi . basically, i would like to use clojure(script) to create cross platform mobile applications. if the method/framework works also for destop web then it is a dream come true.

jouerose06:09:56

being really a beginner, I was wondering what were the possibilities and ways to achieve such thing

jouerose06:09:23

if it has a "it just works" easiness for beginning, then it is another dream come true

xificurC06:09:59

hoplon is a collection of clojurescript libraries. Its main purpose is to aid building SPAs (single page applications), although you can really build anything web related

xificurC06:09:39

you're speaking of mobile, so you're probably thinking of JVM right? Or can one build js apps for android as well

jouerose06:09:16

i am thinking cross platform, no native stuff, so something js based is ok

xificurC06:09:27

I'm a newcomer in hoplon and web dev myself so I might not be able to help you too much. Hoplon is for building web pages, so I'm not sure if that's what you're looking for

jouerose06:09:03

is there a way to use hoplon to make mobile apps ?

jouerose06:09:14

i hope it is better formulated now

xificurC06:09:48

not that I know of, but I would let Micha or Alan answer that. Or maybe @onetom if he's around

xificurC06:09:14

not much to thank for really 😞

alandipert07:09:57

@jouerose: i think it's suitable, @micha built a mobil app with hoplon using https://trigger.io/

xificurC07:09:31

@alandipert: are you not in the US right now?

alandipert12:09:14

@xifi: i'm in the US, but was up really late debugging server problems 😞

donmullen12:09:07

@jouerose: You can definitely do a mobile app with hoplon using http://trigger.io as alan indicated. Worked with @micha on one.

donmullen12:09:37

You get a bit of a hit on load time - but after that it’s pretty snappy. http://Trigger.io let’s you tap into some native code as well — like push notifications, etc.

donmullen12:09:37

Now that hoplon6/boot2 is stabilizing - hoping to get another simple hoplon app going soon.

donmullen12:09:22

@jouerose: ionic framework is tied in tightly with angular, isn’t it?

donmullen12:09:54

for the http://hoplon.io app - we used castra to communicate to the backend and stored data in datomic

jouerose12:09:58

@donmullen: yes i have read it is tied to angular

donmullen12:09:07

@jouerose: as dnolan indicated - diving into React Native if you’re just getting started is going to be a steep learning curve. @onetom ramped up his team with hoplon pretty quickly and has had some success with mobile - though I don’t think they have done the http://trigger.io native wrapper - but you’d need to check with him. hoplon is very approachable - less complex than react — if you are thinking use mobile tech on mobile — best bet to learn quickly and dev quickly.

upgradingdave12:09:51

Hi all, is it possible to have a hoplon component attach to a div rather than replacing the whole page?

upgradingdave12:09:22

like, for example if I want to create a widget with defelem and then use it in some legacy html

xificurC12:09:45

@alandipert: sorry to hear that. Out of curiosity what language were you debugging and did you succeed?

jouerose12:09:40

@donmullen: thanks for your input. I find hoplon indeed approachable and if there is a way as i must dev quickly, at least it can get tied to clojure for the moment.

xificurC13:09:38

@jouerose: sorry to mislead you this morning, as I said I'm quite new in the web dev and didn't hear of stuff like http://trigger.io or phonecap

jouerose13:09:59

@onetom: could you please let me know about how to use hoplon for mobile cross platform dev ? i would love to use clojure here onwards.

xificurC13:09:07

maybe one day clojure will parasite on more runtimes, like this http://haxe.org/documentation/introduction/compiler-targets.html

donmullen13:09:29

@upgradingdave: I believe that is part of future work — see http://hoplon.discoursehosting.net/t/boot2-hoplon6-state-of-the-union/529 — third item on API.

xificurC13:09:50

do I need to run a server in order to work with sqlite db files or is there an "offline" method one can use? I'm only doing things locally so the only reason I'd be running a server would be to serve db files, create new files etc, but all locally

onetom13:09:32

@jouerose: my colleague, @peterromfeld was doing the hoplon mobile app, so he is the best to ask about it. it was just wrapped with http://trigger.io not sure what donmullen meant by native wrapper though.

donmullen14:09:44

Allows you to write native modules as well - and call from w/in javascript

onetom14:09:37

jouerose: re hoplon vs react: it's a lot easier and faster to learn hoplon than react. in fact i was not sure about which react wrapper should i use and spent a few days on learning about and trying out reagent, om, etc. then over night i've learnt and tried hoplon and later my colleagues picked it up in days too (after just learning clojure for about 2 weeks)

peterromfeld14:09:46

@jouerose: i will update the readme and make a example repo public, for react OM seems nice, but like @onetom said using hoplon is streight forward and you have your first app packaged and on the market in no time

peterromfeld14:09:09

only thing i didnt had time to look into was touch-events to improve performance on iOS devices

peterromfeld14:09:50

ill let you know tomorrow, i try to get our boss approval to open-source one of our apps (app-cost-calc), then you have real-life example, worst case i fire up something simple just to have an example for the workflow

donmullen14:09:18

@peterromfeld: did you integrate hammer.js at all?

peterromfeld14:09:42

i did not had time to dig deeper into it

peterromfeld14:09:10

but i wanted, just had other more pressing things to work on in the end

peterromfeld14:09:55

but there is cljsjs/hammer package if i remember so if you know hammer.js it should be super simple

tbrooke14:09:30

@alandipert: Thanks for your work - finally got http://hoplon.io up and running locally - moving ahead with a Hoplon6 App:clap:

donmullen20:09:41

@micha : can you point me to the markdown code used in the hoplon website — (md ;;{{{ markdown here ;;;}}}) — it’s a macro right?

raywillig22:09:33

@micha: hoplon used to have a function val-id for getting the value of an input. how do we go about that now?

alandipert22:09:29

@raywillig: (deref evt) or just @evt

alandipert22:09:46

oh wait, i'm confused

alandipert22:09:09

for that i use (.val (js/jQuery "#id"))

raywillig22:09:44

@alandipert: cool thx for that. It's what I ended up doing but I thought there might be something idiomatic. Makes sense. I suppose I could just wrap that in some fn

alandipert22:09:13

yeah.. i find myself using it a lot less than in the beginning, preferring now to get val from event objects in callbacks

raywillig22:09:23

Oh yeah that makes sense. I was using inputs that weren't in a form trying to just do something quick and dirty.

micha22:09:42

(input :change #(doit @%))