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.
Very nice, actually, in this case, the
self
is redundant, you can provide but it is not neededtrue
Lol, I tried my best to have the shortest answer possible and I almost went with this solution...
sorry but... thisIsCamelCase, ThisIsPascalCase, this_is_snake_case, this-is-kebab-case
funny kata!
CoffeeScript translation
The test method does not show the input.
OP solved it, closing
Your code will fail for cases where there are multiple spaces adjacent to each other like
nurpsh crdex neixdmzvc wxtwztr cbp
because splitting them would result in["nurpsh", "crdex", "neixdmzvc", "wxtwztr", "", "cbp"]
and trying to access an empty string is erroneous.Your code will fail for cases where there are multiple spaces adjacent to each other like
nurpsh crdex neixdmzvc wxtwztr cbp
because splitting them would result in["nurpsh", "crdex", "neixdmzvc", "wxtwztr", "", "cbp"]
and trying to access an empty string is erroneous.the method does not even exist in ruby, theres only a class named string and when i made the camel case method it legit throws erroe.
This comment is hidden because it contains spoiler information about the solution
I don't get it, if generally is ok, but in one of the languages the convention is different, why the kata should be renamed affecting all languages? I'd have probably used PascalCase from the beginning, but changing the name of the kata and the function's name in every language isn't free. You need to make all tests backward compatible to not render all solutions invalid.
Duplicate issue
Generally speaking, camel case can refer to both upper CamelCase and lower camelCase. However, in the JavaScript ecosystem the convention is to use camelCase as the naming for the lowercase version and PascalCase for the uppercase version. Therefor, this Kata should be renamed.
For reference, you could take a look at how it's explained in the airbnb guide which is pretty much the most popular JS style guide: https://github.com/airbnb/javascript#naming--PascalCase.
Loading more items...