Homework isn't the best word, but it kinda fits: this file contains our recommendations on things to do with the code to make your learning more interactive.
I know, you may have already ran them after the previous session. But now the tests are different, and the content is different and you can see all the debug output we written in the zome!
- run
nix-shell
in the root of this repo. See Environment setup in README.md for more details - run
npm run test
inside your nix-shell
There's an amazing resource called Holochain Gym where you can do small exercices to strenghten your knowledge.
We have covered a lot of topics in the small bits of code that we wrote in this session, so check out these exercises to help you make sense of them separately:
- Zome functions
- Creating Holochain entries
- Playing with hashes
- Attaching links
- Getting elements
- Anchors
Don't worry if that looks like a lot: we'll be using the same concepts when developing other parts of the game too, so things would start to make sense as you learn more about their usage.
- In this session you saw how we use source chain queries Read more about and try the exercise from Source-chain
- Enums in Rust are a bit atypical, if you want to learn more about try the rustling exercise for enums: https://github.com/rust-lang/rustlings Or watch: https://egghead.io/lessons/rust-rustlings-enums3-working-with-enums-by-pattern-matching-variants