Fork me on GitHub
#clojurescript
<
2020-01-01
>
Probie05:01:01

I haven't done anything with clojurescript before. If I want to write an app using re-frame, will lein new re-frameset up everything I need, and will I just be able to jack-in with cider, or is it a bit more involved than that to get started?

folcon05:01:31

@ludvikgalois, you totally new? Do you know js?

Probie05:01:12

I write nodejs for my current job, but when it comes to the browser I'm not particularly knowledgeable.

folcon05:01:34

What editor are you familiar with?

Probie05:01:14

I use emacs and have done for 15 years. I'd rather stay in emacs if I can

folcon05:01:33

Well that’s fine =)…

folcon05:01:03

You’ll probably want some additional flags

Probie05:01:24

Yeah, I've pulled up the docs for the lein template, and it looks like I need +cider (and to read the linked docs)

folcon05:01:29

at least +10x +cider

folcon05:01:59

+10x is pretty useful to get an idea of what’s happening internally.

folcon05:01:20

Personally, I’d checkout a todo mvc written in re-frame and get a feel for what it’s doing…

folcon05:01:45

Then start tinkering with a new project =)…

Probie05:01:28

are there any major differences between clojure and clojurescript (apart from not being able to call Java and being able to call JS) that I need to know beforehand? Or will they just be small things that I can deal with as they arise?

folcon05:01:08

there are minor differences, the main things come down to underlying runtime

folcon05:01:42

That covers it pretty well

folcon05:01:04

The biggest one is macros…

Probie05:01:37

so (in the event I need to write macros) just stick macros in separate namespaces to the code which needs them and use require-macros, watch out for JS equality and primitive types (no big integer, chars are just singleton strings) and half of the concurrency stuff is missing. That seems fairly straight forward. Thanks

folcon06:01:11

Good luck! 😃