Upgrade to Pro — share decks privately, control downloads, hide ads and more …

REPL Driven Mobile Development with Clojure(script)

REPL Driven Mobile Development with Clojure(script)

Talk slides as presented in #FragmentsConf 2017.

6389f3db059111f68daa44ab6d01a1bd?s=128

Srihari Sriraman

September 13, 2017
Tweet

Transcript

  1. REPL Driven Mobile Development with Clojure(script) Srihari Sriraman | nilenso

  2. None
  3. when did you become an expert in building mobile applications?

    last night, ofc
  4. I have leapfrogged

  5. Why I am speaking about this Using cljsrn, we built

    the same app as a native team faster, and better.
  6. The things I will talk about Why REPL Driven Development

    CLJSRN Non tech factors
  7. Parlance

  8. REPL Https://en.wikipedia.org/wiki/ Read–eval–print_loop Read, Eval, Print, Loop “interactive computer programming

    environment that takes single expressions, evaluates them, and returns the result to the user.
  9. REPL Https://en.wikipedia.org/wiki/ Read–eval–print_loop Read, Eval, Print, Loop

  10. Lisp http://lisp-lang.org/ LISt Processor Second oldest HLL Homoiconic

  11. Lisp http://lisp-lang.org/ LISt Processor Second oldest HLL Homoiconic

  12. Clojure https://clojure.org/ Clojure is a dialect of Lisp that runs

    on the JVM
  13. Clojure https://clojure.org/ Clojure is a dialect of Lisp Runs on

    the JVM Rich Hickey
  14. Clojure(script) http://clojurescript.org/ ClojureScript is a compiler for Clojure that targets

    JavaScript David Nolen
  15. Clojure(script) http://clojurescript.org/ ClojureScript is a compiler for Clojure that targets

    JavaScript David Nolen
  16. CLJSRN http://cljsrn.org ClojureScript is a compiler for Clojure that targets

    JavaScript. A framework for building native apps using React
  17. Feedback

  18. Bret Victor - Inventing on Principle https://vimeo.com/36579366 “Most of my

    time is spent in code, working in a text editor blindly, without an immediate connection to what I'm trying to make."
  19. None
  20. None
  21. None
  22. None
  23. None
  24. None
  25. Bret Victor - Inventing on Principle https://vimeo.com/36579366 “Creators need an

    immediate connection to what they create”
  26. Stephen Wolfram – Inside the Wolfram Language https://www.youtube.com/watch?v=EjCWdsrVcBM

  27. Ron Garret - Lisping at JPL http://www.flownet.com/gat/jpl-lisp.html “Debugging a program

    running on a $100M piece of hardware that is 100 million miles away is an interesting experience. Having a read-eval-print loop running on the spacecraft proved invaluable in finding and fixing the problem.”
  28. Sam Aaron –Programming Music with Overtone - Sam Aaron https://www.youtube.com/watch?v=imoWGsipe4k

    Zach Oakes –Making Games at Runtime with Clojure https://www.youtube.com/watch?v=0GzzFeS5cMc Me – Making machines that make music https://www.youtube.com/watch?v=ZvSSeuzN_b4 Clojure land
  29. REPL Driven Development

  30. Clojurescript Clojure Compiler Javascript Google Closure Compiler Optimized Javascript RN

    flow How cljsrn gets to a mobile
  31. Demo

  32. What is a REPL? More than a Shell Interact with

    running program Define and modify behaviour Read and write access to program’s state In the editor
  33. Why use a REPL? Why Clojure REPL? Why CLJS?

  34. Why use a REPL? Feedback Explore and internalise the problem

    Incremental development of the solution Faster than TDD Debuggability
  35. Why use a Clojure REPL? 60y of LISP Functions and

    Data structures, mostly Read, Eval, and Print are overridable functions Access to runtime: Reflections as data Namespaces, vars
  36. Why clojurescript? Expressive, Simple Seamless JS Interop Immutable data structures

    by default Google closure
  37. Expressive, Simple Javascript Clojurescript

  38. Why clojurescript? Expressive, Simple Seamless JS Interop Immutable data structures

    by default Google closure
  39. Seamless JS interop

  40. Why clojurescript? Expressive, Simple Seamless JS Interop Immutable data structures

    by default Google closure
  41. Why clojurescript? Expressive, Simple Seamless JS Interop Immutable data structures

    by default Google closure
  42. Tools figwheel: watchman++ re-frame: SPA framework (predates elm, redux) core.async:

    no callback hell!
  43. Reservations Hiring: Lisps are very different Learning: Community is small

  44. Non tech factors

  45. None
  46. Undivided Team Ability to have a full picture Quick feedback

    cycles Well defined APIs No Specialists
  47. Unilingual Team “Use the source” Share code Make PRs across

    FE and BE Shared tools, and release processes
  48. None
  49. REPL Driven Mobile Development with Clojure(script) Srihari Sriraman | nilenso