This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-03-30
Channels
- # admin-announcements (10)
- # beginners (17)
- # boot (14)
- # braveandtrue (4)
- # cider (6)
- # cljsrn (38)
- # clojure (232)
- # clojure-austin (1)
- # clojure-belgium (2)
- # clojure-dev (20)
- # clojure-greece (20)
- # clojure-japan (3)
- # clojure-poland (39)
- # clojure-russia (76)
- # clojure-sanfrancisco (6)
- # clojure-uk (4)
- # clojurescript (90)
- # cursive (2)
- # data-science (10)
- # datomic (18)
- # garden (16)
- # hoplon (244)
- # immutant (3)
- # jobs (6)
- # jobs-discuss (2)
- # juxt (1)
- # off-topic (3)
- # om (50)
- # onyx (23)
- # re-frame (5)
- # reagent (36)
- # remote-jobs (11)
- # slack-help (6)
- # spacemacs (2)
- # untangled (46)
hurrah!
so i'm thiking about moving the do!
and on!
default definitions to a separate namespace
but like (defmethod do! :toggle ...)
and friends would be moved to a namespace like hoplon.jquery
or something like that
I think that is a good idea.
then we could have hoplon.goog
or something with the default do!
and on!
methods for goog
ooooh
layers
because of the way cljsjs works, jquery would only be pulled into the build if you :require hoplon.jquery
A lot of the people I talk to about hoplon are taken aback when they hear it uses jquery
i mean imo you have to be a little wacky to not appreciate it for what it is if you're working on a commercial application
It’s just something they’ve gotten used to avoiding because of things like angular and react
like jquery is underneath like 70% of all websites, so it's pretty legit in terms of reliability
yeah, no question about jquery’s reliability
but i think we could probably get the minimal default things working reliably with goog
i do like separating things out. I will probably still use jquery
i don’t think goog has fade and slide
could be wrong 😄
oh it exists
https://closure-library.googlecode.com/git-history/docs/class_goog_fx_dom_Fade.html
god that’s horrible documentation
Ah yes, I’ve used velocity.
I vouch for it
@micha: wow. greensock. i was using that guy’s stuff back in the day when i was doing actionscript/flash development.
never heard of green sock though
i think greensock is the one that has lots of things internally that decide which implementation to use
sounds big 😛
greensock licensing might be problematic: http://greensock.com/licensing/
that reminds me of trumpet winsock
for when you absolutely, positively needed tcp/ip in win 3.1
first date is in the bag
@jumblerg: hello btw! long time no see
or hear, or really anything. been following various things on github tho. you are still hoplon-ing i trust?
@alandipert: better late to the party than never!
not quite as much hoploning recently due to other business obligations, but getting back into it!
yeah i check in to irc from time to time, usually to find that i missed helping some frustrated beginner 😦
phew! >>>As a gesture of good will, Peter Tattam, the sole copyright owner of Trumpet Winsock, has also issued an amnesty on any copyright infringement by all users (individual and corporate) of Trumpet Winsock indefinitely for use prior to Jan 2011. He does however reserve all other rights in the copyright of Trumpet Winsock. Please note that Trumpet Winsock is still available for sale and is NOT free - should you wish to continue to use it, you should order a registration key from us. Please send your order to <mailto:[email protected]|[email protected]> .
hm, anyone run into problems with cell= and map destructuring?
(cell= (fn [{:keys [x y]}] [x y]))
gives me
WARNING: Use of undeclared Var hoplon.app-pages._index_DOT_html/map__14317 at line 15 hoplon/app_pages/_index_DOT_html.cljs
WARNING: Use of undeclared Var hoplon.app-pages._index_DOT_html/map__14317 at line 15 hoplon/app_pages/_index_DOT_html.cljs
is something lifted there and that's what it complains about?
yeah it works
the annoying part is it stops reload
btw dude cljs.js/eval totally works when no optimizations
it's easy to make a real spreadsheet with this thing and cells
a cljs spreadsheet
the eval formula cell
a+ would eval cljs reactively again
the way they have it, theres a function you can call with all your code, including the ns
the plan is to do that, get js back, and run it in iframe
i'm not sure about the iframe part
do you remember a google js thing that ran js inside iframe sandbox?
started with a c
cava?
search no doit
awesome, yes
yeah - funky
has anyone used codemirror with hoplon? having weird problems
hey, does anyone knows if .hl files can be set in Cursive to recognize functions/macros?
@micha: https://github.com/alandipert/skirmish got stuck on getting codemirror going
@alandipert: thanks for pointing out that this annoying error happens due to destructuring in the cell! Even made https://github.com/adzerk-oss/boot-reload/pull/67 as couldn't figure out what caused it
anyone know much about https://github.com/hoplon/hoplon/wiki/Hoplon-with-Polymer?
@micha: i’m like 80% sure what you just described is what was causing me problems with my (cell= (if …))
for navigation
@dm3: lol re: coconut
@micha: doing an little refactoring in castra in support of #19, is there a practical case for exposing the encoding clj->json, json->clj fns via mkremote options? transit assumptions seem to be hardcoded elsewhere.
at some point someone suggested eliminating javelin from castra also, which made sense when i looked
the javelin dep rather
yeah also @raywillig's changes
how has the experience been for people with transit vs. cljson btw? we definitely want to stick with transit?
the transition from cljson to transit was unnoticeable on my end, functionally speaking
i have ajax requests going in worker threads on my end in support of the polling push, in the process of rolling them into castra
(if-tpl cond
(div (case-tpl a ...))
(div (case-tpl b ...)))
results in appendChild
failure with 'child is not of type Node'Uncaught TypeError: Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node'.
uhoh, that's a good test
Things Must Nest
@dm3 Have you tried using multiple levels of if-tpl
instead of case-tpl
? Just a quick way to see how far the rabbit hole goes.
Could be that it’s a problem with the implementation of case-tpl
have you tried multiple levels of nested case-tpl?
@alandipert: i had some issues with transit before when moving data in/out of dynamodb some numbers were stored as Long and transit wasn’t packaging them right or something
Most odd
I wonder if there's anything we can do to get the template macros to nest directly without intermediate elements
like, really, nested template macros can be expressed as a more complex single template macro
@levitanong: very zen
what if you could have (tpl-macro if pred consq alt)
then you read everything after the first argument, and those, you cache
and then if in the argument list, you encounter a list, you cache all the items after the first item
so on and so forth
that said, it would be a challenge to figure out which of the arguments to cache, as in the case of cond
ok so it isn't at all nesting 😛
@micha: what would happen if %2
were (if cell? @%2 %2) instead?
haha, oh well!
I didn’t really think it through when I said the bit about nesting.
i would like to experiment on making a multimethod for template macros though. I feel like there’s something there.
ah, nono, a multimethod wouldn’t work.
defeat
@micha, In the append child code, is kids
a cell?
@thedavidmeister: I wrote it :)
@levitanong: it's an atom
at the moment, no. hoping it’ll give you an idea 😛
but also can you clue me in on where the check is happening?
so typically when i am encountering an error, and the stack trace isn’t being very helpful, I put printlns at various places
so far, I have yet to make any of them show
trying to figure out where "Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node’.” this is happening
i’m placing a println right at the top of merge-kids, and nothing is showing 😞
unless i’m going about this wrong
in my index.cljs.hl
i’m just redefining merge-kids
is this dumb? 😛
but how can i do that without publishing?
headscratch
i don’t believe i have 2.6.0 snapshot
ok got it
so to clarify, you have two terminals: one in the hoplon repo, and one in a project where you have a test hoplon application
that continuously builds the hoplon jar and installs it locally in your local maven repo
(i’m guessing the maven repo is ~/.m2)
the -c,--checkouts
option to boot tells it to load the dependency such that it will be reloaded when you reinstall the jar
I see
IT WORKS
BWAHAHAHAHAHHAHA