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.
Seems to be less random xd
GO sounds so special that I'm not even going to try.
Having my hands full anyway with struggling through 120,000 lines of DXL code, written by even more incompetent programmers than I am, at work.
Sorry, but I had to get that of my chest. ;-)
Dont mind me.
Noticed that case as OK in description!
Should be fixed!
It'll rerun the tests and only invalidate solutions that fail.
Thank you!
If I modify tests, will it invalidate only those which does not accepted by new tests?
Or it will just invalidate all previous solutions?
I use comma-ok idiom in this translation. There is no need to return a value and error (comma-error idiom).
However, output format should be specified as
value, ok
in the description and/or solution sampleI'll keep that in mind for next time!
Hey, it happens.
I already fixed the kata. Fixing an already approved translation isn't going to do anything anyway.
This is what I get for writing code early in the morning. 😅
Switched to using the String.repeat method.
I did some reading, and Go seems .. special.
There is no idiomatic empty value, strings cannot be
nil
, and functions often return "a value and an error." The current initial code seems to return a value and avalid
flag instead.Please do not expose non-Go programmers to this madness. Use language-specific blocks in the description. Also, specify the output format of the function correctly and completely for your 7 kyu solvers.
"Extra modifier tests" in all currently available languages call "xxxs" "4-extra small" ( and large ). That should be "3-extra small" ( and large ).
Looks bad.
If you had printed the random inputs, you would have seen
"x" * Math.floor(Math.random() * 30)
always evaluates toNaN
.Attention to detail, and extensive testing, are important when writing translations.
OP, you could have seen from the translation author's profile page this was their first translation. That means a thorough review is necessary. The Go translation is from a similarly inexperienced translation author; that should also have been reviewed better.
( Go )
Pick one and stick with it. I don't know if Go has an idiomatic empty value, but neither
0
norfalse
actually looks like it.Translator wrote Python instead of JS. Lemme fix that.
Loading more items...