amsterdamjs-clojurescript-workshop
amsterdamjs-clojurescript-workshop copied to clipboard
Educational materials for ClojureScript workshop @ AmsterdamJS '18
Setup
Please do this before workshop. Ping me on Slack if you have any problems with setup.
- If you don't have it yet, download and install JDK 8 on your machine
- Install Clojure CLI or Leiningen if you are on Windows
- Clone workshop repository that we are going to work with
-
cd
into repo's directory and execute the following commands
-
clojure -m figwheel.main -b dev -r
orlein do server
to start dev server -
clj -m nightlight.core --url "http://localhost:3000"
orlein do ide
to start IDE server, which we will work in
- Verify build: once initial compilation is done you should see a running app at localhost:3000
- Verify IDE: IDE starts at localhost:4000, you should see editor UI there
Topics
- Syntax, variables, functions and macros
- Threading macro (pipeline operator)
- Primitive data types
- Control flow
- Data structures
- Collections transformation
- State
- Interop with JavaScript
- Namespaces
- Building UIs
Tips
- Use ClojureDocs during the workshop to lookup functions from standard library
- Have ClojureScript Cheatsheet open as a quick guide
Useful links
- ClojureScript Synonyms — translation of common things from JavaScript into ClojureScript
- ClojureScript Cheatsheet — a quick reference to a standard library of the language
- ClojureDocs — documentation website
- Clojure Style Guide — a style guide to writing idiomatic Clojure code
- clojurescript.org — ClojureScript documentaion website
- Community Resources
- ClojureScript API Docs
- Quickref for Clojure Core
- ClojureScript Tutorial
- ClojureScript Koans
- Transforming Data with ClojureScript