Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Topics: what is gigasecond about? #64

Closed
kytrinyx opened this issue Jul 22, 2017 · 12 comments
Closed

Topics: what is gigasecond about? #64

kytrinyx opened this issue Jul 22, 2017 · 12 comments

Comments

@kytrinyx
Copy link
Member

In preparation for the launch of the Exercism redesign, we need to decide what topics to list for gigasecond.
See #61 for context.

@ConstantlyLost, @canel-rom1, @dantiel, @deepbsd, @fbi1714, @fwten, @mkrehbs, @patbl, @rpalo - Having solved this, what would you say that gigasecond is about? Did you struggle with anything in particular? What did you learn?

@budmc29
Copy link
Member

budmc29 commented Sep 9, 2017

About: Date/time manipulation and using parameters.
Tags: date, time, string, transforming.
Difficulty: Easy.
Core?: I would vote yes.

The exercise feels easy and a good starting point, can be solved with 1 liner if the user just want to get it done fast, since there are no tests for incorrect inputs.

@deepbsd
Copy link

deepbsd commented Sep 10, 2017 via email

@kytrinyx
Copy link
Member Author

can be solved with 1 liner if the user just want to get it done fast, since there are no tests for incorrect inputs.

@budmc29 Are we missing tests? Or are you saying that we're not doing verification of the input format?

@deepbsd thanks so much for your input on this one. I would concur that this looks like a somewhat intermediate (difficulty 3 or 4, maybe).

@budmc29
Copy link
Member

budmc29 commented Sep 23, 2017

@budmc29 Are we missing tests? Or are you saying that we're not doing verification of the input format?

Just the input format, all the tests assume that the user will pass a correct date.
That's not a bad thing, it helps to keep the exercise simple, because if you add invalid format, the difficulty would be increased a lot.

I still think the difficulty is easy, since you can get the exercise with it's current task done with a few google searches or man page readings.

@deepbsd
Copy link

deepbsd commented Sep 23, 2017 via email

@budmc29
Copy link
Member

budmc29 commented Sep 23, 2017

@deepbsd what would you say the difficulty number is?
Also, what do you think about my proposed tags for this exercise?

@deepbsd
Copy link

deepbsd commented Sep 23, 2017 via email

@budmc29
Copy link
Member

budmc29 commented Sep 23, 2017

@budmc29 I would say 4. Probably a 3 on Linux. Gnu date is not installed on OSX by default, so a user will probably need to install gdate using, say, Homebrew or another package manager. Once that is done the solution is a one-liner.

Okay makes sense, didn't know about OSX not having Gnu date. We'll bump it for 4.

On the tags, maybe 'command substitution' instead of 'string transforming'? What do you think?

Yes, it sound good.

Tags: date, time, command substitution.

@kenden
Copy link
Contributor

kenden commented Oct 16, 2017

if we do not want to depend on utilities, including datebecause it takes different parameters on different platforms, then this exercise becomes very hard.
I would even vote to remove it in this case.

@kotp
Copy link
Member

kotp commented Oct 30, 2017

date I think is available on OSX. Is there something that is requiring gdate to be ran to get back a date?

@kenden
Copy link
Contributor

kenden commented Oct 30, 2017

@kotp The example fails with the macos version of date.

./gigasecond.sh '2011-04-25Z'
/bin/date: illegal option -- -
usage: date [-jnRu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ...
            [-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]

Using gdate, it works fine.

@sjwarner-bp
Copy link
Contributor

Closed via #128

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants