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 double return is usually a good case for ternary operator
if
return
A 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.
Loading collection data...
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.