Du er ikke logget ind
Beskrivelse
Why just get by in F# when you can program in style. This book goes beyond syntax and into design. It provides F# developers with best practices, guidance, and advice to write beautiful, maintainable, and correct code. This second edition, fully updated for .NET 6 and F# 6, includes all new coverage of anonymous records, the task {} computation expression, and the relationship between types and modules. Stylish F# 6 covers every design decision that a developer makes in constructing F# programs, helping you make the most educated and valuable design choices at every stage of code development. You will learn about the design of types and function signatures, the benefits of immutability, and the uses of partial function application. You will understand best practices for writing APIs to be used by F#, C#, and other languages. Each carefully vetted design choice is supported with compelling examples, illustrations, and rationales. What You Will Learn Know why, when, and how to code in immutable styleUse collection functions, piping, and function composition to build working software quicklyBe aware of the techniques available to bring error handling into the mainstream of program logicOptimize F# code for maximum performanceIdentify and implement opportunities to use function injection to improve program designAppreciate the methods available to handle unknown data valuesUnderstand asynchronous and parallel programming in F#, and how it differs from C# asynchronous programmingExploit records and anonymous records as low-overhead, easily comparable containers for structured data Who This Book Is ForAny developer who writes F# code and wants to write it better