F# 4.0 Design Patterns

· Packt Publishing Ltd
Ebook
318
Pages

About this ebook

Learn how to apply functional F# design patterns to a huge range of programming challenges, and discover a smart route to building better applicationsAbout This BookThis book provides a path if you are coming from imperative and object-oriented paradigmsIt will take you to an intermediate level of functional programming in very practical manner to write enterprise-quality idiomatic F# codeTackle complex computing problems with simple code by fully embracing the functional-first F# paradigmPacked full of practical coding examples to help you master F# programming and author optimal codeWho This Book Is For

This book is for .NET developers, web programmers, C# developers, and F# developers. So, if you have basic experience in F# programming and developing performance-critical applications, then this book is for you.

What You Will LearnAcquire the practical knowledge to use the main functional design patternsRealign some imperative and object-oriented principles under the functional approachDevelop your confidence in building and combining first-order and higher-order functionsLearn to use core language pattern matching effectivelyMake use of native F# algebraic data types in place of custom-built classesRecognize and measure the difference in resource consumption between sequences and materialized data collectionsNavigate and use F# Core libraries with ease by seeing patterns behind specific library functionsMaster writing generic polymorphic codeIn Detail

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.

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, the relationship of which 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 will take a look at the advanced techniques to equip you with everything you need to write flawless code.

Style and approach

This book will teach you how to write F# code in an idiomatic functional-first manner, thereby improving the productivity of F# programmers. This book is ideal for an F# programmer who wants using F# in functional-first way.

About the author

Gene Belitski is an accomplished professional software developer with a passion for functional programming. He is a proud representative of the fourth consecutive generation in a family of engineers. In his professional career Gene was a member of the core development team at Multex.com, a start-up known for bringing Internet and PDF technologies to capital markets. The author also spent a decade with Reuters, owning the application development for the collection and production of Reuters Consensus and Detail Estimates financial data consumed by quantitative hedge funds. Currently with Jet.com Inc., Gene is enjoying hands-on development as a lead of the team building a line of business F# applications for their finance division. He lives with his family on a rare tranquil backstreet of New York City between a park and a beach. In his spare time, Gene plays with code or reads books with his two feline sidekicks – the Turkish Angora siblings Cheri and Musya. You can find Gene online on LinkedIn (https://www.linkedin.com/in/genebelitski) and StackOverflow (http://stackoverflow.com/users/917053/gene-belitski). Gene occasionally blogs at https://infsharpmajor.wordpress.com and https://tech.jet.com. He is one of the founding members of F# Foundation (http://fsharp.org/)

Rate this ebook

Tell us what you think.

Reading information

Smartphones and tablets
Install the Google Play Books app for Android and iPad/iPhone. It syncs automatically with your account and allows you to read online or offline wherever you are.
Laptops and computers
You can listen to audiobooks purchased on Google Play using your computer's web browser.
eReaders and other devices
To read on e-ink devices like Kobo eReaders, you'll need to download a file and transfer it to your device. Follow the detailed Help Center instructions to transfer the files to supported eReaders.