Skip to main content
  • Book
  • © 2018

Stylish F#

Crafting Elegant Functional Code for .NET and .NET Core

Apress

Authors:

  • The most practical guide yet to succeeding with F# in the real world
  • Written for any developer who wants to take the F# programming experience beyond syntax and into design
  • Explains how all design is compromise and avoids purism
  • Provides supporting visuals to facilitate learning, and offers examples and supportive context for every assertion

Buy it now

Buying options

eBook USD 44.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Other ways to access

This is a preview of subscription content, log in via an institution to check for access.

Table of contents (14 chapters)

  1. Front Matter

    Pages i-xxii
  2. The Sense of Style

    • Kit Eason
    Pages 1-9
  3. Designing Functions Using Types

    • Kit Eason
    Pages 11-28
  4. Missing Data

    • Kit Eason
    Pages 29-59
  5. Immutability and Mutation

    • Kit Eason
    Pages 99-118
  6. Pattern Matching

    • Kit Eason
    Pages 119-155
  7. Record Types

    • Kit Eason
    Pages 157-182
  8. Classes

    • Kit Eason
    Pages 183-227
  9. Programming with Functions

    • Kit Eason
    Pages 229-250
  10. Asynchronous and Parallel Programming

    • Kit Eason
    Pages 251-281
  11. Railway Oriented Programming

    • Kit Eason
    Pages 283-307
  12. Performance

    • Kit Eason
    Pages 309-350
  13. Layout and Naming

    • Kit Eason
    Pages 351-376
  14. Summary

    • Kit Eason
    Pages 377-384
  15. Back Matter

    Pages 385-396

About this book

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.

Stylish F# 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'll Learn

  • Know why, when, and how to code in immutable style
  • Use collection functions, piping, and function composition to build working software quickly
  • Be aware of the techniques available to bring error handling into the mainstream of program logic
  • Optimize F# code for maximum performance
  • Identify and implement opportunities to use function injection to improve program design
  • Appreciate the methods available to handle unknown data values
  • Understand asynchronous and parallel programming in F#, and how it differs from C# asynchronous programming


Who This Book Is For

Any developer who writes F# code and wants to write it better

Authors and Affiliations

  • Farnham, Surrey, UK

    Kit Eason

About the author

Kit Eason is a software developer and educator with more than 20 years of experience. He has been programming in F# since 2011 and is employed at Perpetuum Ltd., working on an extensive network of energy-harvesting vibration sensors fitted to railway rolling stock. Kit is an avid F# user who is passionate about teaching others. He has contributed to several publications, as well as to the books Beginning F# and F# Deep Dives, both published by Apress. He often teaches and presents on F# and his popular videos appear on Lynda.com and YouTube. 

Bibliographic Information

Buy it now

Buying options

eBook USD 44.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Other ways to access