Functional Programming in JavaScript (Paperback)
內容描述
As web developers build increasingly complex applications in JavaScript, the code base for these projects can become exponentially larger and harder to maintain. The results: Application performance suffers, and readability and extensibility are severely compromised. For applications like these, Functional Programming provides a saner approach, allowing users to write elegant, readable code that raises the level of abstraction while being less prone to errors. Although not a "pure" functional language, JavaScript's native functional capabilities unlock access to proven functional programming techniques and practices. 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, the book shows how to apply functional programming to real-life development tasks. It includes insightful comparisons to object-oriented or imperative programming, allowing readers to ease into functional design. Moreover, they'll gain a repertoire of techniques including function chaining and pipelining, recursion, currying, binding, functional composition, lazy evaluation, fluent error handling, and memoization, By the end of the book, they'll think about application design in a fresh new way. Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.