DevCamp 8 – Session 5

Опубликовано: 09 Апрель 2026
на канале: Holochain
466
24

Session content

devcamp game interactive model in Holochain Playgroud by Guillem
Try it yourself here: https://holochain-playground.github.i...

GameSession entry definition and create fns code review by Nastasia
Check out the code here: https://github.com/holochain-devcamp/...

Learn more
Today we learned a lot of new things, both Rust and Holochain related.

You can learn more about this here:
https://doc.rust-lang.org/book/ch13-0... 2

Another odd Rust thing might be the enums, which we encounter while defining the SessionState.

Read more about them here:
https://doc.rust-lang.org/book/ch06-0...

Or watch:
https://egghead.io/lessons/rust-rustl...

Or code:
https://github.com/rust-lang/rustlings
In the previous session we already saw how to create entries and links.

This time we added source chain queries:
ChainQueryFilter::new().include_entries(true)
this allows you to quickly get certain elements from your source chain to get entries of a certain type or headers that match specific criteria.

Elements are basic building blocks in holochain so understanding them and the
properties and function they exposes, will help a lot on your path to build your own holochain app.

For instance today we wrote this code:
el.header().entry_hash()
and
el.entry().to_app_option()

Read more about these fantastic beasts here : https://holochain-gym.github.io/devel...

Basic – Querying the Source Chain: Holochain Gym 2: https://holochain-gym.github.io/devel...

Holochain Gym contains exercises, resources and training to learn Holochain.

And try the exercises if you feel up to it.

More resources:
Holochain site: https://www.holochain.org/
Holochain Developer site: https://developer.holochain.org/
Holochain Developer Forum: https://forum.holochain.org/
Holochain Launcher: https://github.com/holochain/launcher
Holochain Playground: https://holochain-playground.github.io/
Holochain Gym: https://holochain-gym.github.io/