~/talk

[Eng Sub]Is it Okay to Pursue Functional Programming on Frontend?

Talkat JSConf Korea 2022 · 2022-09-16..09-17· [frontend-architecture, javascript]
links:none on file
name:Minsu Kim
links:none on file
slides:none on file

Claim: functional programming is practical on the frontend when focused on concrete abstractions and tooling. The team uses fp-ts and implements Option/Either/Task, pipe, and match/chain to turn eight-form inputs and their 16 states into composable validators. They ship a production custom hook called useStateWithValidator and a StateValidator object that centralizes onChange and manual submit checks, cutting per-field boilerplate. Tradeoffs: clearer types and predictable error paths versus steep onboarding and sparse, sometimes deprecated documentation.

AI-written summary · about

  1. 0:00Functional programming intro
  2. 1:38Pure functions vs side effects
  3. 3:05Choosing fp-ts
  4. 3:25Option and Either types
  5. 7:49Task and TaskEither for async
  6. 9:15Simplifying with pipe
  7. 10:21Map chain and match explained
  8. 13:57Form validation with fp-ts
  9. 25:26Custom hook for state
  10. 30:43Upsides and downsides of the approach
  11. 33:19Conclusion and Q&A
~/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.