GitHunt
SI

Siilwyn/code-class-js-rust

๐Ÿฆ€ Code class about Rust at De Voorhoede.

Code class from JS to Rust

Slides

Setup

git clone git@github.com: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:

cargo run -p exercise-1

Tip, automatically run the exercise on changes with cargo watch:

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:

git apply exercise-1/solution.patch

<< My previous code class, about GraphQL

Languages

HTML57.7%CSS21.4%Rust16.4%JavaScript4.4%

Contributors

MIT License
Created May 16, 2019
Updated March 8, 2023