https://github.com/siilwyn/code-class-js-rust
🦀 Code class about Rust at De Voorhoede.
https://github.com/siilwyn/code-class-js-rust
code-class
Last synced: 4 months ago
JSON representation
🦀 Code class about Rust at De Voorhoede.
- Host: GitHub
- URL: https://github.com/siilwyn/code-class-js-rust
- Owner: Siilwyn
- License: mit
- Created: 2019-05-16T09:32:39.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-16T12:43:09.000Z (about 5 years ago)
- Last Synced: 2024-12-28T06:25:19.442Z (5 months ago)
- Topics: code-class
- Language: HTML
- Homepage: https://siilwyn.github.io/code-class-js-rust/
- Size: 1.12 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# Code class from JS to Rust
## [Slides](https://siilwyn.github.io/code-class-js-rust/)
## Setup
```sh
git clone [email protected]:Siilwyn/code-class-js-rust.git
cd code-class-js-rust
```## Run exercise
Use `cargo run -p` followed by the exercise directory name, for example to run the first exercise:
```sh
cargo run -p exercise-1
```Tip, automatically run the exercise on changes with [cargo watch](https://github.com/passcod/cargo-watch):
```sh
cargo watch -x 'run -p exercise-1'
```## Exercises
### One
Based on the compiler errors fix the code to print `2 + 1 = 3`.### Two
Add matching quotes to certain users and filter out users with no matching quotes, so `{username} - {quote}` is printed for each quote.## Solutions
To get the solution for an exercise apply the solution patch file, for example for the first exercise:
```sh
git apply exercise-1/solution.patch
```[*<<* My previous code class, about GraphQL](https://github.com/voorhoede/code-class-graphql/)