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.
OP solved it, closing
I believe that this is the best practice. By using "FindAll", you don't need to convert from IEnumerable to Array again, since FindAll already returns an array/list (this method is also available for lists).
In the Notes section of the description for this kata it says that there is a preloaded dictionary you can use, named NATO.
Clever! from now I will use that Array Method. Good Job!
just because you can, and others can learn the features of JS (or other languages).
In real work you shouldnt make everything one-liners, you should make code as clear to read for others as possible, at the same time not making it too long. But here we are for the purpose of training and learning language.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Is there any specific reason to encrypt the solution into one line of magic symbols? :)
I find hard to understand what's going on there.
Premature optimisation is a terrable thing, when they come with such a request I will simply refactor
Thanks for the explanation! It is really useful for me to see practice from another perspecitve.
To solve katas surely trains your brain, perhaps encourages you to learn different languages and enables to compare different code, so it probably helps you to "think algorithmic";-)... It's not the same as working on large real projects (often simple code, not really algorithmic problems, but many different steps, interfaces, frameworks, ...). I'm here to have "some fun" which allows to produce really bad code, short code, strange code, different code, a.s.o.;-) without intension to work like a developer;-).
It was a joke, of course nobody will ask a change for the kata.
What's the point to make katas at all? I personally find it useful to practice and therefore get better at real projects, load brain with various tasks, but still practicing disciplines of clean code. Because in real projects maintainability is extremely important.
One week later...? It's science fiction and not the task of this kata;-)... and perhaps you confuse katas and real projects;-)?
One week later... Manager comes and says: "I want it to give 4 points for a win, -1 point for a loss, and 1 point for a tie".
At the friday evening they come again and say: "Can you please make it that we give an additional point for every 10:0 wins".
A month later... Manager comes and says: "I want it to work for hockey, basketball and baseball" ;-)
I would make a harakiry on the first request.
One week later... Manager comes and says: "I want it to work for hockey, basketball and baseball" ;-)
Loading more items...