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.
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.
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;