JoshOrndorff / LearnRholangByExample

Teaches rholang to beginners and intermediate programmers through hands-on examples and experimentation.
67 stars 32 forks source link

Ch 1 Exercises confusion #37

Closed TrenchFloat closed 6 years ago

TrenchFloat commented 6 years ago

I was able to make stdout say "Rholang Rocks!" but was confused once I tried to replace "stdout" with "someChannel". I later found out I wasn't supposed to succeed in having anything print to the screen, but in the meantime felt like I wasn't getting the exercise right. "Any results?" was a hint, but too subtle for me to catch.

Now I'm confused how I make "Sup World" print to the screen if someChannel won't go to the screen in the first place.

I suggest these exercises go after the "So where do the other channels go then? Nowhere! Not yet anyway." and before the tupleSpace.rho example exercise to avoid frustration at the outset.

TrenchFloat commented 6 years ago

After I learned to take out the quotations around someChannel: screenshot-rchain cloud-2018 10 26-10-17-54

JoshOrndorff commented 6 years ago

Excellent feedback. Thank you!

Those exercises made more sense in older versions of rholang when printing to the screen was like

// Old-style rholang. No longer valid
@"stdout"!("Hello World")

I decided to just remove them entirely in 3ecf7d6bec

Keep the feedback comint