13 Web programming

This chapter covers

  • The web and its relationship with functional programming
  • Web programming on .NET and F#
  • Server-side web development in F#
  • Client-side web development with Elmish
  • The SAFE Stack

This chapter will tie together even more of what we’ve seen so far, bringing both the functional paradigm and core abstractions, such as Task-based asynchronous programming and Options to enable web programming that naturally fits with F#.

13.1 The web and functional programming

This section briefly summarizes HTTP and explains why (although this may surprise you) FP is a natural fit for web programming. One of the fundamental underpinnings of the web today was the invention of the Hypertext Transfer Protocol (HTTP), which provided ...

Get F# in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.