Fork me on GitHub
#clojurescript
<
2018-04-08
>
tomaas07:04:55

hello, does anyone know of any images slideshow lib like slick.js or something similar?

jonrob13:04:52

i have a large (?) set of static data, a few mbs, i'd like to represent as a map and interact with from within a clojurescript application. what's the best way to distribute this? trying to put it in a cljs file results in an analyzer error when i try to load it in the repl.

soulflyer14:04:07

that will be the command line clojure tool. First paragraph has a link that says "...and an installation of Clojure. " Click on it and follow the instructions and clj is what you will get.

alex.gavrisco14:04:26

Hello, I get this error when I try to play with electron and CLJS 1.10 https://stackoverflow.com/questions/49719056/clojurescript-name-goog-is-not-defined-in-the-externs Is something wrong with the config or it's a known issue?

robert-stuttaford18:04:59

@andrewboltachev literally the first link on the article you linked has a link to the instructions to install clj. i guess we need to make that utterly obvious, eh, @dnolen?

andrewboltachev18:04:36

@robert-stuttaford thanks. I was just surprised that after N years of lein being the main utility clj one started to exist 🙂

mikerod18:04:54

@alex.gavrisco there is a cljs JIRA in that SO post.

alex.gavrisco19:04:25

Indeed. I've written that SO post)) I was wondering if it's the same issue or I've missed something in my project setup (maybe some changes in cljs 1.10). I have little experience with clojurescript, so it would be nice to get some pointers.

alex.gavrisco19:04:33

Currently I've just downgraded ClojureScript to 1.9.542 and it works like a charm, but it would be nice to get it working with 1.10 to get some build performance improvements

mfikes19:04:11

@alex.gavrisco Using automatic externs inference is optional. If you don't really need it for what you are doing, perhaps it could be disabled and then you could use 1.10.238

alex.gavrisco19:04:58

I see... I'll try it. Thanks!

mikerod19:04:53

I haven’t checked the warning issue on a newer version yet. Didn’t realize you wrote post hah

mikerod19:04:46

I got the warnings in 1.9.946 I think. It didn’t actually cause a problem though. Since goog was defined despite the warnings I guess or whatever.

alex.gavrisco19:04:12

I've got warnings with 1.9.946, but I haven't tested the app (since I got same warnings). I'll try in few minutes.

mikerod19:04:40

It seemed to me that the warnings or perhaps the externs themselves were irrelevant

mikerod19:04:03

Perhaps there was no reason to even have externs for goog symbols

mikerod19:04:09

so it was a “bad externs” file that didn’t matter

mikerod19:04:13

that was my understanding at least

mikerod19:04:19

(which could be wrong)

mikerod19:04:52

I’ve been using the inference, with warnings, in 1.9.946 for a while now and haven’t had trouble with any of the externs inference I’m actually using in the advanced optimization build

alex.gavrisco19:04:55

Well, I get same errors with with 1.9.946 (warnings during compilation, and "Cannot read property 'c' of undefined" in the app). In that Jira ticket @dnolen mentioned that on master this issue is fixed, so maybe it'll work in the next release. I'm gonna try the solution suggested by @U04VDQDDY

mikerod20:04:33

Well, the c undefined thing, may not be related to the goog warnings

mikerod20:04:52

However, yes, if you can use other versions to look at your specific issue, good

alex.gavrisco21:04:50

You're right! I've enabled pseudo-names and I've seen that the error is related to reagent. I've upgraded reagent and now everything works like a charm. Thanks!

sveri20:04:09

Hi, in terms of SPA vs server generated html webpages in a webframework. Which would you prefer nowadays? I created a poll for that because I am thinking of switching my leiningen template to re-frame as a default: https://doodle.com/poll/bvw2zkrfe9ue6hxg

gklijs03:04:31

For me it really depends on what kind of site it is. If it's purpose is mainly to give information, I still prefer server generated. When it becomes more interactive a SPA starts making more sense.

thheller20:04:44

@sveri would help to have a project description. the answer is going to vary based on that.

sveri20:04:38

@thheller The context is my template for web development: https://github.com/sveri/closp Up to know I deliver server side generated webpages for login / admin page and I think about switching to a complete clojurescript frontend.

ajs20:04:29

Really depends on the project specifics

thheller20:04:48

can't really write a template thats going to fit all projects

sveri20:04:23

Totally true, thats why I'd like to know where todays preferences are in general.