Read user input from stdin in Rust
lessonDuration 1m 13s
In this lesson we'll learn how to read user input from stdin, using Rust's `std::io` module and its `Stdin` object.
Browse
Find courses, lessons, articles, talks, and podcasts.
7,176 resources
Showing 3,457–3,480 · Page 145 of 299
lessonDuration 1m 13s
In this lesson we'll learn how to read user input from stdin, using Rust's `std::io` module and its `Stdin` object.
lessonDuration 3m 15sFree
It's important to reduce the amount of trivial things readers of your code have to think about so they can reserve their brain space for more important things. Avoiding nesting of closures can help you accomplish this. In this lesson we'll get a quick look at the concept and how it can help reduce cognitive load for readers of your code.
lessonDuration 2m 6sFree
Sometimes in a React component we need to derive some values by mapping or filtering props. This is a useful technique but can cause performance issues of you are processing a lot of data, or the component is rendered regularly. In this lesson you'll learn how to avoid this pitfall using the `useMemo` hook.
lessonDuration 4m 58sFree
jq can help you quickly filter massive amounts of JSON data, but how can you turn it into a CSV, so you can process it quickly with a database or spreadsheet application? This lesson shows how to select the data you want for your CSV with jq, and uses the helper utility linked below to output as CSV. https://github.com/joelpurra/jq-hopkok/tree/master/src/tabular
lessonDuration 3m 32sFree
Before the hooks API was introduced, class components were the only way to create stateful components. With countless class-based React components in the wild, you'll need to know how to support them, even if other parts of your code base use hooks. In this lesson, we'll handle user events and update the component's state in response to those events with React's setState method.
lessonDuration 2m 12sFree
The hooks API that brought us useState, useEffect, and others became available in React 16.8, but the class syntax for creating components is still fully supported. Unless you're only working on brand-new React code, odds are good that you're going to come across components built as classes. In this lesson, we'll build a new component using the class syntax.
lessonDuration 7m 32sFree
The default behavior of an HTML form is to submit a GET request with the values of all its child inputs as URL query parameters. In React, we'd rather handle that within our components and avoid the need for server-side form handling code. In this lesson, we'll wire up a submit handler for a form and manage the submission and rendering updates in React.
lessonDuration 5m 54sFree
We always want our rendered UI to be a function of our state. In order for that to hold, we need to control the rendered value of form inputs by making them controlled inputs. In this lesson, we'll create a form and use component state and event handling to maintain the input value in component state and control the rendering of our inputs based on that state.
lessonDuration 1m 46sFree
Our components shouldn't be concerned with the implementation details around how we call our back end services. We may need to change details of how the API is called, we may want to add caching or offline storage and we may need to use the same API call in other components. To clean up our component code and abstract those details away from our component code, we'll move our fetch call into a service function and update our component to use our new function.
lessonDuration 1m 32sFree
For development, we'll be using a separate server address to reach our REST endpoints. In a production build, this will likely be a different address, and in many cases, our UI will be served from the same domain as our services. We can keep our code clean and still prepare for the differences between dev and prod, by using an API proxy and a relative path to our REST endpoints. In this lesson, we'll configure a proxy for create-react-app and refactor our code to use a relative API path.
lessonDuration 3m 40sFree
Components are at the core of building applications with React. In this lesson, we'll start with some static JSX markup and refactor it into a component that can be reused. We'll see how a React component is mostly "just JavaScript" when we use a JavaScript function to create that component. We'll also look at props in React and how we use props to configure specific instances of a component.
lessonDuration 1m 33sFree
Generators allow you to use the `yield *` syntax to yield each iteration of nested iterable as part of the main iterations. This enables you to combine multiple arrays, strings, or any iterable with anything you want to yield from your main generator.
lessonDuration 8m 28sFree
How to create and configure Facebook sign in / OAuth with AWS Amplify for web applications.
lessonDuration 1m 47sFree
In this quick lesson we're going to learn how to create a brand new AWS Lambda function from scratch and show how to test the execution of a 'hello world' Lambda function
lessonDuration 3m 9sFree
How to create cron jobs and scheduled events with AWS Lambda
lessonDuration 12m 21sFree
Kubernetes is an API to a computer. Multiple computers actually. Here we'll talk about what K8s is, how you can choose between the plethora of K8s related hosting options, and what the process looks like for getting some containers running.
lessonDuration 2m 4sFree
In a [previous lesson we learned about implementing a custom preloading strategy](https://egghead.io/lessons/egghead-implement-a-custom-preloading-strategy-with-angular). That gives you a lot of control over which route to preload and which not, whether it is based on the user's permissions or some runtime app config. In this lesson we're using [ngx-quicklink](https://github.com/mgechev/ngx-quicklink), a library that drastically simplifies the custom preloading, by automatically loading all visible links on the page.
lessonDuration 44sFree
Querying the DOM by an elements id is so common that JavaScript has given us a method to do this directly. `document.getElementById` In this lesson, we switch our `querySelector` function our with `getElementById` to fetch our movie list element.
lessonDuration 1m 4sFree
You can use `document.querySelector` to fetch elements from your HTML document. In this lesson, we pass an Id to `querySelector` indicated with a `#`. `document.querySelector('#movie-2')`. `querySelector` will return the first element that it matched.
lessonDuration 1m 40sFree
The DOM stands for Document Object Model. It is the interface between the JavaScript you write and the browser. In this lesson, we open up the browser developer console to inspect the HTML within. Use `CMD + OPT + i` to open the console quickly.
lessonDuration 4m 16sFree
If you're not careful you can write a test that's worse than having not tests at all. In this lesson we'll learn why that is and how you can avoid it by making sure your test can fail. This is based on my blog post: [Make Your Test Fail](https://kentcdodds.com/blog/make-your-test-fail)
lessonDuration 3m 29sFree
Measuring is extremely important, without numbers we don’t know about potential problems and we don’t have a base we can improve upon. [Performance Budgets](https://web.dev/performance-budgets-101) are a way to impose limits on metrics that may affect our app’s performance. In this lesson we’ll learn how to configure the Angular CLI to configure performance budgets, to monitor them and to alert us when we violate them.
lessonDuration 1h 3mFree
In this livestream, Nick DeJesus is joined by Ian Jones and Kevin Cunningham for a pair programming session to add tests to Nick's [use-stripe-cart library](https://github.com/dayhaysoos/use-stripe-cart).
lessonDuration 1m 28sFree
In this lesson we will learn about how to define real private properties in javascript classes.