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 just like the fact that you approched the problem with a state machine.
I mean, if you are going to implement a pig latin translator, might as well have fun with it! I'm glad you got a laugh out of it; I certainly did! :D
lol...over engineering.
Should have used char.IsLetter(...) instead of writing it custom.
if
statement with the plain doublereturn
is usually a good case for ternary operatorA slightly shorter vesion of your nice recursive solution
na, what is REALLY wrong here is the string concatenation.
(EDIT: and stop thinking that best practice is "I don't need to think when I read code" or you'll stuck yourself at white katas)
This really is a good example of unclear code... :/ Not a quite a best practice I would say. If you make your reader think, something is wrong.