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.
This platform is for learning how to solve the issue with building the solution from scratch to grow and see other people's solution to learn as well. But, solving the problem with available third-party library isn't a good way as this platform has some purpose and the user should mind that.
The other way around solutions are already available one google search away.
I think it's both important to know how to make your own function, AND what tools already exist to get the job done.
You don't need to reinvent the hammer every time you want to build a fence.
Code like this is the reason I scroll through here -- code that makes me aware of new things!
Thanks, "cheater"!
Knowing what tools are available is extremely valuable when building real world applications.
And not everyone knows about this library, so I believe this is valuable for people to see.
cheater)
I like this solution, functions really should "do one thing", Uncle Bob would be proud.
Something like...
if (isTruthy) { return true; } else { return false; }
...can always be rewritten like...
return isTruthy;
Something like...
if (isTruthy) { return true; } else { return false; }
...can always be rewritten like...
return isTruthy;