~/talk

Saga of a Single Function by Edgar Marukyan (Eng) | JSConfAM19

Talkat JS Conf Armenia 2019 · on Saturday, 2019-11-30· [javascript, developer-experience]
links:none on file
slides:none on file

Argues that the single function is the fundamental unit of JavaScript code and shows concrete changes: rewrite three-argument routines into one-argument functions via currying and object bundling, replace boolean flags by splitting into two functions, factor callbacks out of maps into named helpers, and separate a tiny dirty edge that touches the DOM from a large pure pipeline. Demonstrates composition with compose, Express-style middleware and promise chains, claims pure functions are cacheable and testable and notes this approach trades a bit of raw speed for long-term maintainability.

AI-written summary · about

  1. 0:00Introduction
  2. 3:47Agenda
  3. 4:10Who is this for
  4. 5:14Function names
  5. 10:46Ideal number of arguments
  6. 12:49Types of arguments
  7. 14:14Linear independence
  8. 15:39Purity
  9. 17:36Cashable
  10. 18:36Self Documenting
  11. 19:18Other Advantages
  12. 20:36SemiPure Function
  13. 21:21Composition
  14. 23:42Functions MapReduce
  15. 25:05Recommendation
  16. 25:24Code Example
  17. 26:09Quick Examples
  18. 26:33Utility Functions
  19. 27:13Conclusion
~/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.