• 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
chris_m Avatar
Name:Chris Manna
Clan:RTPHomies
Member Since:Sep 2015
Last Seen:May 2024
Profiles:
Following:17
Followers:12
Allies:12
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (82)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • Studenich
    • commented on "Binary Addition" ruby solution
    • 6 months ago

    writing it in 1 line doesn't make it better...

  • Custom User Avatar
    • codegeist
    • commented on "Binary Addition" ruby solution
    • 12 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
    • gjstirling
    • commented on "Binary Addition" ruby solution
    • 4 years ago

    Okay, thanks for that !

  • Custom User Avatar
    • gjstirling
    • commented on "Binary Addition" ruby solution
    • 4 years ago

    Great solution but it has me a little confused.

    How does the last section of code convert the sum into binary ?

    Thanks

  • Custom User Avatar
    • chris_m
    • commented on "Find the smallest" python solution
    • 6 years ago

    Love this. Clearly written. Clean. Maybe consider renaming your "removed" var to "moved".

  • Custom User Avatar
    • chris_m
    • commented on "Alphametics Solver" python solution
    • 6 years ago

    How long did it take you to write this? Just curious.

  • Custom User Avatar
    • FArekkusu
    • resolved an issue on " Vasya and Drinks" kata
    • 7 years ago

    There're already enough.

  • Custom User Avatar
    • AndySia
    • commented on "String incrementer" javascript solution
    • 7 years ago

    Thanks man, this is really helpful for noobies like me.

  • Custom User Avatar
    • Souzooka
    • commented on "By 3, or not by 3? That is the question . . ." javascript solution
    • 8 years ago

    Putting '+' before a string which represents a number will coerce that string into a number, but that's not best practice as it isn't as readable as other methods.

  • Custom User Avatar
    • chris_m
    • commented on "String incrementer" javascript solution
    • 8 years ago

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

  • Custom User Avatar
    • chris_m
    • commented on "By 3, or not by 3? That is the question . . ." javascript solution
    • 8 years ago

    What is the reason you put base ten in the parseInt function?

  • Custom User Avatar
    • chris_m
    • commented on "By 3, or not by 3? That is the question . . ." javascript solution
    • 8 years ago

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

  • Custom User Avatar
    • zblongladder
    • commented on "Binary Addition" ruby solution
    • 8 years ago

    Wouldn't that depend on what your expected behavior on having a non-integer input is? Depending on context, returning without raising an exception could just create problems.

  • Custom User Avatar
    • lindaxiao-hust
    • commented on "Regex validate PIN code" javascript solution
    • 8 years ago

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

  • Custom User Avatar
    • bestwebua
    • commented on "Binary Addition" ruby solution
    • 9 years ago

    \m/

  • Loading more items...
  • © 2025 Codewars
  • About
  • API
  • Blog
  • Privacy
  • Terms
  • Code of Conduct
  • Contact

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...