• Sign Up
  • Kata
  • Kumite
  • Blog
  • Forum
  • Wiki
  • Leaders
  • Log In
  • Sign Up
Name:Unknown
Clan:Mesh Cowork
Skills:ruby, data structures and algorithms, git
Member Since:Dec 2013
Last Seen:Oct 2019
Profiles:
Following:27
Followers:29
Allies:27
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (28)
  • Replies
  • Authored
  • Needs Resolution
    • Ashvith
    • commented on "Complementary DNA" ruby solution

    This is why I love Ruby more than Python!

    • codeloopy
    • commented on "Categorize New Member" ruby solution

    Absolutely beautiful!

    • ClementPain
    • commented on "Categorize New Member" ruby solution

    Joli ! Really nice short way to tell a long story

    • PixAff
    • commented on "Categorize New Member" ruby solution

    nice one

    • Andres__DC
    • commented on "Complementary DNA" ruby solution

    I knew Ruby could do it in less than 40 characters! Damn!

    • thethirdheat
    • commented on "Categorize New Member" ruby solution

    good to know you can splip up the elements of an array like that.

    • nuringa
    • commented on "Return Negative" ruby solution

    cool thank you!

    • domgetter
    • commented on "Return Negative" ruby solution

    This comment is hidden because it contains spoiler information about the solution

    • nuringa
    • commented on "Return Negative" ruby solution

    can you explain this solutin to me?

    if we have a negative (-num) makes it positive and then (abs) should leave it positive

    but it's not - why is that?

    • dexion
    • commented on "Categorize New Member" ruby solution

    What about conditions for gandicap? I should be -2 < gandicap < +26. This solution doesn't consider all kata's conditions

    • FreeGh0o0st
    • commented on "Complementary DNA" ruby solution

    Wow, it's fascinating how my 10 to 15 lines of code turns into only just 1 line of code, happened before :)

    Good Job.

    • FreeGh0o0st
    • commented on "Complementary DNA" ruby solution

    Me too... Spoilers.... :)

    • phaul
    • commented on "Return Negative" ruby solution

    it's not just one liner. You use return when you want to return from the function early. In fact return doesn't mean to return with a value - that's optional, it just means interrupt this function here.

    a
    return if b
    c
    

    This will return with nil not evaluating c if b.

    Otherwise on the last line of the function it's more Ruby-esque not to use return

    • moosebeloose9
    • commented on "Return Negative" ruby solution

    is it best practice to not explicitly use 'return' for a 1 liner?

    • Voile
    • resolved an issue on "Enumerable Magic #32 - Zip Up!" kata

    Out of specs

  • Loading more items...
  • © 2021 Codewars
  • About
  • API
  • Blog
  • Privacy
  • Terms
  • Contact
  • powered by

Confirm

  • Cancel
  • Confirm