Rustlings macros4: Using rustfmt to fix common syntax issues
lessonDuration 49sFree
[README](https://github.com/ChristopherBiscardi/rustlings/blob/egghead/exercises/macros/README.md) for this exercise.
Browse
Find courses, lessons, articles, talks, and podcasts.
7,176 resources
Showing 3,337–3,360 · Page 140 of 299
lessonDuration 49sFree
[README](https://github.com/ChristopherBiscardi/rustlings/blob/egghead/exercises/macros/README.md) for this exercise.
lessonDuration 33sFree
[README](https://github.com/ChristopherBiscardi/rustlings/blob/egghead/exercises/macros/README.md) for this exercise.
lessonDuration 2m 12sFree
[README](https://github.com/ChristopherBiscardi/rustlings/blob/egghead/exercises/standard_library_types/README.md) for this exercise.
lessonDuration 1m 28sFree
[README](https://github.com/ChristopherBiscardi/rustlings/blob/egghead/exercises/if/README.md) for this exercise.
lessonDuration 1m 32sFree
[README](https://github.com/ChristopherBiscardi/rustlings/blob/egghead/exercises/generics/README.md) for this exercise.
lessonDuration 26sFree
[README](https://github.com/ChristopherBiscardi/rustlings/blob/egghead/exercises/generics/README.md) for this exercise.
lessonDuration 43sFree
[README](https://github.com/ChristopherBiscardi/rustlings/blob/egghead/exercises/functions/README.md) for this exercise.
lessonDuration 18sFree
[README](https://github.com/ChristopherBiscardi/rustlings/blob/egghead/exercises/functions/README.md) for this exercise.
lessonDuration 1m 38sFree
[README](https://github.com/ChristopherBiscardi/rustlings/blob/egghead/exercises/functions/README.md) for this exercise.
lessonDuration 25sFree
[README](https://github.com/ChristopherBiscardi/rustlings/blob/egghead/exercises/functions/README.md) for this exercise.
lessonDuration 1m 19sFree
[README](https://github.com/ChristopherBiscardi/rustlings/blob/egghead/exercises/error_handling/README.md) for this exercise.
lessonDuration 1m 15sFree
[README](https://github.com/ChristopherBiscardi/rustlings/blob/egghead/exercises/error_handling/README.md) for this exercise.
lessonDuration 4m 47s
In stateful interfaces, there's a tradeoff between recency and frequency, two seemingly similarly aligned goals for guessing user intent. Recency biases towards newer entries being more likely to be what you are looking to do. Frequency biases towards betting on you doing the same thing you've always done. Fortunately there is an established algorithm that trades off frequency and recency, and chances are you've already used it in Slack or other similar interfaces!
lessonDuration 21sFree
[README](https://github.com/ChristopherBiscardi/rustlings/blob/egghead/exercises/enums/README.md) for this exercise.
lessonDuration 31sFree
[README](https://github.com/ChristopherBiscardi/rustlings/blob/egghead/exercises/clippy/README.md) for this exercise.
lessonDuration 2m 2sFree
In this lesson, we explore using Chrome's DevTools to detect unwanted visual instability on a page. We can do this using the new "Experience" heading under recorded "Performance" metrics. To truly see the impact of "[Cumulative Layout Shift](https://web.dev/cls/)", we can make use of DevTools' "Network throttling" feature to see any visual instability with the naked eye.
lessonDuration 1m 59sFree
In DynamoDB, it's possible to "age-out" or delete items based on a time-to-live attribute. We cover how to set up such an attribute, what values you need to use, and how they can be used for both deletion of items as well as for aging older data out of dynamo into another table or even S3.
lessonDuration 5m 2s
A very common practice in React applications today is to request data when a component is rendered within a `useEffect` callback. Let's refactor that to Suspense with our new resource factory.
lessonDuration 2mFree
Using multiple cursors is a fantastic way to speed up your productivity when working with and refactoring code in VSCode. Learn four different ways to use multiple cursors with VSCode.
lessonDuration 50sFree
`Ref`s are opaque. To access the fields on a document associated with a `Ref`, we first need to run `Get` on our results and then we can access fields using `Select` ``` Map( Paginate(Match(Index("all_customers"))), Lambda("X", Get(Var("X"))) ) ``` ``` Map( Paginate(Match(Index("all_customers"))), Lambda("X", Select(["data", "firstName"], Get(Var("X")))) ) ```
lessonDuration 43sFree
When using remark to manipulate markdown documents, you can use [unist-util-remove](https://www.npmjs.com/package/unist-util-remove) to remove nodes of a particular type. You can combine it with [unist-util-visit](https://www.npmjs.com/package/unist-util-remove) to remove nodes based on their parent's context in the AST. In this example, we remove all images contained within heading nodes.
lessonDuration 1m 7sFree
You can use the remark CLI to inspect the AST, run plugins, or lint your markdown documents. It can be used in your build scripts to generate HTML or ensure your markdown style guide is adhered to. - Inspect the AST: `remark document.md --inspect` - Use a plugin: `remark document.md --use toc` - Overwrite your document after the plugin runs: `remark document.md --use toc -o` - Lint a document: `remark document.md --frail --use preset-lint-markdown-style-guide`
lessonDuration 2m 51sFree
AWS Lambda functions can be triggered by many different sources, including HTTP calls and files being uploaded to S3 buckets. This can be useful, for instance if we'd like to start processing a file using a lambda function whenever it gets uploaded to an S3 bucket. In this lesson we're going to learn how to create a S3 event trigger for a lambda function, how to create an S3 sample event to test the function and how can we verify that the function was triggered when uploading a file by viewing CloudWatch logs.
lessonDuration 1m 45sFree
Most of the time with markdown documents we want to render them to HTML for static websites. You can use remark and the [remark-html](https://github.com/remarkjs/remark-html) plugin to transpile your markdown documents to HTML with a build script.