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 think its better to use the least amount of the built in functions as we can to avoid pitfalls :3
very nice, and very readable!
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
same idea but so differently done!
oh my god, i feel so ****** stupid
Thanks, I didn't even know you could do that! <3
best, cleanest, great
clean !
@acraileanu Although your statement is true, it is still considered a good practice not only to prevent problems associated with pass-by-reference but also to avoid confusion that arises from having parameters with names that suggest permanence (as is the case with this Kata) but with values that change throughout their lifetime.
Imagine, too, the frustration experienced by a maintenance developer who, wishing to reuse the original value of a parameter, comes to discover that, where he has inserted his own code, the original value no longer exists.
Ultimately, there is just no need to reassign parameter values and hence the existence of the formal refactoring "Remove Assignments to Parameters."