Fork me on GitHub
#clojurescript
<
2017-12-08
>
thedavidmeister05:12:41

@ghsgd2 i'd hazard a guess that the reason is that angular doesn't fit that well with the clojure(script) mentality

thedavidmeister05:12:07

- monolithic framework rather than composed of smaller utility libs

atticmaverick07:12:54

i have to pass a async function to a javascript library. how would I go about doing this?

atticmaverick07:12:54

would I be able to write that in clojurescript to pass to a javascript function?

thheller08:12:37

@atticmaverick async functions are normal functions that return a js Promise when called. so the simplest example would be (fn [arg] (js/Promise.resolve arg))

atticmaverick08:12:33

@thheller that makes sense and it works. thanks a bunch!

adamvh19:12:09

any emacs (specifically spacemacs) users in the house? and, if so, have you managed to get a cljs repl working in a mixed clj / cljs project?

adamvh19:12:54

when i execute cider-jack-in-clojurescript i only get a clojure repl, although the documentation tells me that i should be getting 2 repl buffers

tungsten20:12:10

anyone know of a way to make cljs-ajax or some other clojure library return a raw blob of the response? cljs ajax raw-response-format seems to be a string. I want to save the response as a file, and it seems somehow the formatting is getting corrupted

tungsten20:12:33

s/clojure/clojurescript

New To Clojure20:12:49

@adamvh You could try posting this question in #emacs too. I'm emacs user but I don't use cljs.

grzm21:12:06

question for the IntelliJ/Cursive users doing web development. Do you typically have a second monitor? I'm having a hard time managing screen real estate with an editor window, the repl, and a browser. Not sure what's different given that I need those in my emacs workflow as well.

manutter5121:12:26

I do generally have 2 monitors, but my second monitor is just for Slack

manutter5121:12:16

I use Cmd-Tab to switch to/from the browser window so I can keep the IDE full screen.

grzm21:12:28

I think part of it is that I'm overlapping the separate windows in my other workflow.

grzm21:12:04

Using figwheel I like to be able to glance over to see what's changed and get right back to editing.

manutter5121:12:20

Yeah, that’s definitely easier with a dual monitor setup

dnolen21:12:57

I also find a single larger screen (24inch) works OK

grzm22:12:17

That's what I'm leaning towards as well. I use a 15-inch laptop, sometimes connected to an external monitor.

grzm22:12:43

I think I'll take a half-hour or so tonight to imagine what I'd ideally like, forgetting for a while what is currently available.

grzm22:12:31

Reducing the amount of chrome is important, I think.

grzm22:12:13

ha! I selected "remove toolbar" from the repl pane, and it removed the icons but left the space where the icons were 😉