
Functional Programming in JavaScript
How to improve your JavaScript programs using functional techniques
- 272 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
Functional Programming in JavaScript
How to improve your JavaScript programs using functional techniques
About this book
Summary Functional Programming in JavaScript teaches JavaScript developers functional techniques that will improve extensibility, modularity, reusability, testability, and performance. Through concrete examples and jargon-free explanations, this book teaches you how to apply functional programming to real-life development tasksPurchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications. About the Technology In complex web applications, the low-level details of your JavaScript code can obscure the workings of the system as a whole. As a coding style, functional programming (FP) promotes loosely coupled relationships among the components of your application, making the big picture easier to design, communicate, and maintain. About the Book Functional Programming in JavaScript teaches you techniques to improve your web applications - their extensibility, modularity, reusability, and testability, as well as their performance. This easy-to-read book uses concrete examples and clear explanations to show you how to use functional programming in real life. If you're new to functional programming, you'll appreciate this guide's many insightful comparisons to imperative or object-oriented programming that help you understand functional design. By the end, you'll think about application design in a fresh new way, and you may even grow to appreciate monads! What's Inside
- High-value FP techniques for real-world uses
- Using FP where it makes the most sense
- Separating the logic of your system from implementation details
- FP-style error handling, testing, and debugging
- All code samples use JavaScript ES6 (ES 2015)
About the Reader
Written for developers with a solid grasp of JavaScript fundamentals and web application design.
About the Author
Luis Atencio is a software engineer and architect building enterprise applications in Java, PHP, and JavaScript.
Table of Contents
PART 1 THINK FUNCTIONALLY
- Becoming functional
- Higher-order JavaScript
PART 2 GET FUNCTIONAL
- Few data structures, many operations
- Toward modular, reusable code
- Design patterns against complexity
PART 3 ENHANCING YOUR FUNCTIONAL SKILLS
- Bulletproofing your code
- Functional optimizations
- Managing asynchronous events and data
Tools to learn more effectively

Saving Books

Keyword Search

Annotating Text

Listen to it instead
Information
Part 1. Think functionally
Chapter 1. Becoming functional
- Thinking in functional terms
- Learning the what and why of functional programming
- Understanding the principles of immutability and pure functions
- Functional programming techniques and their impact on overall design
OO makes code understandable by encapsulating moving parts.FP makes code understandable by minimizing moving parts.Michael Feathers (Twitter)
- Extensibilityâ Do I constantly refactor my code to support additional functionality?
- Easy to modularizeâ If I change one file, is another file affected?
- Reusabilityâ Is there a lot of duplication?
- Testabilityâ Do I struggle to unit test my functions?
- Easy to reason aboutâ Is my code unstructured and hard to follow?
1.1. Can functional programming help?
1.2. What is functional programming?
Table of contents
- Copyright
- Brief Table of Contents
- Table of Contents
- Preface
- Acknowledgments
- About this Book
- Part 1. Think functionally
- Part 2. Get functional
- Part 3. Enhancing your functional skills
- JavaScript libraries used in this book
- Index
- List of Figures
- List of Tables
- List of Listings
Frequently asked questions
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app