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'm kicking myself so hard right now for not thinking of this solution!
Excellent work!
yeah, this solution reads like poetry, for sure.
dude, i'm with you. This was the best way to do it, for sure.
omg there's a "kind_of?" method? That's totally awesome, dude.
This solution provides a very valuable lesson about coding: Simplicity is king.
This is my favorite solution because it's way simple. Good job!
Wow, this is really unusual code, but I like it somehow!
This comment is hidden because it contains spoiler information about the solution
Ah okay! Literally thought I was going insane there for a minute hahaha!
Thanks, Bkaes, for confirming my understanding of reality! ;)
Omg are you serious?? lol!
I love this!
Realization: Programmers are super-lazy.
Must. Become. Lazy.
+1 Like!
This looks amazing. I really wish I knew what the second half of this code was doing, from chars to "F."
Great job!
I really love the use of the question marks and colons! Makes coding far more fluid, ergonomically speaking!
I think this code is clever because it is the type of code that is not typically on people's radar when they're first learning to code in Ruby on Rails. I know this because I'm a total newbie at this and the first lessons you learn with Ruby are if/elsif/else statements. Using these if/elsif/else statements is therefore the thing that many newbies will be most inclined to use for an assignment like this. This "when" command followed by a range is not something taught very often in your first classes with Ruby and it is the type of free-and-easy code that belies extensive experience with the language. So my thinking goes.
LOL! I love people like this!!
Loading more items...