Skip to content

PacktPublishing/Fsharp-4.0-Design-Patterns

Repository files navigation

#F# 4.0 Design Patterns This is the code repository for F# 4.0 Design Patterns By Packt. It contains all the supporting project files necessary to work through the book from start to finish.

#About the Book Following design patterns is a well-known approach to writing better programs that captures and reuses high-level abstractions that are common in many applications. This book will encourage you to develop an idiomatic F# coding skillset by fully embracing the functional-first F# paradigm. It will also help you harness this powerful instrument to write succinct, bug-free, and cross-platform code.

##Instructions and Navigation All of the code is organized into folders. Each folder starts with number followed by the application name. For example, Chapter02.

You will see code something similar to the following:

type IMyInterface =
    abstract member DoIt: unit -> unit
    
type MyImpl() =
    interface IMyInterface with
        member __.DoIt() = printfn "Did it!"
        
MyImpl().DoIt() // Error: member 'DoIt' is not defined

(MyImpl() :> IMyInterface).DoIt()

// ... but
let doit (doer: IMyInterface) =
    doer.DoIt()

doit (MyImpl())

##Software and Hardware List

Chapter Software required OS required
1 to 13 LINQPad (http://www.linqpad.net/) Windows/ MAC OS
1 to 13 .NET Fiddle website https://dotnetfiddle.net/ Windows/ MAC/ Linux

##Related F# Products:

Suggestions and Feedback

[Click here] (https://docs.google.com/forms/d/e/1FAIpQLSe5qwunkGf6PUvzPirPDtuy1Du5Rlzew23UBp2S-P3wB-GcwQ/viewform) if you have any feedback or suggestions.

About

Code repository for F# 4.0 Design Patterns, published by Packt

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •