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.
That may be better for more expensive calculations, but the beauty of this design is that it mostly doesn't matter. That change could be entirely internal to the class, with no change to the external interface. So... we don't have to make any decision about it until we've tested the performance.
I'm assuming you're referring to the choice to use a class?
My goal was to use an object oriented approach, hiding the details of inside the object, so that the purpose becomes clear in the code. This also would allow a lot more flexibility if the rules were to change.
This comment is hidden because it contains spoiler information about the solution
Maybe I'm mistaken... but isn't it still monkey patching to reopen the class and alias a method?