• 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
Fonstw Avatar
Name:Fonzie!
Clan:Unknown
Member Since:Apr 2023
Last Seen:Jan 2024
Profiles:
Following:1
Followers:0
Allies:0
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (15)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • Blind4Basics
    • resolved an issue on "Split Strings" kata
    • 12 months ago

    .

  • Custom User Avatar
    • gwpantazes
    • commented on "Split Strings" ruby solution
    • 2 years ago

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

  • Custom User Avatar
    • Fonstw
    • commented on "Can you get the loop ?" php solution
    • 2 years ago

    It's generally advised to use while (true), instead of for (;;) in PHP.

  • Custom User Avatar
    • Fonstw
    • commented on "Can you get the loop ?" php solution
    • 2 years ago

    It's not clear how you would speed it up, can you show an example of what you mean? (don't forget to mark it as a spoiler)

  • Custom User Avatar
    • Fonstw
    • commented on "Can you get the loop ?" kata
    • 2 years ago

    Do you mean to say this can't be done in PHP?

    Because the fact that it's available in PHP tells us that it has been implemented in PHP, there are pre-determined and random unit tests in PHP, and that those have been completed.

  • Custom User Avatar
    • Fonstw
    • commented on "Human Readable Time" php solution
    • 2 years ago

    The parentheses are not necessary, as you do the modulo first already.

  • Custom User Avatar
    • Fonstw
    • commented on "Human Readable Time" php solution
    • 2 years ago

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

  • Custom User Avatar
    • Fonstw
    • commented on "Convert a Number to a String!" ruby solution
    • 2 years ago

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

  • Custom User Avatar
    • Fonstw
    • commented on "Moving Zeros To The End" kata
    • 2 years ago

    It doesn't have to be, and this is up to every programmer's preference.

    The Ruby Style Guide does suggest putting method names in snake_case, but this is only a suggestion.

  • Custom User Avatar
    • Fonstw
    • created an issue for "Split Strings" kata
    • 2 years ago

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

  • Custom User Avatar
    • Fonstw
    • commented on "Split Strings" ruby solution
    • 2 years ago

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

  • Custom User Avatar
    • Fonstw
    • commented on "Fake Binary" ruby solution
    • 2 years ago

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

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

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

  • Custom User Avatar
    • Fonstw
    • commented on "Bit Counting" kata
    • 2 years ago

    You can type your code into the top-right textbox. You can press Ctrl+' to test your code. You can press Ctrl+Enter to attempt sending in your solution. If it passes all tests, including random ones, you can press Ctrl+Enter again to upload your solution.

    If you wrote your code somewhere else, you can copy the text and paste it into the top-right textbox.

    If there's still any confusion, just reply your question to my comment!

  • Custom User Avatar
    • Fonstw
    • commented on "Sentence Smash" ruby solution
    • 2 years ago

    The line return "" if words.empty? is completely redundant here, as [].join(" ") returns the same thing.

    It's a nice touch, but why include it if it essentially does nothing, right?

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...