• 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
codegeist Avatar
Name:Unknown
Clan:Unknown
Member Since:Sep 2021
Last Seen:Sep 2024
Profiles:
    Following:0
    Followers:0
    Allies:0
    View Profile Badges
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations (12)
    • Replies
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • codegeist
      • commented on "Binary Addition" ruby solution
      • 9 months ago

      not the best solution and not very clever.

      • Dont define methods in one line, as it is not very readable
      • Use spaces between operators (+) and parameters to make the code more readable
      • Using a variable like sum for the result of the addition makes the code more self explenatory
    • Custom User Avatar
      • hobovsky
      • commented on "Sum Arrays" ruby solution
      • 12 months ago

      I have this tingling sense telling me that the same message could be carried with a bit milder, less explicit wording. You are strongly encouraged to try next time, would you.

    • Custom User Avatar
      • codegeist
      • commented on "Sum Arrays" ruby solution
      • 12 months ago

      This comment has been reported as abusive

    • Custom User Avatar
      • codegeist
      • commented on "Sum Arrays" ruby solution
      • 12 months ago

      This comment has been reported as abusive

    • Custom User Avatar
      • codegeist
      • commented on "Sum Arrays" ruby solution
      • 12 months ago

      For anyone wondering, this is definitely and absolutely NOT best practice! Its not even a clever solution.

    • Custom User Avatar
      • aslichampion
      • commented on "Convert number to reversed array of digits" ruby solution
      • 3 years ago

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

    • Custom User Avatar
      • juliangalardi
      • commented on "Convert number to reversed array of digits" ruby solution
      • 3 years ago

      @akar-0 LMAO

    • Custom User Avatar
      • akar-0
      • commented on "Convert number to reversed array of digits" ruby solution
      • 4 years ago

      Because people voted for it.

    • Custom User Avatar
      • codegeist
      • commented on "Convert number to reversed array of digits" ruby solution
      • 4 years ago

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

    • Custom User Avatar
      • codegeist
      • commented on "Convert number to reversed array of digits" ruby solution
      • 4 years ago

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

    • Custom User Avatar
      • codegeist
      • commented on "Remove First and Last Character" ruby solution
      • 4 years ago

      I think you dont even need to work of this edge case.
      "abc"[1...-1] # => "b"
      "ac"[1...-1] # => ""
      "a"[1...-1] # => ""

      Thats the only one that may be a problem
      ""[1...-1] #=> nil

    • Custom User Avatar
      • codegeist
      • commented on "Number of People in the Bus" ruby solution
      • 4 years ago

      i think its not a good Ruby practice to use the "return" keyword in the last statement

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

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...