Journal Club - Building Scalable Apps with Aardvark.Media

Step by Step walkthrough of Journal Club Presentation

Posted by Thomas Ortner on 2018-11-28

Journal Club - Building Scalable Apps with Aardvark.Media

Functional Programming

Why use functional programming? Why use FSharp?

Scott Wlaschin: "Fsharp ... is an excellent choice for enterprise development. Here are five good reasons why you should consider using F# for your next project."

  1. Conciseness
  2. Convenience
  3. Correctness
  4. Concurrency
  5. Completeness

We will pick some of Scott's examples to explain functional principles and the corresponding of F# notation. For details please refer to the link https://fsharpforfunandprofit.com/why-use-fsharp/ or Scott's blog in general.

//function
let timesTwo a = a * 2

//record type
type Person = {
  firstName : string
  lastName : string
}

//union type
type Employee =
  | Worker  of Person
  | Manager of list<Person>