This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-12-12
Channels
- # admin-announcements (1)
- # bangalore-clj (13)
- # beginners (149)
- # boot (123)
- # cider (7)
- # clojure (167)
- # clojure-brasil (3)
- # clojure-greece (1)
- # clojure-korea (2)
- # clojure-new-zealand (2)
- # clojure-russia (70)
- # clojure-sanfrancisco (3)
- # clojure-spec (84)
- # clojure-uk (36)
- # clojurescript (300)
- # code-reviews (242)
- # community-development (34)
- # core-async (4)
- # css (1)
- # cursive (37)
- # datascript (1)
- # datomic (20)
- # defnpodcast (1)
- # dirac (15)
- # events (7)
- # garden (12)
- # hoplon (100)
- # lein-figwheel (11)
- # off-topic (2)
- # om (69)
- # om-next (3)
- # onyx (86)
- # planck (14)
- # proton (4)
- # protorepl (1)
- # quil (2)
- # re-frame (53)
- # rum (3)
- # untangled (1)
- # vim (50)
@mynomoto what is wrong with just changing the hoplon files to .cljc??
from what I have been reading only the macro's that use java interop will be a problem, and I dont think there are any.
@jondejung hello!
@flyboarder Could You aid me through a beanstalk issue I'm having?
possibly whats up?
boot beanstalk -l clojure.lang.ExceptionInfo: No implementation of method: :file of protocol: #'boot.tmpdir/ITmpFile found for class: nil
@flyboarder enjoyed the article. Tho afaik typed clojure doesn't work with cljs
@jondejung I think we fixed that bug in a recent version
@alandipert noted thnx
Thanks @alandipert
I might be misremembering. So here's hoping 😃
@flyboarder there are some at least. The text macro being the main one iirc.
yeah looks like it's only that one tho, I dont see javelin actually using it's call to http://clojure.java.io
@alandipert can you confirm?
soft-yes
I see no use of io here https://github.com/hoplon/javelin/blob/9df5019ba3d3bc9f859bf996b5bc53cc0b220aae/src/javelin/core.clj
but it's required
So now I am confused, javelin.core.clj references cljs namespaces????
in functions
There's a cljc branch of javelin, you can see what I did
I was not pleased with cljc for the macros ns, 2 files is better imo
Or at least, use cljc only in ns
Err, to be clearer, don't go overboard with cljc or Micha won't merge it. I think he was ok with it in the ns tho
straw poll
for breakpointy things
tracking the viewport width with a prop cell
or binding to the resize event
@thedavidmeister resize event I would think
@alandipert @micha I got pretty far with the self-hosting but much of the problem is the amount of cljs referenced from clojure code in non macro's
specifically in javelin, hoplon can easily be fixed
@nux hey, that hoplon-layouts was just a personal weekend exploration really. im still using it though as a sandbox setup to experiment with hoplon or debug hoplon. if you need help with it, just ping me here, im happy to even screen share and do a bit of pair programming
@flyboarder know of anything off-the-shelf for hoplon for breakpoints?
no big deal if not, just seems like something many people would want
like css breakpoints?
yeah, like css breakpoints
i did something for http://skel.io https://github.com/hoplon/brew/blob/master/src/hoplon/skel.cljs.hl
great, thanks 🙂
i’ve got my garden cross compiling, so hopefully i can have the same breakpoints in css and javelin
@onetom thanks, it will probably be sometime before i get time but i will definitely reach out to you when i start on it.
Only slightly hoplon related, but does anyone have any thoughts on when D3 is needed or when [hoplon.]svg is sufficient? I'm attempting to make a kinda fully featured stock chart thingy. I've never worked with SVG at all before but was kinda pleased with my progress messing around with hoplon.svg for a few hours. But now that I'm starting to think about more complicated stuff (like scaling axis, etc), it all seems doable with straight SVG but I'm wondering if I'd be better off just working with D3 from the begining for some reasons I'm missing?
the idea was to compose clojure code and get out a chart spec which is then rendered by Vega
cool thanks. I kinda have to stay in the browser. I'll probably just see how far I can get with hoplon.SVG alone
@thedavidmeister: you should be able to use the breakpoint fn in hoplon ui without the rest of it.
it returns a formula cell that contains one of the values you passed in based on the viewport size.
@jjttjj Not really direct advice, but my rule of thumb on “roll your own” vs “reuse” is a heuristic having to do with how core the thing you’re building is to your business. If it’s truly at the heart of your business, generally the work invested in building something custom will pay off. E.g. an accounting firm building an accounting system vs. a gaming company building an accounting system.
a breakpoint function like this is much more powerful than a css media query or grid system because you can use it interchangeably with anything that takes a value in hoplon and specify any number of viewport sizes. https://github.com/hoplon/ui/blob/master/src/hoplon/ui.cljs#L573-L582
@micha: maybe we should pull this or some variant of it into hoplon core since there's nothing ui specific about it.
it should probably also borrow from/incorporate case-tpl when passed elements so it will cache when used with kids.
i feel kinda bad that we left the immutable priority map in there for so long
immutable aka slow
it will be even faster with the next major ui push, which cuts the number of generated elements in half and eliminates the memory overhead associated with using ui.
in fact, i think the ui lib will generate significantly fewer elements than an equivalent bootstrap application.
Nice writeup on using Garden (with Hoplon) @meeli (https://blog.estimate-work.com/a-new-world-writing-css-in-clojurescript-and-life-after-sass-bdf5bc80a24f#.785enoz8y)
Pretty good, you? I’ve been off-the-grid (literally) most of the summer - learning permaculture and deep-nature stuff - was great. Going to be spinning up a very simple site for Tammi’s new real estate firm — using hoplon of course 🙂.
@donmullen thanks for the repost!
@donmullen also permaculture is cool - we dabble in aquaponics #nerdlife
@meeli excellent - lots of interesting things happening in aquaponics. My interest has taken me to mushroom cultivation - especially medicinals. Should be interesting.
@donmullen ooh awesome. i grew some oyster mushroom once - they are really good if you pickle them - http://www.seriouseats.com/recipes/2012/01/pickled-oyster-mushrooms-recipe.html
@jumblerg ah cheers, i ended up doing something similar
i have a base config for my breakpoints
then a macro that converts them to garden/media queries
and a function that creates a cell with a set of all the currently valid breakpoints
@donmullen @meeli wow, that's a really awesome and comprehensive article!
aww @alandipert thank you!
@thedavidmeister helped lots too