• 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
imatari Avatar
Name:matari
Clan:CodeBuddies
Skills:javascript, java, c#
Member Since:Sep 2017
Last Seen:Apr 2024
Profiles:
Following:28
Followers:28
Allies:28
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (12)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • MarkusDegen
    • commented on "Count Odd Numbers below n" csharp solution
    • 4 years ago

    Good Question, i have no clue anymore.
    I guess it was at the time i wanted to learn a bit more about Linq
    and tried to solve a lot with usage of Linq

  • Custom User Avatar
    • banoski
    • commented on "Count Odd Numbers below n" csharp solution
    • 4 years ago

    Guess they just copied the 'best practice'

  • Custom User Avatar
    • Haksell
    • commented on "Volume of a Cuboid" kata
    • 5 years ago

    Modified the starting code to be more beginner-friendly and less repulsive.

  • Custom User Avatar
    • imatari
    • commented on "Count Odd Numbers below n" csharp solution
    • 7 years ago

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

  • Custom User Avatar
    • imatari
    • commented on "Century From Year" csharp solution
    • 7 years ago

    don't listen to maxim. i appreciate what you did. it made me think : )

  • Custom User Avatar
    • NandiChummer
    • commented on "Powers of 2" csharp solution
    • 7 years ago

    I think using properties of the object (result-array) is much more obvious and understandable by other developers. There is no risk of changes of the length after creating the array (and if it would change you wouldn't have the threat of missing it), where 'n' could be used for something else in between the array creation and the population of the array.

  • Custom User Avatar
    • imatari
    • commented on "Powers of 2" csharp solution
    • 7 years ago

    mine was the same except that I used 'n' instead of result.Length

  • Custom User Avatar
    • Voile
    • commented on "Fake Binary" javascript solution
    • 7 years ago

    Or more generally, for any object that has length property.

  • Custom User Avatar
    • Unnamed
    • commented on "Fake Binary" javascript solution
    • 7 years ago

    As for mappability, it depends on what you consider mappable. Array.prototype.map works on strings.

  • Custom User Avatar
    • tessa_
    • commented on "Fake Binary" javascript solution
    • 7 years ago

    Functional tools like map are very standard now and should be familiar to anyone using the language seriously. The only part of this answer that is tricky is the use of split(''), but this is a pretty common trick for getting an array of characters (as Javascript unfortunately won't treat strings as mappable collections). join is used in a plain way. The implicit conversions from string to int are a little weird.

  • Custom User Avatar
    • imatari
    • commented on "Fake Binary" javascript solution
    • 8 years ago

    how is this best practice though?
    it is more esoteric than it is readable : /

  • Custom User Avatar
    • imatari
    • commented on "Volume of a Cuboid" kata
    • 8 years ago

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

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...