5 kyu

one line task : date converter (not that date, the other one)

Description
Loading description...
Puzzles
Games
Date Time
Restricted
  • Please sign in or sign up to leave a comment.
  • MikalaiLappo Avatar

    This comment has been hidden.

  • Mednoob Avatar

    Kata Update

    • Updated to Node v18.x
    • Used chai for assertion
    • Moved length check to preload
  • JohanWiltink Avatar

    This kata needs updating from Node 10.x. It is one of the very last in that Node version, preventing complete removal of that version.

  • dagolinuxoid Avatar

    This comment has been hidden.

  • FArekkusu Avatar

    Asking for one and only one possible solution is not code golf, but bad kata design (as if spamming more CG katas adds any more value to them). Also, adding restrictions to a CG kata is bullshit, you're only further enforcing the users to search for the only existing code that can pass.

    • ___i Avatar

      There are two possible solutions and not one (EDIT : make it three), also a ton of MyJinxin's kata's also have one possible solution and so far I haven't seen anyone open an issue on his Kata's regarding that. Also no one except you seems to mind (alright, Johan also does)

      Also, adding restrictions to a CG kata is bullshit, you're only further enforcing the users to search for the only existing code that can pass.

      Well, atleast people'll learn something :)

      Also, not an issue, more like a suggestion.

      Issue marked resolved by ___i 7 years ago
    • FiveCrayFish973 Avatar

      I agree with @FArekkusu, if there is only one possible solution for a problem (espacially Code-golf), It just isn't that much fun. But nonethelss I don't consider it an issue. And no there is only one possible solution and not 3.

    • FArekkusu Avatar

      There are two possible solutions and not one (EDIT : make it three)

      We must be living in different worlds, because all I see is the same solution with the difference as big as slice an array VS slice a string, and get 2 chars by index VS get 2 chars by slicing.

      Well, atleast people'll learn something

      Code Golf means find the shortest possible solution, not "find the shortest solution, but it has to be performant, and can't use this, and can't use that, and can't use...". It seems you're seeing yourself as a "teacher" if you think people are "learning" something, but they are not. Will I learn something by solving a well-structured, well-made kata imposing an interesting challenge? Well, maybe. Will I learn something from golfing the solution to a super easy kata into unreadable mess with dumb restrictions? Pffft, not at all.

    • Voile Avatar

      Codegolf that only has one solution is fine to me.

      The real problem is, it is counter-productive to write a problem with black-list approaches (aka a big ban list of things that "deviates possible solutions from the intended answer"): it's a very bad way to enforce intended solution and will make everyone hate you for making them have to guess what you're smoking when you're writing the problem. Just look at all those Interview 2.0 questions and the universal hate everyone has on them. (Also they've been proven to be ineffective, so...)

      If people can find lots of alternate solutions to your problem, you need to redesign the problem itself so the intended solution is either naturally enforced, or is the path of least resistence. Adding more things to ban list is just applying lots of duct tape to a poorly designed problem: it's ugly, and it's not gonna hold.

    • hazer_hazer Avatar

      Yes, it's kind of thing like You came up with an idea, found the shortest solution and you add all the restrictions there must be to force people write the same code as you wrote. That's how russian education system works. People don't think the same way...