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

Meetup - 5th Monday #38

Closed
kytrinyx opened this issue Mar 22, 2015 · 5 comments
Closed

Meetup - 5th Monday #38

kytrinyx opened this issue Mar 22, 2015 · 5 comments

Comments

@kytrinyx
Copy link
Member

There is an interesting edge case in the meetup problem:
some months have five Mondays.

March of 2015 has five Mondays (the fifth being March 30th), whereas
February of 2015 does not, and so should produce an error.


Thanks, @JKesMc9tqIQe9M for pointing out the edge case.
See exercism.io#2142.

@pminten
Copy link
Contributor

pminten commented Mar 22, 2015

That's not a problem here, the exercise doesn't allow for passing the fourth week. 😛

I'll go and fix it.

@kytrinyx
Copy link
Member Author

Hah, that certainly solves that problem :)

@kytrinyx
Copy link
Member Author

As someone mentioned in the original issue:

You can't regularly schedule a meetup on the fifth week of every month because February usually doesn't have a fifth week at all (and no month ever has a full fifth week). It's nonsense to even support "fifth" as an input in the first place. I think that first-fourth, last, teenth are the only scheduling inputs that should be supported.

What do you think, should we just bail on the fifth week idea?

@pminten
Copy link
Contributor

pminten commented Mar 22, 2015

All things considered I think that's best, yes. The consequence of including it would be to introduce much extra complexity.

Katrina Owen notifications@github.com schreef op 22 maart 2015 21:37:08 CET:

As someone mentioned in the original issue:

You can't regularly schedule a meetup on the fifth week of every
month because February usually doesn't have a fifth week at all (and no
month ever has a full fifth week). It's nonsense to even support
"fifth" as an input in the first place. I think that first-fourth,
last, teenth are the only scheduling inputs that should be supported.

What do you think, should we just bail on the fifth week idea?


Reply to this email directly or view it on GitHub:
#38 (comment)

Verzonden van mijn Android telefoon met K-9 Mail.

@kytrinyx
Copy link
Member Author

Cool, I'll close the issue and the PR. Thanks!

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

Successfully merging a pull request may close this issue.

2 participants