~/talk

Django & JavaScript: A long and complicated friendship

Talkat PyCon AU 2017 · 2017-08-03..08-08· [python, javascript]
name:Jen Zajac
links:none on file
slides:none on file

JavaScript has been part of Django since a 2005 core commit of 1715 lines, and modern projects replace inline scripts with a decoupled front end: Django REST framework backends serve JSON to React single-page apps built with webpack and served via nginx proxy. Example project Smart Start demo uses Django REST framework, create-react-app, django-webpack-loader and client-side routing that indexes fine in Google though Facebook crawlers miss per-page meta tags; Stack Overflow shows 62% of devs using JavaScript versus 32% for Python.

AI-written summary · about

  1. 0:00Start
  2. 3:13Interactivity!
  3. 3:40webapps not websites
  4. 5:15JS history 2005 – 2010 ECMAScript 3
  5. 10:03Frontend build tooling? Django Compressor
  6. 18:16String interpolation let msg = 'Hello world'
  7. 18:47Arrow functions let myFunc = (argi, arg2) = // normal function stuff
  8. 19:28Module imports
  9. 19:47Classes
  10. 23:16Less invasive build tooling Django Webpack Loader pow.gd/kvuUqd
  11. 24:46interlude- demo
  12. 31:36Picking the right JS library, framework or pattern
  13. 31:59Are you building a website or are you building a webapp?
  14. 32:29Is your JS for decorative or functional purposes?
  15. 33:06Do you need batteries included?
  16. 33:40Is there business logic in your JS code?
  17. 34:13Node.js - the competition
  18. 34:33The contenders
  19. 36:16Django fights back... Can't compete vs. one language
  20. 38:22Browser and JS functionality just keeps on evolving
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.