1 / 118

Clojure in the Cloud

Clojure in the Cloud. JavaOne. Sept. 29, 2014 @ 12: 3 0 p m. Everett Toews Developer Advocate @ everett_toews. Intro. Developer. PMC and Committer on Apache jclouds. Intro. Advocate. Intro. Operations. Co-author of The OpenStack Ops Guide. docs.openstack.org /ops. Clojure.

ariana-dyer
Download Presentation

Clojure in the Cloud

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

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!

More Related