Building a Trading App (Xamarin.Forms & F#)

Intro This is my fourth post on my journey of building a trading app using F# and Xamarin.Forms. In my last post, I brain-dumped XAML and F# for selling shares of stock. In this post, I will brain-dump the syntax for buying shares of stock for both the UI and viewmodels. Solution Explorer I modeled …

F#: Type Test Pattern

In this video, I document my understanding of F#'s Type Test Pattern: ¬† Here's a snippet: open System let requestFromIO number = try let result = 100 / number Some "Operation Suceeded" with | ":?" DivideByZeroException -> Some "DivideByZeroException" | ":?" AccessViolationException -> Some "AccessViolationException" | _ -> None let result = requestFromIO 0 Here's …