Learning Functional JavaScript

A deep dive into functional programming with practical examples from both server and client-side JavaScript code
2.6 (12 ratings) Instead of using a simple lifetime average, Udemy calculates a
course's star rating by considering a number of different factors
such as the number of ratings, the age of ratings, and the
likelihood of fraudulent ratings.
133 students enrolled
$19
$75
75% off
Take This Course
  • Lectures 22
  • Length 2.5 hours
  • Skill Level Beginner Level
  • Languages English
  • Includes Lifetime access
    30 day money back guarantee!
    Available on iOS and Android
    Certificate of Completion
Wishlisted Wishlist

How taking a course works

Discover

Find online courses made by experts from around the world.

Learn

Take your courses with you and learn anywhere, anytime.

Master

Learn and practice real-world skills and achieve your goals.

About This Course

Published 8/2015 English

Course Description

Along with being tried and trusted, functional programming is one of the biggest current trends in programming. Its focus on side-effect free code, unadorned data manipulation and simple structures promote a coding style that reduces bugs, and lifts the level of abstraction to a point where we can achieve more with less code. All topics discussed in the course can be used to various degrees in any code-base – even if your daily work is with a huge object-oriented project, the techniques discussed will certainly be useful.

Learning Functional JavaScript will show you how to build powerful abstractions by combining many small and simple functions, and how to strip your data modeling to the necessities. We start by investigating the power of higher-order functions by diving right into the implementation of the sample application. We then elaborate by partially applying and composing functions before we end up with lazy evaluation to boost our abstraction power and performance.

Right from the start we'll dive into the implementation of a text-based adventure game. We will also see how function composition is used to solve specific problems in this domain by combining highly generic functions. We learn function programming techniques that help improve asynchronous code used to load the game from disk.

Later we'll become acquainted with a few other examples as well, as we learn about designing applications around an immutable data structure. And we end our journey with a discussion of recursion and how it relates to lazy data structures, and show examples of using previously discussed techniques on infinite data sets.

At the end of the course, you'll be proficient with the basic functional programming techniques and will be able to optimize your JavaScript code by applying them. Learning Functional JavaScript teaches you all the basic functional programming techniques and shows you how to apply them to JavaScript, and how they can be used to solve highly practical problems.

About The Author

Christian Johansen is a passionate programmer working with Oslo-based consultancy Kodemaker. He's a man with an eclectic background, having worked with everything from Unix systems tuning and ops to various server-side applications and JavaScript heavy frontend development. Christian is the author of Test-Driven JavaScript Development, and he maintains several open-source projects, including the JavaScript test-framework BusterJS and the popular mocking framework SinonJS. Functional programming is a long-standing interest, most recently practiced with Clojure and JavaScript.

What are the requirements?

  • Knowledge about basic JavaScript concepts such as JavaScript objects and functions is a prerequisite.

What am I going to get from this course?

  • Explore higher-order functions, what they are and how to work with them
  • Solve issues related to asynchronous methods effectively by using promises
  • Use a library such as immutableJS to implement immutability
  • Implement immutability with Facebook’s React for super fast user interfaces
  • Combine a “functional core” to build a web application where most of the code is functional
  • Make efficient use of recursion with big data sets to make code easier to visualize

What is the target audience?

  • Learning Functional JavaScript is for any JavaScript programmer (both backend and frontend) who has a firm grasp of the language but is looking to broaden their skillset. No prior experience with functional programming concepts is necessary.

What you get with this course?

Not for you? No problem.
30 day money back guarantee.

Forever yours.
Lifetime access.

Learn on the go.
Desktop, iOS and Android.

Get rewarded.
Certificate of completion.

Curriculum

Section 1: Introduction to Functional Programming
03:54

Understand the scope of the course and get a feeling of what will be covered and when.

04:07

Understand the basic premise of functional programming and how it is helpful.

03:33

Ease into functional programming with some important core concepts.

Section 2: Higher Order Functions
02:41

Define the concept of "first-class" functions.

08:31

Preparing the AST for building the view.

04:39

Applying a changeset to a user.

Section 3: Functional Asynchrony
05:14

Creating new users.

06:33

Applying iterator methods on async operations.

10:33

Parsing room files with promises.

Section 4: Function Composition
07:04

Loading and parsing all rooms at boot. c

08:44

Loading and parsing rooms with currying instead of partial application.

07:01

Finding a specific room.

Section 5: Immutability
06:45

Explain the difference between mutable and immutable types.

08:59

Developing a Minesweeper data model.

06:00

Adding undo to Minesweeper.

06:59

Investigating how immutability can boost performance.

Section 6: Recursion
07:24

Introducing recursion.

07:15

Implementing the adventure game parser.

04:47

Eliminating recursion without losing the mental model.

Section 7: Laziness
08:46

Lazily evaluating a map and a filter.

05:45

Generalizing lazy sequences.

05:11

Working with infinite sequences.

Students Who Viewed This Course Also Viewed

  • Loading
  • Loading
  • Loading

Instructor Biography

Packt Publishing, Tech Knowledge in Motion

Over the past ten years Packt Publishing has developed an extensive catalogue of over 2000 books, e-books and video courses aimed at keeping IT professionals ahead of the technology curve. From new takes on established technologies through to the latest guides on emerging platforms, topics and trends – Packt's focus has always been on giving our customers the working knowledge they need to get the job done. Our Udemy courses continue this tradition, bringing you comprehensive yet concise video courses straight from the experts.

Ready to start learning?
Take This Course