Redux: Writing a Todo List Reducer (Adding a Todo)
lessonDuration 4m 11s
Learn how to implement adding a todo in a todo list application reducer.
Browse
Find courses, lessons, articles, talks, and podcasts.
7,176 resources
Showing 2,617–2,640 · Page 110 of 299
lessonDuration 4m 11s
Learn how to implement adding a todo in a todo list application reducer.
lessonDuration 2m 38s
Learn how to use Object.assign() and the spread operator proposed for ES7 to avoid mutating objects.
lessonDuration 3m 54s
Learn how to avoid mutating arrays using concat(), slice(), and the ES6 array spread operator.
lessonDuration 2m 18s
Before you use the React Redux bindings, learn how to create a complete simple application with just React and Redux.
lessonDuration 2m 28s
Learn how to build a reasonable approximation of the Redux Store in 20 lines. No magic!
lessonDuration 3m 9s
We will learn about the Redux Store and demonstrate how its three methods let us implement a counter application.
lessonDuration 2m 36s
You will learn how to write the reducer for the counter application in a test driven development way, as well as the conventions in implementing reducers.
lessonDuration 1m 54s
There is something in common between all Redux applications. They have to implement the reducer: a function that calculates the next state tree based on the previous state tree and the action being dispatched. We are presenting a “complete” example in the code window below. Feel free to click around and explore! We will be explaining what everything does during this course.
lessonDuration 1m 19s
Some functions are more predictable than others. You will learn the difference between the pure and impure functions. Understanding this difference is essential for writing Redux applications.
lessonDuration 2m 54s
You will learn how Redux asks you to describe every change in the application state as a plain JavaScript object called “action”. We are presenting a “complete” example in the code window below. Feel free to click around and explore! We will be explaining what everything does during this course.
lessonDuration 2m 11s
How is Redux different from Backbone or Flux? Learn the first principle of Redux—the single immutable state tree. We are presenting a “complete” example in the code window below. Feel free to click around and explore! We will be explaining what everything does during this course.
lessonDuration 1m 14sFree
In this lesson, we look at how to create resizable elements with CSS resize. You can also constrain resizing in horizontal and vertical directions.
lessonDuration 3m 54s
In this lesson we cover all the details of how to sort a list of items using **[TypeScript](/q/typescript)**. There are a few things that will catch beginner developers off guard, such as the `.sort` method mutating your array, and how the `.sort` method doesn’t sort numbers how you’d expect. You'll learn these gotcha’s and how to work around them. We’ll also present a few tricks to make your sort logic more readable and maintainable using **TypeScript**.
lessonDuration 6m 21s
The maximum subarray problem is one of the nicest examples of dynamic programming application. In this lesson we cover an example of how this problem might be presented and what your chain of thought should be to tackle this problem efficiently.
lessonDuration 5m 47s
The median maintenance problem is a common programming challenge presented in software engineering job interviews. In this lesson we cover an example of how this problem might be presented and what your chain of thought should be to tackle this problem efficiently.
lessonDuration 4m
How can you most efficiently maintain the lowest value in a list of items. How about maintaining the largest value? In this lesson we cover a naïve solution to this problem followed by an efficient solution that utilizes a data structure we have already covered before.
lessonDuration 2m 28s
Once you are familiar with the Heap data structure, a number of programming challenges can magically become super simple. Sorting is just one of those challenges. In this lesson we cover the heap sort algorithm, why is it called *heap* sort and how to implement it using JavaScript / TypeScript.
lessonDuration 3m 26s
A balanced binary tree is something that is used very commonly in analysis of computer science algorithms. In this lesson we cover how to determine the maximum number of items it can accommodate. We follow this with a discussion on the maximum height of a binary tree given we need to accommodate `n` items.
lessonDuration 11m 43s
Heap is a data structure that can fundamentally change the performance of fairly common algorithms in Computer Science. The heap data structure is called a heap because it satisfies the heap property. The heap property states, that if P is a parent node of C, then the value of node P is less than the value of node C. In this lesson we discuss the key operations of the Heap data structure along with their performance. We then implement the data structure using TypeScript / JavaScript.
lessonDuration 3m 58s
Shuffling is a common process used with randomizing the order for a deck of cards. The key property for a perfect shuffle is that each item should have an equal probability to end up in any given index. In this lesson we discuss the concept behind the simple modern fisher yates shuffle and implement it in JavaScript / TypeScript.
lessonDuration 3m 50s
A common interview question is to write a function that converts a string into an integer e.g. `"123"` => `123`. This function is commonly called `atoi` because we are converting an ASCII string into an integer. In this lesson we cover the proper way to do this in JavaScript which is `parseInt` along with implementing it using basic ascii math.
lessonDuration 3m 36s
In a doubly linked list each node in the list stores the contents of the node and a pointer or reference to the next and the previous nodes in the list. It is one of the simplest way to store a collection of items. In this lesson we cover how to create a doubly linked list data structure and how to use its strengths to implement an O(1) FIFO queue + O(1) LIFO stack. We also demonstrate why one would use it over a singly linked list. We also cover how to approach authoring such data structures.
lessonDuration 4m 15s
In a singly linked list each node in the list stores the contents of the node and a reference (or pointer in some languages) to the next node in the list. It is one of the simplest way to store a collection of items. In this lesson we cover how to create a linked list data structure and how to use its strengths to implement an O(1) FIFO queue.
lessonDuration 3m 34s
A queue is an abstract data type that serves as a collection of elements, with two principal operations: enqueue, which adds an element to the collection, and dequeue, which removes the earliest added element. The order in which elements are dequeued is `First In First Out` aka. `FIFO`. The term `queue` takes it name from the real world queues e.g. "a queue at the ticket counter". A good target is to implement these operations with a time complexity of O(1). In this lesson we discuss how to implement it using JavaScript / TypeScript.