the front end architecture revolution
play

The Front End Architecture Revolution GOTO Chicago 2015 Simplicity - PowerPoint PPT Presentation

The Front End Architecture Revolution GOTO Chicago 2015 Simplicity spina de pesce herring bone brick! many mainstream practice emphasize only the separation of concerns at the detriment of global coordination opportunities Simplicity


  1. The Front End Architecture Revolution GOTO Chicago 2015

  2. Simplicity

  3. spina de pesce herring bone brick!

  4. many mainstream practice emphasize only the separation of concerns at the detriment of global coordination opportunities

  5. ๏ Simplicity scales ๏ Pervasive simplicity permits more opportunity for global optimization ๏ Question designs, tools, processes that don’t lead to global optimization ๏ Global optimization is not at odds with modularity (Garbage Collection)

  6. Possible Stack ๏ React / Relay ๏ ClojureScript (Google Closure) ๏ Transit ๏ Relay / Datomic

  7. Support immutability at every layer

  8. Bene fi ts ๏ Enable simpler reasoning (which permits wider / deeper reasoning) ๏ Agility (remove needless coordination) ๏ Performance

  9. Client Layer

  10. Forcing mutability is like forcing someone pick a database, this is just bad design Mutability should be an implementation detail

  11. Rule 5. Data dominates. If you've chosen the right data structures and organized things well, the algorithms will almost always be self evident. Data structures, not algorithms, are central to programming. - Rob Pike

  12. Which Language?

  13. +

  14. ClojureScript ๏ Now industry leading experts on e ff ective UI/UX over immutable data ๏ React Native permits targeting all major platforms with one language ๏ Without throwing out multi-threaded server side programs

  15. Closure Compiler ๏ Whole program optimization ๏ Dead Code Elimination ๏ Optimal code splitting ๏ Cross module code motion ๏ ES2015, CommonJS, AMD consumption

  16. Moving Data

  17. Transit ๏ Leverage JSON (pervasive) ๏ Provide richer types out of the box ๏ Extensible ๏ In some cases can decode Transit payload into immutable data structures as fast as equivalent JSON

  18. [["~#point",[1.5,2.5]],["~#cache",1],["^1",1]]

  19. Server Side

  20. Big Ideas ๏ UI components de fi ne what they need ๏ Use a recursive description (JSON, EDN, etc) ๏ Batching

  21. Datomic ๏ Immutable relational database ๏ Powerful auditing capabilities ๏ E ffi cient queries of arbitrary points in the past ๏ Datalog-style queries are themselves data (easy to compose)

  22. [:artist/name :artist/startYear]

  23. [{:release/media [{:medium/tracks [:track/name {:track/artists [:artist/name]}]}]}]

  24. Radical Simplicity ๏ Revisit your assumptions / biases about any element of your stack that creates complexity ๏ Examine unfamiliar but time-tested ideas for complexity reduction

  25. Questions?

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend