Clojurians
#hoplon
<
2016-01-22
>

This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

laforge4902:01:26

I don't think I'm ready. 😞

laforge4902:01:26

today I'm looking into unit testing. This was handy, but I need to reread it all a few more times! https://github.com/magomimmo/modern-cljs/blob/master/doc/second-edition/tutorial-14.md

tbrooke16:01:21

@onetom: Since you have worked with Semantic UI and I am using your library. Have you looked at this - https://github.com/gadfly361/soda-ash - I’m not sure how reagent based it is but I think it would be cool to use this with Hoplon

micha16:01:36

i made a library for ink css the other day

micha16:01:46

in hoplon

micha16:01:53

na interesting experiment

micha16:01:02

i was experimenting with this, like instead of typing

micha16:01:26

(div :class "control-group validation warning error" ...)

micha16:01:56

((-> div control-group validation warning error) ...)

micha16:01:24

i was able to make some macros to autogenerate functions for all the classes in ink css

micha16:01:29

with all the variations

micha16:01:00

((-> div large-66 small-100 large-horizontal-gutters) ...)

onetom16:01:16

@tbrooke no we haven't used anything else other than hoplon and pure hiccup+cljs so im not aware of soda-ash, BUT i can tell u that we havent missed much from semantic ui's js library; we just built out the missing pieces with hoplon directly, on the spot as we needed.

onetom16:01:28

@alandipert @micha: btw, we have just rebuilt the main index page of our homepage with simpler tools since we agreed to minimize interactivity, so hoplon's dynamism is not needed anymore. here are the results: https://github.com/exicon/www-static

micha16:01:16

@onetom: interesting!

onetom16:01:11

we started off with looking into confetti and perun as per martin's and deraen's recommendation

onetom16:01:34

i just pointed the team into that direction and they did the rest

onetom16:01:36

there was no complaint about switching between the syntaxes

onetom16:01:03

and what caused the most excitement was that we introduced garden too

tbrooke18:01:41

@onetom Any thoughts on Hiccup v Hoplon - Haven’t used Hiccup but a quick glance at your homepage looks like Hoplon in regards to html

actsasgeek19:01:58

this is probably obvious…but where does one put the equivalent of “body onload” in a .hl file?

micha19:01:17

just type simple_smile

micha19:01:26

anything you put in there runs onload

micha19:01:33

in a page anyway

micha19:01:55

if you want to have top level effects in a library you can use the jquery way

micha19:01:07

(js/jQuery some-function)

micha19:01:51

if you want to do something after the hoplon page is all ready you can just put expressions after the html expression

actsasgeek19:01:19

LOL ok. I’m having a bit of trouble with some D3 integration, my div doesn’t seem to have a height when the code runs. 😞

actsasgeek19:01:57

I did have the function invocation at the end of the file so that sounds right…I’ll look elsewhere for the issue. thanks.

alandipert19:01:32

@actsasgeek: buncha dated material, but if you look at http://adzerk.com/blog/2014/10/a-dashboard-with-hoplon/ and search for with-let you'll see a thing tha tmight be useful

alandipert19:01:47

under "Back to JustGage"

alandipert19:01:16

basically i create and return a div but don't initialize justgage on it until after the page has loaded. the "placeholder pattern" maybe it could be called

actsasgeek19:01:59

yeah, I saw that. I haven’t gotten to defelem yet, I’m just trying to get my conversion from a JavaScript to ClojureScript of a bar chart to work.

actsasgeek19:01:35

so I’m just converting this example to use data already in the page http://bl.ocks.org/mbostock/3885304

actsasgeek19:01:09

I think at this point, most of my problems are JavaScript -> ClojureScript problems.

actsasgeek20:01:48

but I had to figure out if I was calling the function right at all. It looks like I am…now on to other difficulties. Why are there no axes? 😛