cljs-dev

ClojureScript compiler & std lib dev, https://clojurescript.org/community/dev
2020-04-17T03:48:13.144500Z

Hi, how much of JS do I have to know to get into Clojurescript?

frozar 2020-04-17T05:39:15.145400Z

@jgzolanes If you don't interact with JS, I would say "near to nothing".

2020-04-17T07:24:39.147200Z

I would even say even if you interact with JS as long as it stays at library level, near to nothing. You need to read about react vs reagent/re-frame though.

thheller 2020-04-17T07:27:57.148200Z

I'd say the opposite. You might not need to know the exact syntax of JS but you still need to learn a lot about the runtime itself. Understanding how the Browser handles JS and which limitations it has is important.

👍 4
dominicm 2020-04-17T07:55:29.149200Z

There's a lot of JavaScript syntax details I don't know, but I've learned a lot of DOM apis

2020-04-17T08:21:14.150300Z

Yeah I agree, knowing the runtime is very important. I often see people asking essential JS questions here.

2020-04-17T09:41:15.151200Z

Is there a reference? Like JS 101 for CLJS devs?

2020-04-17T10:23:00.152200Z

I'm not aware of any and don't think there's anything specific, just learn js ™️

2020-04-17T10:25:53.152900Z

Haha, I learn CLJS to avoid learning JS

2020-04-17T10:26:06.153400Z

I guess I need to dig into it finally

2020-04-17T10:26:19.153700Z

well maybe not JS itself, but runtime APIs, DOM, browser APIs etc

2020-04-17T10:26:55.154800Z

What are runtime APIs? Like js/Math?

2020-04-17T10:27:51.155800Z

web apis in general

2020-04-17T10:29:07.156700Z

Ah ok, yeah you need that for sure.

dnolen 2020-04-17T12:59:46.158900Z

@jgzolanes I don't disagree w/ with what's been said so far but it depends on what you mean by "get into" - I think if you're focusing on learning then I think you can make it pretty far these days w/o doing too much interop. As you start building things less trivial with more requirements you'll soon find that knowing something about JavaScript is essential.

💯 2