- JavaScript:Functional Programming for JavaScript Developers
- Ved Antani Simon Timms Dan Mantyla
- 1099字
- 2025-02-25 21:39:52
Preface
Functional programming is a style that emphasizes and enables smarter code that minimizes complexity and increases modularity. It's a way of writing cleaner code through clever ways of mutating, combining and using functions. And JavaScript provides an excellent medium for this approach. JavaScript, the internet's scripting language, is actually a functional language at heart. By learning how to expose JavaScript's true identity as a functional language, we can implement web apps that are more powerful, easier to maintain and more reliable. JavaScript's odd quirks and pitfalls will suddenly become clear and the language as a whole will make infinitely more sense. Learning how to use functional programming will make you a better programmer for life.
This course is a guide for both new and experienced JavaScript developers who are interested in learning functional programming. With a focus on the progression of functional programming techniques and styles in JavaScript, detailed information of JavaScript libraries, this course will help you to write smarter code and become a better programmer.
What this learning path covers
Module 1, Mastering JavaScript, provides a detailed overview of the language fundamentals and some of the modern tools and libraries – like jQuery, underscore.js and jasmine.
Module 2, Mastering JavaScript Design Patterns- Second Edition, is divided into two main parts. The first part covers the classical design patterns, which are found in the GoF book whereas the second part looks at patterns, which are either not covered in the GoF book or ones that are more specific to JavaScript.
Module 3, Functional Programming in JavaScript, explores the core concepts of functional programming common to all functional languages, with examples of their use in JavaScript.
What you need for this learning path
All the examples in this course can be run on any of the modern browsers. For the last chapter from first module, you will need Node.js. You will need the following to run the examples and samples from this course:
- A computer with Windows 7 or higher, Linux or Mac OSX installed
- Latest version of Google Chrome or Mozilla Firefox browser
- A texteditor of your choice. Sublime Text, Vi, Atom or Notepad++ would be ideal. The choice is entirely yours.
There are standalone JavaScript engines written in C++ (V8) and Java (Rhino) and these are used to power all sorts of tools such as nodejs, couchdb and even elasticsearch. These patterns can be applied to any of these technologies.
Who this learning path is for
If you are a JavaScript developer interested in learning functional programming, looking for the quantum leap towards mastering the JavaScript language, or just want to become a better programmer in general, then this course is ideal for you. This guide is aimed at programmers, involved in developing reactive front-end apps, server-side apps that wrangle with reliability and concurrency, and everything in between.
Reader feedback
Feedback from our readers is always welcome. Let us know what you think about this course—what you liked or disliked. Reader feedback is important for us as it helps us develop titles that you will really get the most out of.
To send us general feedback, simply e-mail <feedback@packtpub.com>
, and mention the course's title in the subject of your message.
If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide at www.packtpub.com/authors.
Customer support
Now that you are the proud owner of a Packtproduct, we have a number of things to help you to get the most from your purchase.
Downloading theexample code
You can download the example code files for this course from your account at http://www.packtpub.com. If you purchased this course elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you.
You can download the code files by following these steps:
- Log in or register to our website using your e-mail address and password.
- Hover the mouse pointer on the SUPPORT tab at the top.
- Click on Code Downloads & Errata.
- Enterthe name of the course in the Search box.
- Select the course for which you're looking to download the code files.
- Choose from the drop-down menu where you purchased this course from.
- Click on Code Download.
You can also download the code files by clicking on theCode Filesbutton on the course's webpage at the Packt Publishing website. This page can be accessed by entering the course's name in the Search box. Please note that you need to be logged into your Packt account.
Once the file is downloaded, please make sure that you unzip or extract the folder using the latest version of:
- WinRAR / 7-Zip for Windows
- Zipeg / iZip / UnRarX for Mac
- 7-Zip / PeaZip for Linux
The code bundle for the course is also hosted on GitHub at https://github.com/PacktPublishing/JavaScript--Functional-Programming-for-JavaScript-Developers.We also have other code bundles from our rich catalog of books, courses and videos available at https://github.com/PacktPublishing/. Check them out!
Errata
Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our courses—maybe a mistake in the text or the code—we would be grateful if you could report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this course. If you find any errata, please report them by visiting http://www.packtpub.com/submit-errata, selecting your course, clicking on the Errata Submission Form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded to our website or added to any list of existing errata under the Errata section of that title.
To view the previously submitted errata, go to https://www.packtpub.com/books/content/support and enter the name of the coursein the search field. The required information will appear under the Errata section.
Piracy
Piracy of copyrighted material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works in any form on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.
Please contact us at <copyright@packtpub.com>
with a link to the suspected pirated material.
We appreciate your help in protecting our authors and our ability to bring you valuable content.
Questions
If you have a problem with any aspect of this course, you can contact us at <questions@packtpub.com>
, and we will do our best to address the problem.