Fragments 2017

A conference on the mobile ecosystem in India

REPL driven mobile development with Clojure(script)

Submitted by Srihari Sriraman (@ssrihari) on Monday, 21 August 2017

videocam_off

Technical level

Advanced

Section

Full Talk

Status

Confirmed & Scheduled

View proposal in schedule

Vote on this proposal

Login to vote

Total votes:  +3

Abstract

The REPL provides quick feedback cycles that are necessary to keep developers in charge. Dynamic, and interactive environments that propel the development process are essential in all faces of software development, and the mobile ecosystem has recently seen an uptick here with React Native. Couple that with an inherently REPL driven language like Clojure(script), and we have a close-to-ideal environment.

I’ll speak through my experience in developing a react-native + clojurescript app (team of 2) alongside a native team (team of 10), comparing and contrasting the development and business perspectives of both teams. We finished up much before the native team, focussed on design and stability, and delivered more functional value to the business.

The talk will be most beneficial to mobile devs who crave quicker feedback cycles, and to businesses folk who want to leverage the their existing teams effectively.

Key Takeaways

  1. How were we able to build faster, and more robust apps than a native team?
  2. How react native helped (will only cover contextually relevant takeaways here)
  3. How clojurescript helps * The dynamism in process * Stability by design and simplicity
  4. What were the anologous experiences with the native team?
  5. What does the clojurescript ecosystem look like right now?
  6. what are the common reservations against picking it up?
  7. The benefits of an undivided and unilingual team
  8. pros and cons of a team that does both backend and front-end
  9. pros and cons of a team that uses the same language on front-end and back-end

Outline

  1. Briefly, about the company, our backgrounds, the problem statement, the teams, and the results
  2. Quicker feedback cycles enabled by react native
    • Deliver value from day 1
    • Incremental development of HTTP and websocket APIs
  3. Even quicker, continuous feedback using clojurescript
    • REPL driven development
    • figwheel. this is really cool, check it out. incremental code recompilation and loading. stays out of the way.
    • DEMO: figwheel + REPL
    • Explore and validate from day 1
  4. Stability via Clojurescript
    • seamless JS interop
    • immutable data structures by default; much easier to write reloadable code
    • makes you lean on functional programming patterns more than say typescript, which is more popular.
    • briefly compare: clojurescript, scala.js, elm, purescript, and ghcjs
    • google closure: great standard library, massive code size reduction
    • tools:
      • figwheel
      • reagent: react wrapper
      • immutable types by default, much easier to write reloadable code
      • re-frame: SPA framework
      • datascript: datalog in-memory DB
      • callback hell: CSP. Hallelujah!
  5. The Clojurescript ecosystem
  6. Reservations against Clojurescript
    • willy wonka style decisions on the movement of the language
    • lisp. very different. but hey, no precedence.
    • completely different build tooling. but then, it’s just one thing (lein).
    • personal experience from 3y ago, and contrast with now
  7. Undivided team: the pros and cons
    • loss of full picture
    • quick feedback cycles => well defined APIs
    • tradeoffs, overheads and what is realistic
    • of DB specialists and Ops specialists who existed
  8. Unilingual team: the pros and cons
    • using the source
    • at some points in time, we moved code verbatim from cljs to clj
    • ability to make PRs to the backend
    • highly coordinated backend + front-end development
    • less communication overhead

Speaker bio

Srihari is a FOSS enthusiast. He has contributed to Gimp, Eclipse, Diaspora and is excited about opportunities to give back. Over the last few years, he has written many Clojure services meeting tight latency SLAs, engineered assembly lines, written generative simulation test suites, and built performant monitoring solutions for a variety of businesses.

He has recently found a profound interest in leveraging his Clojure(script) skills for the front-end, and has delivered multiple browser and mobile applications.

He is a partner at nilenso, a hippie tree hugging bicycle riding software cooperative based in Bangalore.

Links

Comments

  • 1
    Ruby Verma (@vermaruby38) 16 days ago

    Well, this is interesting.
    https://happywheels24.com/

Login with Twitter or Google to leave a comment