Fork me on GitHub
#hoplon
<
2016-11-02
>
jumblerg04:11:13

@micha: what is the rationale behind the newly-introduced --refers option in boot-hoplon - why do we need another mechanism for magically injecting dependencies instead of simply mandating that jQuery be loaded from cljsjs as a :provided dependency? i'm sure you have a good reason, but i'm curious to know what it is.

micha16:11:21

@jumblerg firstly for compatibility with previous versions of hoplon

micha16:11:57

other than that you do not have to use it

micha16:11:17

like personally i use it for injecting my logging macros

micha16:11:34

so if i want to log something i can use the logging macros that don't emit code for production

micha16:11:48

so i can put logging wherever i want without needing to remove it in prod

micha16:11:29

eliminating the extra step of :require the namespace etc means that i don't just use console log to quickly get some logging, which is what i would do if i didn't use --refers

micha16:11:34

@jumblerg also it's not a dependency issue, because jquery is always a dependency of hoplon, that hasn't changed

micha16:11:58

what the --refers stuff does is refer hoplon.jquery namespace into .hl pages

micha16:11:25

that installs the do! and on! multimethods that use jquery

micha16:11:53

the hoplon.goog namespace installs do! and on! multimethods that use google closure instead

flyboarder18:11:26

:thumbsup: good summary!

alandipert18:11:24

a wild paul appears!

paul18:11:34

@alandipert heh; i haven't done web-dev for serious in awhile and I'm probably doing terrible things, but hoplon's workflow is just killer

paul18:11:22

I've got some refinements to make before it's prod-ready, but we'll be deploying that on our mesos hosts soon

micha18:11:05

0147eb8a-cc66-404a-b053-0cbf4e44061d

micha18:11:13

a gift, for your collection