Download
clojure in the cloud n.
Skip this Video
Loading SlideShow in 5 Seconds..
Clojure in the Cloud PowerPoint Presentation
Download Presentation
Clojure in the Cloud

Clojure in the Cloud

181 Views Download Presentation
Download Presentation

Clojure in the Cloud

- - - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

  1. Clojurein the Cloud JavaOne Sept. 29, 2014 @ 12:30 pm Everett Toews Developer Advocate @everett_toews

  2. Intro Developer

  3. PMC and Committer on Apache jclouds

  4. Intro Advocate

  5. Intro Operations

  6. Co-author of The OpenStack Ops Guide docs.openstack.org/ops

  7. Clojure

  8. Clojure List

  9. (2 3)

  10. Clojure Vector

  11. [2 3]

  12. Clojure Map

  13. {:key1"value1" :key2 "value2"}

  14. Clojure Parens

  15. (fn arg1 arg2) (sfarg1 arg2)

  16. Clojure Prefix

  17. (+ 2 3) ; 5

  18. Clojure Functional

  19. (defnadd-7 [x] (+ x 7))

  20. (add-7 3) ; 10

  21. (map add-7 [2 3]) ; (9 10)

  22. Clojure Types

  23. (add-7"3") ; ClassCastExceptionjava.lang.String cannot be cast to java.lang.Number

  24. Clojure Destructuring

  25. 1 (defn print-args 2 [f & rest] 3 (println f) 4 (println 5 (apply sorted-map rest)))

  26. (print-args"first" :k3 "v3" :k1 "v1" :k2 "v2") ; first ; {:k1 v1, :k2 v2, :k3 v3}

  27. Clojure Lambda

  28. (map (fn [x] (+ x 7)) [2 3]) ; (9 10)

  29. Clojure Macro

  30. (defmacro when [test & body] (list 'if test (cons 'do body)))

  31. (when true (+ 2 3)) ; 5

  32. Clojure lein

  33. lein new app github-comment-clj lein clean lein install lein test lein run leinrepl

  34. Clojure REPL

  35. Read Eval Print Loop

  36. Cloud

  37. Cloud SaaS

  38. Cloud IaaS

  39. Cloud Resources Accessible Via HTTP API

  40. HTTP APIs

  41. HTTP APIs Documentation

  42. HTTP APIs Logging

  43. HTTP APIs Auth

  44. HTTP APIs Endpoint

  45. HTTP APIs Environment

  46. HTTP APIs Connect!