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.
.
I could just solve this in C# without problems.
Agreed! Easiest to understand for someone learning.
You'd be better to use StringBuilder due to performance.
String is immutable so each reassignment is rather costly, this is well summarised here;
https://support.microsoft.com/en-gb/kb/306822
Can someone repair this, I am not C#
Hi, thanks for spending your time on my kata! I watched your solution and wondered if you considered to move the specific area calculations to the 'shape' classes?
This was a great Kata, and my first Beta since being able to provide feedback, so you get a 6th-Kyu Ready from me ^_^
Right, sorry. I was in C#.
I didn't realise that making an instructor that looked like:
public Cube() {}
Would still initialise an int to be 0 anyway. I thought that if you didn't assign it a default value, then the Get wouldn't work. Clearly I was wrong.
IGNORE MY SUGGESTION, FOR IT IS FOLLY!
Nice idea, but what language are you taking about? I've written only the solution and tests for C# and there should be this testcase...
Cannot currently complete in C#.
The variable 'test' has been assigned but its value is never used.
The only thing that could be better is that, while there is a test to determine whether or not there is a constructor that takes zero arguments, that test does not then check that the side actually gets set to 0 by default.
You can produce an empty constructor that does nothing and still pass the test. I would suggest that, for that one particular test, after saying:
Cube c = new Cube();
Adding:
Assert.AreEqual(0, c.GetSide());
And then we would be forced to make a constructor that defaults to 0, as per the instructions in the description.
This comment is hidden because it contains spoiler information about the solution
The test is comparing:
and
this is not what you assume. extension method returns another list.
You're literally comparing count to count + 1 of the same list, AFTER the value is added.
It's the same as saying Assert.AreEqual(0, 1);
It's NEVER going to be equal. If you empty the list completely it says:
Expected: 0
But was: 1
In C#, this Kata is currently impossible.
LoL LoL LoL.... xDDD
It killed me also....
Loading more items...