~/talk

“Using Functional Programming Patterns..."

Talkat CppCon 2017 · 2017-09-24..09-29· [web-platform]
links:none on file
links:none on file
slides:none on file

Shows a functional design that replaces regex-and-if routing with pure functions: paths as URI→optional<params>, handlers as (request, params)→response, routes as request→optional<response>, and middleware as handler→handler. Built on C++ with examples referencing Boost/Asio + Beast or CppRestSdk, the prototype keeps type information (no erasure), generates docs and sample routes, and is decoupled from transport and testable without DI. Four-route demo compares manual 30-line/8-branch code to a 29-line, composable routes design with type-safety that demonstrably works.

AI-written summary · about

  1. 0:00Introduction
  2. 1:45Manual implementation challenges
  3. 6:34Aspect-oriented approach
  4. 16:13Functional programming concepts
  5. 19:37Defining the path
  6. 22:36The router concept
  7. 26:57Middleware implementation
  8. 29:36API benefits and design
  9. 32:30Testing and composition
  10. 35:44The DRY principle
  11. 41:30Key takeaways and conclusion
  12. 44:48Q&A session
~/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.