Beta
Mnemo Passwords : pwgen
118vferries
Loading description...
Algorithms
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
WTF is "an heartbleed proof" ?!?
i guess it's related to the Heartbleed vulnerability ❣️ which was disclosed around the time the kata was published
Fun kata, but I would add my voice to those calling for a better explanation of that vowel-count index. As a native (American) English speaker, my suggestion would be something like:
Count the vowels in the service name, subtract one from this vowel count, then take the character from this index position in the service name. (Take the first character if there are no vowels.)
Having said that, I must once again commend everyone who communicates so well in English here on Codewars despite not having English as their native language. Coming from a culture that shows far too little respect for foreign languages and foreign cultures, I am very impressed every day here on CW.
Would greatly benefit from wthit56's advice about clarifying the 1-based vowel system.
This comment has been hidden.
Not an issue
I have added CoffeeScript translation. Please approve.
In my translation, I have also added some randomized testing. As this is CoffeeScript, you can easily auto-translate it and add to JS as well (use coffeescript.org for automated translation, for example).
Specify in the requirements what word is being parsed (e.g. 'Character in service name at index...', or 'The number of non vowels characters in the service name')
1-based thing is confusing. More explanation is required.
1-based is not obvious enough
The whole
1-based
thing is just really confusing. You could just say that if there are zero or one vowels, the first character should be used, if there are three vowels, the third character should be used, that kind of thing. The coder should be incharge of making sense of that in the code, and one-based just confuses the matter.Nice and simple exercise, though. I would add some random tests too, but nice kata.
I know it's just a kata, but something like this would make a much better password generator for use in the real world:
Not if you want to be able to retrieve it easily.
The goal here is to have mnemotechnic ideas for passwords, not to generate ones impossible to remember with complex hash functions and salt. Your method would be interisting server side which was not the goal here.
But thanks.
You need to clarify what to do when there are no vowels in the input string.
Thanks for your feedback, I updated the description.
@OverZealous or @vferries, please consider marking this issue as solved.
Looks good.
Kata description should specify that
means 1-based indexing, unless there are no vowels, in which case use 0-based indexing.
Thanks for your feedback, I updated the description.