Rust example improve suggestion #1266
Replies: 2 comments 2 replies
-
Hi @wisonye thank you for trying the examples! Please keep sending feedback as you try more examples. 🙏 |
Beta Was this translation helpful? Give feedback.
-
Also, in the ctx.send(msg.return_route(), msg.body()).await But I think you better put the comment there to let the developer knows that the As usually, |
Beta Was this translation helpful? Give feedback.
-
Hi there, I just went through the first 2 examples for the Rust guide. Below is my personal opinion which may improve the user learning experience for a beginner like me. Free feel to take a look one by one:
01-node.rs
I think that it's important for the user to know about How
#[ockam::node]
works. So thecargo expand
comment is super useful, it gives a very clear view to the user to know what happens under the hood. Here is the output:For the
#[derive(Debug)]
comment, it looks a bit longer for the example which should focus on "clean and simple", but the output is very valuable. Or maybe place or mentioned it into the plain text outside the example source code?:)echoer
02-worker.rs
After customizing the output format,
cargo run --example 02-worker
output content looks better than before:I just report that from a
beginner
user's angle and I think this small detail change will give a betterfeeling
andunderstanding
for the firstOckam
try:)Beta Was this translation helpful? Give feedback.
All reactions