Js for learning

1,065 views

Published on

Quick talk on why js is good for learning and some gotchas. Probably doesn't translate well w/o narrative & live code doe

Published in: Technology, Education
  • Be the first to comment

  • Be the first to like this

Js for learning

  1. 1. JavaScript for learning
  2. 2. JS for Learning
  3. 3. JS for Learning • You use it every day at work
  4. 4. JS for Learning • You use it every day at work • You can mold it into a lot of different styles
  5. 5. JS for Learning • You use it every day at work • You can mold it into a lot of different styles • In my experience, it’s the least awkward paradigm
  6. 6. • (live example)
  7. 7. JS for Learning • You use it every day at work • You can mold it into a lot of different styles (show examples) • In my experience, it’s the least awkward paradigm • Mixed paradigm so you can ease in
  8. 8. • (live example)
  9. 9. • osteele’s functional.js • lambdajs • underscore/scoreunder • fancy Libraries
  10. 10. Level up • Start with map/filter/reduce/some/every • Pure functions within objects • Play with curry and compose • Sensible point free • Category theory
  11. 11. Hurdles
  12. 12. Hurdles • Where’s the consistency?
  13. 13. Hurdles • Where’s the consistency? • Math, math, math
  14. 14. • Haskell: Road to logic by Doets & van Eijck • Conceptual Mathematics by Lawvere & Schanuel
  15. 15. Hurdles • No one popular way • Math, math, math • Missing a large community
  16. 16. Gotchas
  17. 17. Gotchas • Eager Evaluation
  18. 18. Gotchas • Eager Evaluation • Rewriting language constructs
  19. 19. Gotchas • Eager Evaluation • Rewriting language constructs • Loose variables
  20. 20. Unexpected Delights
  21. 21. Unexpected Delights • Dynamic type safety
  22. 22. Unexpected Delights • Dynamic type safety • Testability
  23. 23. Unexpected Delights • Dynamic type safety • Testability • Compile to JS...but it’s so pretty!

×