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.
ImaginaryDevelopment has pointed out that the tests in F# have their "expected" and "actual" the wrong way around. Not a massive problem but it'd be nice to fix it. I'm happy to do it if the translator isn't around.
I think you have to make a new comment rather than reply to an existing one to create an issue. You're right though, the expected / actual do appear to be backwards in F#.
The initial code (in C#) said:
It wasn't clear to me whether the author meant:
(a) "you, personally, write a string" - I should author a string which represents that regular expression, and then just create a one-line function in my language of choice which returns that constant string; or
(b) "create a program to write a string" - I should author a program which will build that regular expression and return it as a string
in the end I went for (a) because it was a lot quicker, but I can see from the solutions that many people interpreted this as (b).
You're welcome :)
Oh - sorry, I was sure I'd fixed that already. I meant to. I think it must have snuck back in again when I changed how the random tests worked. Fixed now :)
This comment is hidden because it contains spoiler information about the solution
When a kata is first published in a given language, the author has to provide a solution in that language and it has to pass all of the tests that you're currently trying to pass. Additionally, 1517 people have successfully completed this kata in JavaScript since it was published. I don't know what proof you could get that would be better than that :)
Erlang translation available! (Yes it has medved.) If approved, I think this is the first purple Erlang kata.
Voile has been on Codewars for a year and a half and has authored 44 kata. You've been here a month. I don't think it's unreasonable to think he might be a better judge of "kata creation mentality" at this point.
Look, I get that you would rather the kata was a different puzzle that you like more. But it's this puzzle :)
Why not solve more kata, earn more honour, then start authoring your own?
Hi Ionut,
Thanks!
Thanks for your input @Blind4Basics. @hufftheweevil let me know if there's anything I can do or clarify or whatever :)
I guess if you can see that there are tests, and the tests look ok to you, and it's passing the tests, that's sufficient? Maybe one doesn't need to 100% understand the solution itself.
To be honest I'm not sure exactly how the process works! My understanding is that the kata's author is the person who would normally approve translations - but I'm not sure what happens in the case where the translation is in a language they're not confident in.
I think other "power users" can approve translations too, but I don't know how an author goes about asking for this to happen...?
Hi hufftheweevil, I just wondered if you'd had the chance to look at this yet? Is there anything you would like me to change or improve, or are you happy to approve this?
Loading more items...