Introduction to Prototypal Inheritance in JavaScript
lessonDuration 1m 6s
This video is designed to give you an idea of the topics we will be covering in this course.
Browse
Find courses, lessons, articles, talks, and podcasts.
7,176 resources
Showing 5,233–5,256 · Page 219 of 299
lessonDuration 1m 6s
This video is designed to give you an idea of the topics we will be covering in this course.
lessonDuration 1m 32s
Do you get lost when working with functions and the new keyword? Prototypal inheritance can be completely replicated without either of those two concepts. In this lesson we will convert an object created from the new keyword against a function, to simply objects linked to other objects.
lessonDuration 7m 24sFree
Use can use colour and styles to make it easy to spot errors and group common functionality into blocks when viewing a NodeJS console. This lesson will show how to enhance an Express application to highlight errors, display setup issues to developers and group together output using the color npm package, both in the console and Papertrail which is a hosted logging service. We use the [Colors package](https://github.com/Marak/colors.js) in this lesson. Some other lessons which are mentioned in this video are: * [Add Logging to a Node.js Application using Winston](node-js-add-logging-to-a-node-js-application-using-winston) * [NodeJS Logging using Winston and Papertrail](javascript-nodejs-logging-using-winston-and-papertrail) * [Setup Local Configuration with Node.js Applications](node-js-setup-local-configuration-with-node-js-applications)
lessonDuration 1m 32s
The instanceof operator can be used to figure out which function created an object. However it does have its drawbacks, such as returning false results. In this lesson we'll understand how the instanceof method determines which function created an object and manipulate the results.
lessonDuration 5mFree
In this lesson, we'll use Jest to unit test a Counter component built with Vue. Vue's baked in testing library provides the necessary functionality to render components, invoke methods, and make assertions. **Additional Resources** https://vue-test-utils.vuejs.org/
lessonDuration 2m 48s
Factory functions can be powerful ways of abstracting away difficult inheritance situations. They are simply functions that return objects in a desired state. Let’s refactor some objects that share duplicated code to a reusable factory function.
lessonDuration 2m 26sFree
In this lesson we'll create a simple 3-step gradient by blending together two colours. Blending is a great way to build a harmonious set of swatches that we can use as a base for our colour palettes. I also demonstrate how I use 3-step blends to add stepped gradients and colour variation to my illustrations.
lessonDuration 7m 3sFree
You already know that Apollo Client can manage your remote data and state from a GraphQL server, but did you know that you can also use it to manage local state in your React apps? You can! `apollo-link-state` lets you query and mutate local state the same as you would a GraphQL server. This means that you don't need to add _another_ dependency like Redux or MobX to your app. Managing your remote and local state using the same interface results in a codebase that's easier to maintain and reason about.
lessonDuration 2m 28s
Polymorphism is a powerful tool in many classical languages. However, it works a little differently in JavaScript and it’s important to understand the requirements of when a property can be overridden. Let’s explore these differences with some custom objects.
lessonDuration 2m 27s
It may be confusing to understand how the this keyword is used when accessing a method through the prototype chain. For example if one object has a method with this used and is called through a linked object, what is the context? We’ll play around with this usage and show when context changes.
lessonDuration 2m 14s
Coupling objects together can create a brittle relationship. If the prototype object is mutated or replaced later in development, that can cause issues to any new implementations of 'child' objects that use those properties. Instead, let's use Object.assign to compose objects. This method creates a direct copy of all properties and does not reference the source object's properties in memory.
lessonDuration 1m 17s
When used, the static keyword assigns properties and methods to the class itself. As opposed to assigning it to the prototype object of that class. We'll use the static keyword and show how to replicate the same behavior with a regular function.
lessonDuration 2m 51s
The ES6 class keyword is syntactical sugar for working with functions and prototypes. It is not to be confused with classes in classical languages like Java or C#. It's functionality seems to replicate classical behavior but still has significant differences. Let’s explore these and create some of our own JavaScript classes which use the extends keyword.
lessonDuration 3m 3sFree
In this lesson, learn how to use StaticQuery to load data directly in the components that use them, making your Gatsby sites easier to understand and maintain. We’ll refactor a simplified Header component to eliminate prop drilling, loading the data with a GraphQL query right in the Header component instead.
lessonDuration 3m 51s
By setting the `strictPropertyInitialization` flag in the `.tsconfig` file, TypeScript will start throwing errors unless we initialize all properties of classes on construction. We’ll explore how you can fix the errors by assigning to them directly or in the constructor body. And if you can’t initialize directly but you’re sure it will be assigned to at runtime by a dependency injection library, you can use the definite assignment assertion operator to ask TypeScript to ignore that property.
lessonDuration 1m 58s
When looking at large numbers in code (such as 1800000) it’s oftentimes difficult for the human eye to quickly see how big the number actually is. TypeScript allows us to use numeric separators to write numbers in a more human readable format (such as 1_800_000), while keeping the generated JavaScript unchanged.
lessonDuration 3m 57sFree
In this lesson, we get an introductory look at the await keyword. We will start with a problem statement of making three network calls one after the other and provide a solution using promises. We will then upgrade the example to use the new await keyword.
lessonDuration 36sFree
In this lesson, you will write a basic HTTP server in the Dart programming language. We will be using the HttpServer class from Dart's inbuilt 'dart:io' library to achieve this. Dart is an object-oriented programming language by Google, which aims to help the developer build modern web applications. It covers client, server and now mobile with Flutter. It comes with a range of tools including a virtual machine, core libraries, and package management repository, lending enough ammunition to start your next project. Learn more at https://dartlang.org
lessonDuration 1m 51s
Constructor functions hold an interesting purpose in JavaScript. Unlike in classical languages, they do not always mean created by. In this lesson we’ll use the new keyword to make a constructor call and work with the .constructor property.
lessonDuration 5m 50s
Allow the base toggle to be a tag (<toggle>) or attribute (<div toggle>). The <toggle> component has become less opinionated about the view, but has now taken on some responsibilities managing state. We’ll decouple the state management piece by moving it into the toggleProvider directive. The toggleProvider directive provides state for all the <toggle-off>, <toggle-on> and <toggle-button> components inside it.
lessonDuration 2m 43sFree
When you bring up the on screen keyboard in a mobile app, it will cover any text input or buttons on the bottom half of the screen, which can be frustrating for users. There are a few common ways to deal with this in React Native - and this video shows the following solutions: First, you can use the built in `KeyboardAvoidingView` to move components around when the keyboard comes on screen. It has the advantage to being built in to React Native already - but it can be overly complicated to get this approach to work consistently across both iOS and Android. There is also a third party library called `KeyboardAwareScrollView`, which will allow your entire view to scroll, and will keep the currently selected text inputs up and out of the way of the keyboard.
lessonDuration 2m 33sFree
The pipe operator is an easy to use and powerful feature of Elixir. It takes the output from the expression on the left, and automatically passes it as the first argument to the function on the right. This is especially useful when chaining together multiple function calls or data transformations. Using the pipe operator results in code that's easier to read, write and refactor.
lessonDuration 2m 19sFree
In this lesson we'll go through the process of setting up Storybook for Vue. We'll use Vue CLI to create a new Vue application and Storybook CLI to setup some initial stories and config. Storybook can help you develop UI components in an isolated area without running your full application. *Additional Resources* https://medium.com/storybookjs/introducing-storybook-for-vue-940f222541c5 https://storybook.js.org/basics/guide-vue/
lessonDuration 5m 57sFree
One of the goals of the Angular team is to keep everyone aligned with the latest version. To allow doing so, they started to establish 6 months major release cycles, LTS support and much more. But one of the biggest innovations is for sure to introduce Angular Schematics for automatic code migrations. In this lesson we'll take a simple Angular 5 application. The goal is to learn about the different steps that have to be applied. We will use a very simple demo application in order to easily be able to walk though the migration process. The same approach can be applied however to real world applications, with the difference that in larger apps some steps may obviously require a bit more effort.