• 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
Denaro Avatar
Name:Denaro Cascioferro
Clan:Cascioferro
Member Since:Oct 2020
Last Seen:Mar 2021
Profiles:
    Following:0
    Followers:0
    Allies:0
    View Profile Badges
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations (11)
    • Replies
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • hobovsky
      • commented on ""Disemvowel Trolls" Kotlin Translation"
      • 2 years ago

      Good point.

    • Custom User Avatar
      • SamukiPL
      • commented on ""Disemvowel Trolls" Kotlin Translation"
      • 2 years ago

      You can also remove this from description:

      // I literally translate the Java code to Kotlin, without adding or removing things.

    • Custom User Avatar
      • hobovsky
      • commented on ""Disemvowel Trolls" Kotlin Translation"
      • 2 years ago
      • Removes unnecessary class and changes the solution to be a top level function.
      • Fixes one broken sample test.
      • Improves feedback of failing tests.
    • Custom User Avatar
      • Bernasss12
      • commented on ""Disemvowel Trolls" Kotlin Translation"
      • 5 years ago

      This seems like an appropriate translation, this isn't the only case where a direct translation from java has the object still in it even though it's no longer necessary. What is important in my opinion is that this Kata has, for better or for worse, been translated for Kotlin for 3 months and has yet to be approved, is there a way to just either delete the "unnecessary" lines and approve it or should I propose a whole new translation that only changes that?

    • Custom User Avatar
      • EWLameijer
      • commented on "Keep Hydrated!" kotlin solution
      • 5 years ago

      As you only assign res once, it is better to use val instead of var

    • Custom User Avatar
      • Denaro
      • commented on ""Disemvowel Trolls" Kotlin Translation"
      • 5 years ago

      I know that dude, but I don't have anytime, I need to do homework from the University.

      I can delete the unnecessary code.
      Stop trash talking and do it yourself then.

    • Custom User Avatar
      • Unnamed
      • commented on ""Disemvowel Trolls" Kotlin Translation"
      • 5 years ago

      But Kotlin isn't Java. Translating to another language, whether programming or natural, should carry not only meaning, but style as well. In this case there's nothing unnecessary in the Java version, it's just that Java is too verbose, but there is unnecessary code in Kotlin.

    • Custom User Avatar
      • Denaro
      • commented on ""Disemvowel Trolls" Kotlin Translation"
      • 5 years ago

      As I said, I translate from Java.
      Literally just translate, I didn't change anything, neither a word.

    • Custom User Avatar
      • Unnamed
      • commented on ""Disemvowel Trolls" Kotlin Translation"
      • 5 years ago

      Why object Troll istead of a plain function? (Even if it is an object, I don't see why it's called Troll.)

    • Custom User Avatar
      • Denaro
      • commented on "Cat years, Dog years" kata
      • 5 years ago

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

    • Custom User Avatar
      • Denaro
      • commented on "Cat years, Dog years" kata
      • 5 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...