Code Monkey home page Code Monkey logo

defworkshop's Introduction

Defworkshop

These are materials for the Clojure Workshop.

Please fork the repo, and enjoy the show!

Run lein marg and open docs/uberdoc.html in your browser to view contents.

Implement functions, and have lots of FN!

Concepts

Tasks are broken down into groups:

Simple Functions

  • prefix notation
  • anonymous functions
  • function shortcuts
  • function composition (comp, partial, complement)
  • multiple-arity functions
  • language primitives (keywords, symbols
  • simple destructuring patterns
  • concept of let
  • conditionals
  • usage of closures

Data Structures

  • vectors, lists, sets, maps
  • sequential and associative DSs
  • accessing values
  • adding/removing values to/from list
  • updating

Working with sequences

  • basic sequence operations (map, reduce, filter, remove)
  • combining sequence operations
  • for/doseq for eager list manipulation and side-effects
  • how to use recursion instead of state

Destructuring

  • how to use map destructuring
  • how to use list destructuring

Java Interop

  • how to generate a java class
  • how to create an Jar entrypoint
  • reify, proxy

Macros

  • macros basics
  • delayed evaluation

Software Transactional Memory

  • basic STM concepts
  • how to mutate an STM variable

Concurrency

  • futures
  • launching threads

Multimethods

  • functional polymorphism
  • application and usage of multimethods

Protocols

  • functional polymoprhism
  • application and usage of protocols

License

Copyright © 2012-2014 Clojure Workshop Team: Maximilian Karasz, Jan Stępień, Marek Kubica, Oleksandr Petrov

Commercial use of complete work or parts of work is not allowed to anyone except for Clojure Workshop Team at whole or in parts.

Licensed under Creative Commons Attribution-NonCommercial 3.0: http://creativecommons.org/licenses/by-nc/3.0/

When using complete work or parts of work, explicit attribution is required.

defworkshop's People

Contributors

ifesdjeen avatar

Watchers

klob avatar

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.