Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
I dont understand why you would set constants when they are already defined in the standard library
Thank you for the clarification! 😊
Strings are immutable in Go. So if you append to a string, what it has to create a whole new string every time. String builder on the other hand is mutable, so it's going to be more memory efficient.
If you can, avoid magic numbers in your code!
I don't understand why it is "Best practice" if it is full of magic numbers.
This comment is hidden because it contains spoiler information about the solution
Why is it better to use a string builder than just
text+=
?