• 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
ah01 Avatar
Name:Adam Hořčica
Clan:Profinit
Member Since:Jul 2015
Last Seen:Aug 2023
Profiles:
Following:11
Followers:9
Allies:9
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (43)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • blueneosky
    • commented on "The 'if' function" csharp solution
    • 9 months ago

    func1 and func 2 are delegates, a type that represent a calling site (a method somewhere).

    It's like pointer of function in C/C++, but delegates in C# posses more informations than that (the instance of the object for non static method, ...)

    This feature is used in many scenario: Event manamgement, Linq (to object), ...

  • Custom User Avatar
    • blueneosky
    • commented on "The 'if' function" csharp solution
    • 9 months ago

    If compiler produce a binary and the binary works, that's clearly legal.

    But, as you don't put parenthesis on a variable, it's better to use Invoke() to clarify the context.

  • Custom User Avatar
    • EndyPlus
    • commented on "Classy Classes" javascript solution
    • 14 months ago

    Good

  • Custom User Avatar
    • dfhwze
    • resolved a suggestion on "Null-Conditional Operator (C# 6.0)" kata
    • 2 years ago

    fixed for C#

  • Custom User Avatar
    • RileyHunter
    • resolved an issue on "Null-Conditional Operator (C# 6.0)" kata
    • 2 years ago

    Edited again to show the full accessor chain for each language in the description.

  • Custom User Avatar
    • dfhwze
    • commented on "Null-Conditional Operator (C# 6.0)" kata
    • 2 years ago

    It's already better. But users still need to do console.log(this) in order to find out the names of properties of type "Engine" (property = "engine") and "Gearbox" (property = "gearBox").

  • Custom User Avatar
    • RileyHunter
    • commented on "Null-Conditional Operator (C# 6.0)" kata
    • 2 years ago

    I've added these test cases to JS, but don't have permission to do so for C#.

  • Custom User Avatar
    • RileyHunter
    • commented on "Null-Conditional Operator (C# 6.0)" kata
    • 2 years ago

    The superfluous argument on the function has been removed and I've done a proofreading pass through the description. Please let me know if you have any further issues with the description.

  • Custom User Avatar
    • dfhwze
    • created an issue for "Null-Conditional Operator (C# 6.0)" kata
    • 2 years ago

    Such an annoying kata!

    • description mentions properties compliant to C# naming convention, not JS
    • JS function takes an argument "car", but this is unused, we need to use "this" instead
  • Custom User Avatar
    • Kees de Vreugd
    • created a suggestion for "Null-Conditional Operator (C# 6.0)" kata
    • 2 years ago

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

  • Custom User Avatar
    • Blind4Basics
    • resolved an issue on "Null-Conditional Operator (C# 6.0)" kata
    • 2 years ago

    .

  • Custom User Avatar
    • Kacarott
    • created an issue for "Null-Conditional Operator (C# 6.0)" kata
    • 2 years ago

    In JS, the assertions are swapped. Instead of assert.strictEqual(correctResult, userResult) it should be assert.strictEqual(userResult, correctResult). This is important because otherwise when a solution is wrong, currently it makes it look like the tests have the wrong answer, which is confusing.

  • Custom User Avatar
    • Blind4Basics
    • resolved an issue on "Null-Conditional Operator (C# 6.0)" kata
    • 2 years ago

    .

  • Custom User Avatar
    • Blind4Basics
    • created an issue for "Null-Conditional Operator (C# 6.0)" kata
    • 2 years ago

    Hi,

    For JS, since the case convention isn't the same as C#, the interface should be discussed in the description: the properties are camelCased (please use languages conditional rendering blocks to do so)

    Cheers

  • Custom User Avatar
    • realfg
    • commented on "The 'if' function" csharp solution
    • 2 years ago

    What do you mean by "legal"?
    It's just a very spectacular way of solving this issue, but would never found a way into any prod code,
    due it's complexity.

    But it works for sure and is correct nontheless. :)

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...