Coder Social home page Coder Social logo

cljs-bootcamp's Introduction

ClojureScript Boot Camp at PROS

Now that we are using ClojureScript for three products at PROS, we are wanting to introduce developers to the language through a series of 2-hour bootcamp sessions. (Initiated by Chris Oakman)

Bootcamp 1

During this session, Chris introduced the language's features and benefits in a high-level presentation. We also covered its syntax.

Bootcamp 2

During this session, we walked through creating a simple project. We learned about:

  • Creating a base minimal project with lein new mies bootcamp2
  • Creating files and namespaces
  • Requiring namespaces and referencing their symbols
  • Creating a function
  • String concatentation
  • Creating local "bindings" with the let-block (immutable values)
  • Creating global "bindings" with def (immutable values)
  • Creating an atom when we want mutation.
  • Watching all transactions on an atom with add-watch
  • Using lein repl in order to experiment with the language
  • Quick intro to functional patterns with map filter and reduce
  • Mathematical functions like (+ 1 2 3) and (> 4 5 6)
  • The threading macros -> and ->> for making nested expressions read more naturally.

Bootcamp 3

During this session, we walked through creating a new project. We learned about:

  • Creating a base project with a browser REPL lein new mies-brepl bootcamp3
  • Starting the bREPL with lein repl and then (brepl).
  • JS Interop with (.foo bar) (.-foo bar) and (foo.).
  • How to include new library dependencies
  • The case for using hiccups for HTML templating.
  • How to build markup strings with data structures.
  • How to use functions to dynamically generate markup strings.
  • Generating an unordered list of items.
  • Maintaining state of highlighted item in an atom. (keeping state in your atom, not the DOM)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.