• ###### kriszto93commented on "Count the Characters" kata

It's an easy one, but a good one. Thank you! :)

.

.

• ###### anter69created a suggestion for "Blackjack, should I hit?" kata

Python translation kumited -- please check and approve (author is inactive)

• ###### rowcasedcommented on "Ones and Zeros" ruby solution

this is a nifty, concise little piece of code. join() takes the elements of the integer array and makes them a string, then to_i() takes that string and converts it to binary (based on the arg `2`). done. I saw your question and solved this in ruby using a version of my C code just so I could see what you were asking about... so clearly this solution shows what you can do when you really know the language

• ###### ruecktenwaldcommented on "Ones and Zeros" ruby solution

I am new to coding in general. I was able to successfully complete this challenge, though it seems to be done in a long winded way. Can someone explain how this is working?

• ###### Blind4Basicscreated an issue for "Count the Characters" kata

python: the solutin setup is missing its arguments (they are present in all other languages)

• ###### anter69created a suggestion for "Base 10 to any Base" kata

Typo in the description:

``````base20 = '0123456789ABCDEFGHIL'
``````

should be `...IJ`, not `...IL`

• ###### Blind4Basicscommented on "Ruby Functions #1: Define the "Each" Function" kata

hard coding all the answers is actually more involved than the actual solution

nope...

• ###### Blind4Basicscommented on "Ruby Functions #1: Define the "Each" Function" kata

it isn't always necessary to have random tests as they don't always achieve this purpose.

You have no idea how you can be wrong about the necessity or not of the random tests. ;)

Correctness of the algo should mainly be tested with fixed tests, yes. The main purpose of the random tests is to prevent a user from hardcoding all the solutions and in some cases enforce performances and/or provide more cases that have not been found with the fixed tests (tho, it's generally not good to rely on the random tests for that).

• ###### cliffstampcommented on "Ruby Functions #1: Define the "Each" Function" kata

The purpose of a test suite is to filter solution attempts to the desired answers (or more generally to enforce a learning outcome), it isn't always necessary to have random tests as they don't always achieve this purpose.

However, it isn't a big deal to add them on request, or expand them. I just added the do loop, and changed the reporting so now :

• if you pass it just notes the number
• if you fail it spams the full information

Hence if everything is ok you just get pass X tests at the end, otherwise you get a bunch of errors and then the tests passed.

• ###### Blind4Basicsresolved an issue on "Ruby Functions #1: Define the "Each" Function" kata

well, seems ok, now...

btw: why don't you at least put a loop around the random test?

• ###### Blind4Basicscommented on "Ruby Functions #1: Define the "Each" Function" kata

mmmh... confirmed. Strange it is... :/

• ###### cliffstampcommented on "Ruby Functions #1: Define the "Each" Function" kata

Well that is strange, because I just C&P'ed that code and it ran fine and is now in the solutions list.