• Sign Up
    Time to claim your honor
  • Training
  • Practice
    Complete challenging Kata to earn honor and ranks. Re-train to hone technique
  • Freestyle Sparring
    Take turns remixing and refactoring others code through Kumite
  • Community
  • Leaderboards
    Achieve honor and move up the global leaderboards
  • Chat
    Join our Discord server and chat with your fellow code warriors
  • Discussions
    View our Github Discussions board to discuss general Codewars topics
  • About
  • Docs
    Learn about all of the different aspects of Codewars
  • Blog
    Read the latest news from Codewars and the community
  • Log In
  • Sign Up
Repurposed Programmer Avatar
Name:Kat
Clan:Unknown
Member Since:Sep 2015
Last Seen:Dec 2015
Profiles:
Following:0
Followers:0
Allies:0
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (9)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • joaocarreira88
    • commented on "Count by X" ruby solution
    • 2 years ago

    Cool

  • Custom User Avatar
    • FArekkusu
    • commented on "Grasshopper - Summation" ruby solution
    • 7 years ago

    You should never put any information which might give away the kata solution in the comments (without checking the "mark as having spoiler content" box) as they're visible to every one.

  • Custom User Avatar
    • nwallace
    • commented on "Grasshopper - Summation" ruby solution
    • 7 years ago

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

  • Custom User Avatar
    • nwallace
    • commented on "Grasshopper - Summation" ruby solution
    • 7 years ago

    Range has a #sum method, which will cover the 0 case on its own: (1..num).sum works perfectly

  • Custom User Avatar
    • glonnon
    • commented on "Grasshopper - Summation" ruby solution
    • 9 years ago

    Removing every theoretical edge case isn't relevant and is not best pracitice and can even fall into bad practice. Staying pithy and readable is best practice. Much depends on the context whether you would use this or something else. If it's going to be used generally in a large application best to use a well worn solution or spend more than the 2 minutes creating method but you need to know the context of the method.

  • Custom User Avatar
    • GammaCodeX
    • commented on "Grasshopper - Summation" ruby solution
    • 9 years ago

    edge case fail (as pointed out, with an example fix) and bad runtime makes me seriously question the people calling it best practise. I would not like this in production code.

  • Custom User Avatar
    • njohnson7
    • commented on "Grasshopper - Summation" ruby solution
    • 9 years ago

    fix by doing .reduce(0, :+)

  • Custom User Avatar
    • youngmanr
    • commented on "Excel sheet column numbers" kata
    • 10 years ago

    I have been able to submit now thank you.

  • Custom User Avatar
    • Repurposed Programmer
    • created a question for "Excel sheet column numbers" kata
    • 10 years ago

    For Ruby, I pass the tests with flying colors. However when I submit... I recieve the following error:

    title_to_number': undefined method +' for nil:NilClass (NoMethodError) from block in ' from block in describe'
    from measure' from describe'
    from `
    '
    Any tips on getting past this?

  • © 2025 Codewars
  • About
  • API
  • Blog
  • Privacy
  • Terms
  • Code of Conduct
  • Contact

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...