bigfleet

bigfleet

Hands-on Rust: treehouse or hello_yourname? (pg. 20)

In the “Prompting for the Visitor’s Name” section, contextually, the reader has just created the treehouse project. As they look for a prompt to which file to edit, they see, in the blue highlighted section,

FirstStepsWithRust/hello_yourname/src/main.rs

This appears to be a delightful convention that allows the source to be downloaded directly-- awesome!! – but the reader was in the treehouse, not hello_yourname. A small info box that explains the convention, and how to (perhaps) focus on the filename after src for their own work may be helpful.

Marked As Solved

herbert

herbert

Author of Hands-on Rust

Thanks for reporting the issue! I’ve put it into the issue tracker, I’ll try to clean it up for beta 3. There’s a note in the preface about source examples advancing through the chapter, but it’s not as clear as I’d like it to be - so I’ll see if I can make it more explicit in the body text. The “embed source” feature of the book builder is awesome in general, but does make it tricky when a chapter needs to work over multiple examples (I wanted to provide the reader with source for steps along the way, rather than a big dump of the final product of each chapter; the journey is more important than the destination for learning a language).

I’m not sure if the system will let me change the rendering of the source names, so it’ll probably take the form of a note that it’s advanced to the next section. (I’ll also triple-check that I intended to advance at each point).

Thanks - beta 3 will clear this up. :slight_smile:

Also Liked

seanjseymour

seanjseymour

Wow, I didn’t realize that the highlighted sections were links to source, that is great! It also explains what happened to cause the errata in my post. Looks like the source code changed but the book didn’t. I agree, calling this convention out more explicitly would be useful.

Popular Prag Prog topics Top

Razor54672
The answer to 3rd Problem of Chapter 5 (Making Choices) of “Practical Programming, Third Edition” seems incorrect in the given answer ke...
New
johnp
Hi Brian, Looks like the api for tinydb has changed a little. Noticed while working on chapter 7 that the .purge() call to the db throws...
New
jeffmcompsci
Title: Design and Build Great Web APIs - typo “https://company-atk.herokuapp.com/2258ie4t68jv” (page 19, third bullet in URL list) Typo:...
New
simonpeter
When I try the command to create a pair of migration files I get an error. user=> (create-migration "guestbook") Execution error (Ill...
New
edruder
I thought that there might be interest in using the book with Rails 6.1 and Ruby 2.7.2. I’ll note what I needed to do differently here. ...
New
raul
Hi Travis! Thank you for the cool book! :slight_smile: I made a list of issues and thought I could post them chapter by chapter. I’m rev...
New
joepstender
The generated iex result below should list products instead of product for the metadata. (page 67) iex> product = %Product{} %Pento....
New
jskubick
I’m under the impression that when the reader gets to page 136 (“View Data with the Database Inspector”), the code SHOULD be able to buil...
New
Charles
In general, the book isn’t yet updated for Phoenix version 1.6. On page 18 of the book, the authors indicate that an auto generated of ro...
New
s2k
Hi all, currently I wonder how the Tailwind colours work (or don’t work). For example, in app/views/layouts/application.html.erb I have...
New

Other popular topics Top

Exadra37
I am thinking in building or buy a desktop computer for programing, both professionally and on my free time, and my choice of OS is Linux...
New
siddhant3030
I’m thinking of buying a monitor that I can rotate to use as a vertical monitor? Also, I want to know if someone is using it for program...
New
AstonJ
Curious to know which languages and frameworks you’re all thinking about learning next :upside_down_face: Perhaps if there’s enough peop...
New
PragmaticBookshelf
Rust is an exciting new programming language combining the power of C with memory safety, fearless concurrency, and productivity boosters...
New
mafinar
Crystal recently reached version 1. I had been following it for awhile but never got to really learn it. Most languages I picked up out o...
New
AstonJ
Biggest jackpot ever apparently! :upside_down_face: I don’t (usually) gamble/play the lottery, but working on a program to predict the...
New
PragmaticBookshelf
Author Spotlight James Stanier @jstanier James Stanier, author of Effective Remote Work , discusses how to rethink the office as we e...
New
AstonJ
Was just curious to see if any were around, found this one: I got 51/100: Not sure if it was meant to buy I am sure at times the b...
New
husaindevelop
Inside our android webview app, we are trying to paste the copied content from another app eg (notes) using navigator.clipboard.readtext ...
New
PragmaticBookshelf
Author Spotlight: Peter Ullrich @PJUllrich Data is at the core of every business, but it is useless if nobody can access and analyze ...
New

Latest in PragProg

View all threads ❯