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.
Nasm translation
C++ Translation
Missing sample and fixed tests for
y
andY
in all languages except F#Missing fixed and sample tests for empty strings and
@@@
inC#
Python
Ruby
This comment is hidden because it contains spoiler information about the solution
Ruby 3.0 should be enabled, see this to learn how to do it
Please organize the structure of test fixture as following (although it has been mentioned in the attached link, I'm repeated here again)
Has a lot in common with the kata - <8 kyu> Area or Perimeter
Should we add some specifics to it to make them a bit different?
As this is an 8 kyu level Kata, I understand the intention of not needing to validate inputs as a way to keep it simple for beginners, but didn't get the point of including the function inside a class. Wouldn't that probably confuse beginners as they could think the class was a necessary element for the function to work?
Otherwise, good Kata for comprehending the usefulness of programming for little things like finding the perimeter of a rectangle.
it's too easy add a strings in width and or length values
I think there can be less original code - if anything that confused me on how I would write it by myself.
The initial setup for JS is unnecessary complicated. Instead, a single function can be used, like this:
or this:
As this kata is too simple, it will appeal more to beginners. The simple syntax will be more helpful for them, as they might not understand the complicated initial code.
CoffeeScript Translation Kumited! Please Accept :D