F# 4.0 Design Patterns
- Length: 301 pages
- Edition: 1
- Language: English
- Publisher: Packt Publishing
- Publication Date: 2016-12-06
- ISBN-10: 1785884727
- ISBN-13: 9781785884726
- Sales Rank: #1264814 (See Top 100 Books)
Key Features
- This book provides a path if you are coming from imperative and object-oriented paradigms
- It will take you to an intermediate level of functional programming in very practical manner to write enterprise-quality idiomatic F# code
- Tackle complex computing problems with simple code by fully embracing the functional-first F# paradigm
- Packed full of practical coding examples to help you master F# programming and author optimal code
Book Description
Following design patterns is a well-known approach to writing better applications, which 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# paradigms. It will also help you harnessing this powerful instrument to write succinct, bug-free, and cross-platform code.
F# 4.0 Design Patterns will start off by helping you develop a functional way of thinking. We will show you how beneficial the functional-first paradigm is and how to use it to get the optimum results. The book will help you acquire the practical knowledge of the main functional design patterns, which relationship with the traditional “Gang of Four” set is not straightforward.
We will take you through pattern matching, immutable data types, and sequences in F#. We will also uncover advanced functional patterns, look at polymorphic functions, typical data crunching techniques, adjusting code through augmentation and generalization. Lastly, we take a look at the advanced techniques to equip you with everything you may need to write flawless code.
What you will learn
- Acquire the practical knowledge to use the main functional design patterns
- Realign some imperative and object-oriented principles under the functional approach
- Develop your confidence in building and combining first-order and higher-order functions
- Learn to use core language pattern matching effectively
- Build custom abstract data types off embedded ones
- Recognize and measure the difference in resource consumption between sequences and materialized data structures
- Navigate and use F# Core libraries with ease by seeing patterns behind specific library functions
- Master writing generic polymorphic code
Table of Contents
Chapter 1. Begin Thinking Functionally
Chapter 2. Dissecting F# Origins and Design
Chapter 3. Basic Functions
Chapter 4. Basic Pattern Matching
Chapter 5. Algebraic Data Types
Chapter 6. Sequences – The Core of Data Processing Patterns
Chapter 7. Advanced Techniques: Functions Revisited
Chapter 8. Data Crunching – Data Transformation Patterns
Chapter 9. More Data Crunching
Chapter 10. Type Augmentation and Generic Computations
Chapter 11. F# Expert Techniques
Chapter 12. F# and OOP Principles/Design Patterns
Chapter 13. Troubleshooting Functional Code