bevyengine / bevy-website

The source files for the official Bevy website
https://bevyengine.org
MIT License
193 stars 333 forks source link

Use info! instead of println! in tutorial #108

Open alice-i-cecile opened 3 years ago

alice-i-cecile commented 3 years ago

When debugging actual Bevy games, you almost always want to use info! instead of println in order to reduce blocking behavior.

This is not at all obvious to Rust beginners, and showing them how to use println misleads them into thinking it's a good pattern to replicate.

This was a simple find-and-replace change for me, and resulted in much faster looping.

TrialDragon commented 2 months ago

Should this be closed as not planned, or should we instead shift the goal to mentioning info!, and switching to using it, after we add DefaultPlugins in the tutorial since we can't just use info! everywhere in the tutorial?

alice-i-cecile commented 2 months ago

should we instead shift the goal to mentioning info!, and switching to using it, after we add DefaultPlugins in the tutorial since we can't just use info! everywhere in the tutorial?

This is my preference, but only once there's more meat to the book / quickstart guide.