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 comment is hidden because it contains spoiler information about the solution
Thanks! Never knew about that. I'm probably a repeat offender.
Wait, you can read solution comments without access to the solutions?
One of the original purposes of this kata was to provide light exposure to prototypal inheritance in Javascript.
The JS bootcamps likely stopped teaching this after ES6 came out, so I guess this is now a looking things up for yourself instead of being told exercise. TO NOTE: contexts of keywords and "prototype".
@darymc, just sleep on it. You're not missing the part of it I'm talking about, but the people you're responding to have.
I actually suggested that to the author to be consistent with the input/output capabilities of the original implementation. Makes me wonder whether there could be more done on the more modern Node.JS implementations.
You've misread the spec for stn.
Katakana uses multi-byte characters in UTF-8.
This comment is hidden because it contains spoiler information about the solution
What solution are you referring to? Remember to mark as spolier.
The former is any character. The latter is any character that isn't EOL.
When you get into time and space complexity in your studies you'll realize your solution makes more sense at a very large scale once you get rid of the usage of multiple for loops. When it comes to text processing at a smaller scale, this solution saves a bunch of time. In the real world the scale of different problems are different, and you'll frequently come across problems where this is just as good as your existing solution and easier to implement, provided the prerequisite knowledge. Any Theory of Computation or Building Compilers course worth anything is going to cover Regular Expressions, albeit in a more abstract form than PCRE-like regular expressions, starting with DFAs and NFAs.
Edit: if you misuse regular expressions in a situation where it's called for it's because you're not qualified for your damn job.
It's a regex engine feature called a backreference.
Man, I wish you were around when the kata was in beta. Thanks for all the feedback. I'll update the description when I have some time to do that, probably some time in the next week.
This comment is hidden because it contains spoiler information about the solution
Loading more items...