Water under the bridge. I added the first three test cases (the ones alluded to in the description) as sample tests. Sure, they break the guideline of one assert per test method, but it works thematically.
If you're going to copy the kata, at least include the sample test cases for the user.
That's a hard accusation. The green glass door is a well known riddle, and the descriptions are entirely different. I just wonder how both of you got the inspiration at the same time…
because I think every program includes at least one algorithm.
Oh, every program is a algorithm, since a program is a unambigously defined sequence of operations (or has undefined behaviour). But not every problem is stated as an algorithm. You can say "Create a ABC!" and check fundamentals for ABC students. Or you can give the complete sequence of steps and therefore also tackle those, that don't know what an ABC is.
bugs ("This kata doesn't work. Can you spot why?")
puzzles ("In this kata you may use function abc only twice to solve the riddle")
fundamentals ("This kata shows you how to use a function")
algorithm ("Step 1: ...; Step 2: ...; Step 3: ...; If ready, end. Else go to step 2")
But my criticism wasn't about the tag, just about the "Fibonacci is basic" ;).
Yes it's certainly baseless but if you google Fibonacci you get: About 18,900,000 results... Besides that I don't understand very well the tag "Algorithm" because I think every program includes at least one algorithm.
Typically these types of katas involve elaborate specifications.
This kata doesn't need elaborate specifications, Fibonacci is a basic for every programmer hence the tag "Fundamentals" is more than sufficient, isn't it?:-)
Nah.
Here it is
Should I approve your translation? I ask because I cannot see any java translation there.
@Redmega: Aye.
Still, if a solution of the other kata is a valid solution for this one, they are duplicates of each other.
Water under the bridge. I added the first three test cases (the ones alluded to in the description) as sample tests. Sure, they break the guideline of one assert per test method, but it works thematically.
That's a hard accusation. The green glass door is a well known riddle, and the descriptions are entirely different. I just wonder how both of you got the inspiration at the same time…
Didn't know the other one existed. And yes, I did a search.
Thought I had added user test cases, I'll fix that in the morning.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Oh, every program is a algorithm, since a program is a unambigously defined sequence of operations (or has undefined behaviour). But not every problem is stated as an algorithm. You can say "Create a ABC!" and check fundamentals for ABC students. Or you can give the complete sequence of steps and therefore also tackle those, that don't know what an ABC is.
But my criticism wasn't about the tag, just about the "Fibonacci is basic" ;).
Yes it's certainly baseless but if you google Fibonacci you get: About 18,900,000 results... Besides that I don't understand very well the tag "Algorithm" because I think every program includes at least one algorithm.
That's baseless assumption. I've read many books on programming, and only a very small number of them actually had the Fibonacci function.
Codewars writes for the Tag "Algorithms":
This kata doesn't need elaborate specifications, Fibonacci is a basic for every programmer hence the tag "Fundamentals" is more than sufficient, isn't it?:-)
Thanks !
Loading more items...