• 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
JoshCheek Avatar
Name:Josh Cheek
Clan:Turing School of Software and Design
Member Since:Nov 2014
Last Seen:Jul 2024
Profiles:
Following:195
Followers:235
Allies:195
View Profile Badges
Ad
Would You Pass the Google SQL Interview? Test Yourself with These 7 Concepts
Study up for your next SQL interview with these interview questions.
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (16)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • Yoav6
    • commented on "Validate Sudoku with size `NxN`" kata
    • 5 years ago

    Yup, came here to say that. all the invalid input tests are mostly just annoying, don't make much sense, and make everybody's code look worse.

  • Custom User Avatar
    • JoshCheek
    • commented on "Pick peaks" ruby solution
    • 5 years ago

    Ahh, I forgot about slice_when. Really nice solution!

  • Custom User Avatar
    • JoshCheek
    • commented on "Decode the Morse code, for real" kata
    • 5 years ago

    This would have been nice to know going in. I wound up with these numbers hard-coded based on test cases and had no idea why.

  • Custom User Avatar
    • Nova Jacobsen
    • commented on "The observed PIN" ruby solution
    • 5 years ago

    Wow learned a lot from this example.
    First of I've never seen to_proc (&) used on a hash before like that. Thats sweet

    I'm not entirely sure why each number is wrapped into singletons on the rhs of the hash though. Wouldn't a list of numbers work just the same?

  • Custom User Avatar
    • pmengelbert
    • commented on "Validate Sudoku with size `NxN`" ruby solution
    • 6 years ago

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

  • Custom User Avatar
    • pmengelbert
    • commented on "First non-repeating character" ruby solution
    • 6 years ago

    ever so slightly more pretty. I was thinking the same thing!

  • Custom User Avatar
    • Voile
    • resolved an issue on "Validate Sudoku with size `NxN`" kata
    • 7 years ago

    Fixed

  • Custom User Avatar
    • Voile
    • resolved an issue on "Validate Sudoku with size `NxN`" kata
    • 7 years ago

    Fixed

  • Custom User Avatar
    • Voile
    • resolved a suggestion on "Validate Sudoku with size `NxN`" kata
    • 7 years ago

    This is an old kata and back then nobody has any concerns about kata designs, naming practices or even comprehensive tests... groans And they even think that input validation is cool and is a valid way to sprinkle "difficulty" to katas, that pretty much all mediocre katas demand some form of trivial and yet annoying input validation.

    I'm not going to revamp the entire kata and add comprehensive, random tests to all languages since it belongs to a massive batch of duplicates anyways (see this list), but I just fixed the setup code and change is_valid to valid?. It breaks all current solutions, but it's just ~250 of then, so I guess it's okay ;-)

  • Custom User Avatar
    • Voile
    • resolved an issue on "Validate Sudoku with size `NxN`" kata
    • 7 years ago

    Seems not applicable anymore

  • Custom User Avatar
    • JoshCheek
    • created a suggestion for "Validate Sudoku with size `NxN`" kata
    • 7 years ago
    • I'll advocate removing the tests for invalid values. If that occurs, it's a bug in the calling code, not the lib. I think the lib should assume valid behaviour, or possibly raise specific errors, but definitely not mask the bug by returning false

    • The Ruby setup is syntactically invalid, and Ruby's predicate is a suffix of ? rather than a prefix of is_, hence:

      class Sudoku
        def initialize(board)
        end
        def valid?
        end
      end
      
    • Other than that, nice kata :)

  • Custom User Avatar
    • JoshCheek
    • commented on "Mexican Wave" ruby solution
    • 7 years ago

    Explanation of some of the subler parts: https://twitter.com/josh_cheek/status/1023789398792568832

  • Custom User Avatar
    • JoshCheek
    • commented on "First non-repeating character" ruby solution
    • 7 years ago

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

  • Custom User Avatar
    • Blind4Basics
    • commented on "Site Design" topic
    • 7 years ago

    EEerrrmmmm... Or the honor points? Or the progress feature...? ;) (well, the last one evolves slower and slower, yes)

  • Custom User Avatar
    • FArekkusu
    • commented on "Site Design" topic
    • 7 years ago

    Erm, do you mean the Kata section of your profile where you can find a list of all your solved and not solved katas?

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...