5 kyu
one line task : date converter (not that date, the other one)
77___i
Loading description...
Puzzles
Games
Date Time
Restricted
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
This comment has been hidden.
Kata Update
This kata needs updating from
Node 10.x
. It is one of the very last in thatNode
version, preventing complete removal of that version.This comment has been hidden.
This comment has been hidden.
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.
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)
Well, atleast people'll learn something :)
Also, not an issue, more like a suggestion.
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.
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
, andget 2 chars by index VS get 2 chars by slicing
.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.
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.
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...