-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added line to remind you to include the player file in your lib #71
base: master
Are you sure you want to change the base?
Conversation
Hey, thank you! 🙂 However, the page currently doesn't mention you should write your code in
on its own adds more questions than it answers. |
You are correct, I may have jumped too fast on this one. Out of habit I placed all player code on its own I would like to pitch it as an idea/suggestion in that case: |
Since this is a "Hello World" example, we should keep the number of introduced concepts to a minimum, and focus on the important parts to distract too much -- i.e. on how the entry point and classes are defined. Knowing how Rust modules work is a prerequesite of the book, but I see that it may be worth mentioning just to avoid the confusion you encountered. But it shouldn't be more than a side-note, and it shouldn't end up in code -- users are perfectly within their rights to use As such, I'd extend the existing paragraph in Class declaration:
What do you think? |
I agree that number of new concepts should be kept to a minimum in a hello world example. This all stems from a mistake I made. Am I the first one to create a new file for player code and not include it on the create? If I am the only one I do not think any changes are necessary. If this a reoccurring mistake I agree that your suggested changes are good. |
Hard to say if this occurs often, but even if not, mentioning it briefly in a sentence (like I suggested) may clear things up. My point was mostly to not dedicate too much content to "how to structure modules in Rust", because that's a topic that people should already know. So showing how to apply that knowledge is good, but teaching it is a bit too much 🙂 |
So, what do you think about my suggestion earlier?
|
I think it is a good suggestion, I like it. |
I meant, do you want to update your PR to reflect this? 😉 |
bdc4bf2
to
6b18b17
Compare
…if they are not writing it there already.
6b18b17
to
9b22878
Compare
I have updated the PR based on previous discussion. |
After having spent an unreasonable amount of time trying to figure out why my node was not showing up in the editor I feel a line like this would have been a big time saver.