Explore the functional programming paradigm and the different techniques for developing better algorithms, writing more concise code, and performing seamless testing
Key FeaturesExplore this second edition updated to cover features like async functions and transducers, as well as functional reactive programmingEnhance your functional programming (FP) skills to build web and server apps using JavaScriptUse FP to enhance the modularity, reusability, and performance of appsBook DescriptionFunctional programming is a paradigm for developing software with better performance. It helps you write concise and testable code. To help you take your programming skills to the next level, this comprehensive book will assist you in harnessing the capabilities of functional programming with JavaScript and writing highly maintainable and testable web and server apps using functional JavaScript.
This second edition is updated and improved to cover features such as transducers, lenses, prisms and various other concepts to help you write efficient programs. By focusing on functional programming, you'll not only start to write but also to test pure functions, and reduce side effects. The book also specifically allows you to discover techniques for simplifying code and applying recursion for loopless coding. Gradually, you'll understand how to achieve immutability, implement design patterns, and work with data types for your application, before going on to learn functional reactive programming to handle complex events in your app. Finally, the book will take you through the design patterns that are relevant to functional programming.
By the end of this book, you'll have developed your JavaScript skills and have gained knowledge of the essential functional programming techniques to program effectively.
What you will learnSimplify JavaScript coding using function composition, pipelining, chaining, and transducingUse declarative coding as opposed to imperative coding to write clean JavaScript codeCreate more reliable code with closures and immutable dataApply practical solutions to complex programming problems using recursionImprove your functional code using data types, type checking, and immutabilityUnderstand advanced functional programming concepts such as lenses and prisms for data accessWho this book is forThis book is for JavaScript developers who want to enhance their programming skills and build efficient web applications. Frontend and backend developers who use various JavaScript frameworks and libraries like React, Angular, or Node.js will also find the book helpful. Working knowledge of ES2019 is required to grasp the concepts covered in the book easily.
Table of ContentsBecoming Functional - Several QuestionsThinking Functionally - A First ExampleStarting Out with Functions - A Core ConceptBehaving Properly - Pure FunctionsProgramming Declaratively - A Better StyleProducing Functions - Higher-Order FunctionsTransforming Functions - Currying and Partial ApplicationConnecting Functions - Pipelining and CompositionDesigning Functions - RecursionEnsuring Purity - ImmutabilityImplementing Design Patterns - The Functional WayBuilding Better Containers - Functional Data Types
I'm not a great writer, but since there are no reviews yet I decided to write something here (although the older print from 2017 is highly reviewed). The author deserves the recognition. It is obvious the author has a deep understanding of the language and the use cases for functional programming concepts.
This book is magnificent. If you're interested in functional programming, and you have some JS experience, this book is THE book to start with. Yes, the book is specifically targeted towards JS developers, but I believe many of the concepts are applicable in other languages.
Rest assured, when you've read this book you will be a better programmer. What are you waiting for? Read it!
I read this to become better at JavaScript. Javascript is the world's most popular programming language. Need to be good at it
Functional programming blew my mind about a completely different paradigm that I didn't understand. The end bit was a bit too theoretical for me. Functional programming is something all devs need to grasp this fully. If you do not know about currying, declarative programming then read this book