ENGLISH

The Art of Functional Programming

Book information

Publisher
Independently published
Year
2022
ISBN
3000735348, 9783000735349
Language
english
Format
PDF
Filesize
5 MB (4866671 bytes)
Pages
284\205
Time added
2022-10-28 13:23:44

Description

Welcome to The Art of Functional Programming book! Functional programming is a powerful and elegant programming paradigm. Initially only popular among university researchers, it’s gained much traction in the software industry in the last few years. From big companies to start-ups, engineers and managers have realized that functional programming excels at abstraction and composition. Functional programming allows for highly concise solutions with increased safety. This has led to rising demand for software engineers with functional programming skills. This book will help you move your programming skills to the next level. There are tons of programming languages, frameworks, and tools out there - with many more coming in the future. The only way to stay ahead of the game in this vast and quickly changing software industry is to master the fundamentals and principles that cut across programming languages, frameworks, and tools. In the case of functional programming, learning to adopt the functional way of solving problems is much more productive than memorizing how to write functional code in a particular language. This book teaches this functional way of thinking. We’ll also learn many fundamental techniques from programming languages, such as parsing, compilation, and type checking. We’ll also look at examples and exercises that are typically encountered in a programmer’s day-to-day job. Furthermore, an entire chapter is dedicated to applying what we’ve learned to real-world scenarios. In particular, we’ll use functional programming to process collections of data for an e-commerce application and handle the JSON datatype. Here is the summary of the chapters in this book: * In Chapter 1: Introduction, we’ll start the book with an introduction to functional programming. In particular, we’ll see how it can overcome some of the inherent weaknesses of the imperative programming paradigm. We’ll also discuss why functional programming matters to any software engineer. * In Chapter 2: Expressions -- The Building Blocks of Functional Programs, we examine expressions and how to build complex expressions from simpler ones. Three aspects of expressions - syntax, types, and semantics- will be covered. Along the way, we’ll gain a much deeper understanding of how programming languages work, including parsing, type checking, interpretation, and compilation. * In Chapter 3: Building Abstractions with Functions, we’ll get to know lambda calculus—a mathematical model serving as the foundation of all functional programming languages. We’ll learn how to capture computation patterns as functions. Finally, we’ll discuss various techniques for working with functions such as currying, recursion, and higher-order functions. * In Chapter 4: Complex Data Types, we’ll focus on the complex data types typically found in functional programming languages, such as tuples and lists. Furthermore, we’ll use algebraic data types to represent hierarchical data, and pattern matching to extract data from complex data types. * In Chapter 5: Common Computation Patterns, we’ll dive into some of the most common computation patterns, such as map, filter, fold, and zip. These functions capture highly general computation patterns on lists and other data structures that can be reused to formulate many other functions. * In Chapter 6: Dataflow Programming with Functions, we’ll go over dataflow programming, a programming paradigm that emphasizes composing programs from existing components. We’ll learn how functional programming allows us to do dataflow programming elegantly and reap all its benefits. * In Chapter 7: Applying Functional Programming to Various Domains, we’ll apply what we've learned to process collections of data commonly found in mobile and web applications and backend services. Furthermore, we’ll use functional programming to represent and handle JSON. Introduction About This Book A Bite of Functional Programming Why Functional Programming Matters? Required Tools Quiz on Imperative vs. Functional Programming Answers to Quiz on Imperative vs. Functional Programming Expressions – Building Blocks of Functional Programs Functional Programming is All About Expressions Syntax of Expressions Parsing Expressions Types of Expressions Values of Expressions Assign Names to Expressions Programming Challenges Solutions to Programming Challenges Quiz on Expressions Answers to Quiz on Expressions Building Abstractions with Functions Lambda Calculus: Foundation of Functional Programming Function Abstraction and Function Application Use Currying for Function Chaining Recursive Functions General Computation Methods as Higher-Order Functions Programming Challenges Solutions to Programming Challenges Quiz on Functions Answers to Quiz on Functions Compound Data Types Group Data Objects into Tuples Destruct tuples with pattern matching Store Sequences of Data with Lists Declare User-defined Types with Algebraic Data Types Programming Challenges Solutions to Programming Challenges Quiz on Compound Datatypes Answers to Quiz on Compound Datatypes Common Computation Patterns The map Function The filter function The fold function The zip Function Programming Challenges Solutions to Programming Challenges Quiz on Common Computation Patterns Answers to Quiz on Common Computation Patterns Dataflow Programming with Functions List-based Dataflow Programming Stream-based Dataflow Programming Programming Challenges Solutions to Programming Challenges Quiz on Dataflow Programming with Functions Answers to Quiz on Dataflow Programming with Functions Applying Functional Programming in Practice Handle Collections in Data Processing Applications Handle JSON Conclusion Wrap Up Where to Go from Here?

Similar books

Session C11: Ancient Cultural Landscapes in South Europe – their Ecological Setting and Evolution, Session C22: Gardeners from South America, Session S04: Agro-Pastoralism and Early Metallurgy Sessions, Session WS29: The Idea of Enclosure in Recent Iberian Prehistory, Session C88: Rhytmes et causalites des dynamiques de l'anthropisation en Europe entre 6500 ET 500 BC: Hypotheses socio-culturelles et/ou climatiques: Proceedings of the XV UISPP World Congress (Lisbon 4-9 September 2006) / Actes du XV Congrès Mondial (Lisbonne 4-9 Septembre 2006) Vol.36

2010 · PDF

THE BRITISH ARMY IN INDIA: ITS PRESERVATION BY AN APPROPRIATE CLOTHING, HOUSING, LOCATING, RECREATIVE EMPLOYMENT, AND HOPEFUL ENCOURAGEMENT OF THE TROOPS. with AN APPENDIX ON INDIA : THE CLIMATE OP ITS HILLS ; THE DEVELOPMENT OF ITS RESODRCBS, INDUSTRY, AND ARTS ; THE ADMINISTRATION OF JUSTICE ; THE BLACK ACT ; THE PROGRESS OF CHRISTIANITY ; THE TRAFFIC IN OPIUM ; THE VALUE OF INDIA ; PERMANENT CAUSES OF DISAFFECTION, AND OF THE RECENT REBELLION ; THE TRADITIONARY POLICY; MISGOVERNMENT BY NATIVE RULERS ; ANNEXATIONS OF THEIR TERRITORY, ETC.

1858 · PDF

Idries Shah 27 Books Collection : A Perfumed Scorpion, A Veiled Gazelle, Caravan of Dreams, Darkest England, Destination Mecca, Evenings with Idries Shah, Knowing How to Know, Learning How to Learn, Letters and Lectures of Idries Shah, Neglected aspects of Sufi study, Observations, Oriental Magic, Reflections, Seeker after Truth, Special Illumination, Special Problems in the study of Sufi ideas, Sufi thought and action, Tales of the Dervishes, The Dermis Probe, The Elephant in the Dark, The Englishman Handbook, Idries Shah Antology, The Magic Monastery, The natives are restless, wisdom of the Idiots PDF.

2022 · PDF

The travels of Capts. Lewis and Clarke from St. Louis, by way of the Missouri and Columbia rivers, to the Pacific ocean; performed in the years 1804, 1805 & 1806, by order of the government of the United States. Containing delineations of the manners, customs, religion, &c. of the Indians, comp. from various authentic sources, and original documents, and a summary of the Statistical view of the Indian nations, from the official communication of Meriwether Lewis. Illustrated with a map of the country, inhabited by the western tribes of Indians

1809 · PDF