• 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
PolyDevil Avatar
Name:Poly Devil
Clan:………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………
Skills:‮xpath
Member Since:Jan 2018
Last Seen:Nov 2023
Profiles:
Following:21
Followers:6
Allies:4
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (39)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • ssgdoge
    • commented on "Find The Parity Outlier" javascript solution
    • 2 months ago

    why

  • Custom User Avatar
    • Francesco-Matteucci
    • commented on "Find The Parity Outlier" javascript solution
    • 6 months ago

    bruh

  • Custom User Avatar
    • ejini战神
    • resolved an issue on "Most sales" kata
    • 13 months ago

    Not a kata issue, your code does not comply to below

    Note: if multiple products have the same revenue, order them according to their original positions in the input list.

  • Custom User Avatar
    • genius-ua
    • commented on "Find The Parity Outlier" javascript solution
    • 2 years ago

    Winner of bad code competition )

  • Custom User Avatar
    • tGoose
    • commented on "Volume of a Cuboid" javascript solution
    • 2 years ago

    I don't get why this is the best. They just changed words into char. Making the code harder to understand. Right?

  • Custom User Avatar
    • RamProg
    • commented on "Find The Parity Outlier" javascript solution
    • 2 years ago

    Can't understand why some people voted this is best practice when it's the exact opposite. Unreadable code with a lot of bloating comments.

  • Custom User Avatar
    • Viktor.startsWith_Z
    • commented on "Volume of a Cuboid" javascript solution
    • 2 years ago

    I'm still a beginner and know a lot about functions, objects, etc., But this gave a lot of confusion as to what the class was, static, etc. It definitely should not be on 8 kuy.

    Or someone could just briefly explain what these things are. ( static, class )

  • Custom User Avatar
    • drewmcdonald1337
    • commented on "Find The Parity Outlier" javascript solution
    • 2 years ago

    My mind when the same direction with checking the first 3 items.

  • Custom User Avatar
    • Devanshukoli
    • commented on "Volume of a Cuboid" javascript solution
    • 2 years ago

    Just wanted to konw, here they want to use make function right? Then why the 'class' and 'static'! I mean what are those? I have seen some of them in Java but in Js? really?

  • Custom User Avatar
    • JohanWiltink
    • commented on "JohanWiltink's fork of PolyDevil's JavaScript solution for "Consecutive Differences"" kumite
    • 4 years ago

    I agree with (1), though you won't always be able to achieve it of course, but I think function should break when passed ( 5 ), unless the specs specifically say to handle both ([int]) and (int,int,..) ( which I would consider bad design ).

    I actually like strong, static typing better than everything JS allows.

  • Custom User Avatar
    • PolyDevil
    • commented on "JohanWiltink's fork of PolyDevil's JavaScript solution for "Consecutive Differences"" kumite
    • 4 years ago
    1. The last argument in reduce is intentional - I like to isolate the scope and try to to operate with the things that are not in the scope. Just a general rule.

    2. And we both didnt consider that would happen if first function call would be on a single value, not an array.
      like difference(5) should probably return 5, same as difference([5]).
      Function should not break.


    But yeah, I agree, there is a room for improvement. Thanks.

  • Custom User Avatar
    • PolyDevil
    • commented on "Most valuable character" javascript solution
    • 5 years ago

    You are right - there is no need to using spread syntax in this case.
    It is just a habit (to create new arrays or object with optional keys without mutations).


    Regarding all the logic in params - this is the dirty way to create variables.

  • Custom User Avatar
    • Puck
    • commented on "Most valuable character" javascript solution
    • 5 years ago

    Is there any particular reason you're writing all the logic in the parameter's field?

    Also this expression [...(p[c] ? [p[c][0]] : [i]), i] couldn't it be written as [p[c] ? p[c][0] : i, i], or am I missing something?

    Anyway thank you for your solution, I learned a lot from it.

  • Custom User Avatar
    • FArekkusu
    • resolved an issue on "Can you create an Ouroboros?" kata
    • 5 years ago

    const ouroboros = (a, n) => ...

    That's not a valid solution. You're doing a completely different thing from what is asked.

  • Custom User Avatar
    • user4896126
    • commented on "Volume of a Cuboid" javascript solution
    • 5 years ago

    best

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...