• 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
glebec Avatar
Name:Gabriel Lebec
Clan:Fullstack Academy
Skills:photography, calligraphy, typography, functions
Member Since:Aug 2014
Last Seen:Jun 2025
Profiles:
Following:529
Followers:556
Allies:527
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (344)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • trashy_incel
    • resolved a question on "I Spy" kata
    • 8 months ago

    check this out:

    const xs = {};
    xs[{}] = '???';
    ({a : 'b'}) in xs; // true
    

    JavaScript's object-to-string conversion is messy ;-)

  • Custom User Avatar
    • Shist
    • created a question for "I Spy" kata
    • 8 months ago

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

  • Custom User Avatar
    • BreezyMain
    • commented on "Infix to Postfix Converter" haskell solution
    • 9 months ago

    of course, it for alignment only.

  • Custom User Avatar
    • rsschool_6a09426afc28de8e
    • commented on "Replicate `new`" kata
    • 15 months ago

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

  • Custom User Avatar
    • trashy_incel
    • created a suggestion for "I Spy" kata
    • 2 years ago

    NOTE: The test cases for this kata are broken, but for some reason CodeWars has locked them and I cannot edit them. Specifically, the returned function is not propertly testing that old values are remembered. If and when I can fix the problem, I will, but I don't see any way to do that due to the lock.

    Is this still relevant ?

  • Custom User Avatar
    • trashy_incel
    • resolved a question on "Replicate `new`" kata
    • 2 years ago

    it means you returned an object instead of a function. if a constructor returns a non-primitive, this is what new evaluates to; and functions are not primitives

  • Custom User Avatar
    • trashy_incel
    • commented on ""Replicate `new`" JavaScript Translation"
    • 2 years ago

    Thanks for the approval; I changed the assignments to use single-assignment form from the kata editor. Also disabled Function, which I had forgotten

  • Custom User Avatar
    • trashy_incel
    • resolved a suggestion on "Replicate `new`" kata
    • 2 years ago

    i disabled it as well, but i'm sure there are still many more ways to cheat. i mostly wanted to disable the most obvious ones and to upgrade the tests suite

  • Custom User Avatar
    • trashy_incel
    • resolved an issue on "Replicate `new`" kata
    • 2 years ago

    invalidated

  • Custom User Avatar
    • trashy_incel
    • resolved an issue on "Replicate `new`" kata
    • 2 years ago

    done

  • Custom User Avatar
    • trashy_incel
    • resolved an issue on "Replicate `new`" kata
    • 2 years ago

    invalidated

  • Custom User Avatar
    • Mednoob
    • commented on "Replicate `new`" kata
    • 2 years ago

    It was approved by someone, however it seems you forgot one more thing to disable:

    https://www.codewars.com/kata/reviews/558cd9c3a98f5f0da3000057/groups/652f2c058fb49d00018471c9

  • Custom User Avatar
    • glebec
    • commented on ""Replicate `new`" JavaScript Translation"
    • 2 years ago
    eval = require = function doNotUseEvalOrRequire() {
    

    IMHO let's not use double assignment even in the author-facing side as it's so rare an idiom / so anti-standard-style. Two separate assignments is much clearer.

    LGTM otherwise

  • Custom User Avatar
    • trashy_incel
    • created a suggestion for "Replicate `new`" kata
    • 2 years ago

    JS fork

    • properly disallowing new
    • tentatively disabling eval() and require()
    • upgrading assertions to use chai
  • Custom User Avatar
    • zarakshr
    • commented on "Sure, but can you SKI? (I)" kata
    • 2 years ago

    For what it's worth, I was vaguely familiar with what combinators were before I started this kata so I ended up having to manually derive most of the combinators from scratch (although the derived answers I got were extremely ugly and took me 2 weeks total), yet I loved the experience cause it really helped me understand combinators properly.

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...