Fork me on GitHub
#hoplon
<
2016-09-30
>
flyboarder19:09:15

@micha I have another question to bother you with XD Should events be handled without an attribute provider?

flyboarder19:09:53

or no because the default on! has been moved

micha20:09:54

@flyboarder you know i totally farmed that one

micha20:09:13

i forgot that with multimethods you can override a dispatch

micha20:09:22

so there is no reason not to have some sane default

micha20:09:29

in addition to the attribute provider

micha20:09:41

so we could totally put what you had there back in

micha20:09:48

without breaking anything with the jquery stuff

micha20:09:00

sorry, that was my mistake

flyboarder20:09:46

ok cool, not sure which parts you want moved back tho

micha20:09:11

you had sane default handlers for do! and on! there

micha20:09:54

we can restore what you had, they were i think good defaults

micha20:09:10

also i think maybe i know what to do with boot-hoplon to make things smooth

micha20:09:37

i was thinking that the --refers option, which is a set of namespace syms to refer into .hl files

micha20:09:53

we could have the default for that be hoplon.jquery

micha20:09:08

that's what you get if you don't provide the --refers option

micha20:09:23

if you do provide the option then it replaces the default with whatever you choose

flyboarder20:09:46

ok cool so pretty much the same as what I had without the extra param options, sgtm

flyboarder20:09:16

but I noticed with that the ns has to exist in clj to pass the macro? thing, is that fixed?

micha20:09:21

hah yeah we're spiraling in towards a solution

micha20:09:31

yep i fixed that

flyboarder20:09:02

i like this solution better, the extra task options were a bit clumsy if you didnt have deps setup for brew

micha20:09:21

yeah and the --refers option is new

micha20:09:29

so giving it default value is fine

micha20:09:53

and if you are "advanced" user you can figure out how to use it to do more complex things

flyboarder20:09:05

awesome so close to a new release 🙂

micha20:09:13

but it should be 100% compatible with the previous stuff

micha20:09:17

which is good

flyboarder20:09:04

yeah and this way we still don't need to provide compatibility for browsers, the defaults just use the browser behaviour and the attribute providers introduce compatibility

micha20:09:30

most excellent

flyboarder20:09:34

this is great, im showing a demo of converting a react app to hoplon tomorrow, the goal is to do it all in ~30min, should be easy 😉

flyboarder20:09:06

although took me about 5 hours to write it on paper yesterday

micha20:09:46

haha Should Be Easyâ„¢

micha20:09:53

that's our engineering motto

micha20:09:39

will the demo be online?

alandipert20:09:43

@flyboarder good luck on your demo btw!

flyboarder20:09:10

@micha we aren't setup well for streaming it, but we are going to record the audio and my desktop screen, so there will be a video to post later

flyboarder20:09:31

@alandipert: thanks! Hopefully will be mostly spent actually doing the demo