Skip to content

Exercises depend on regular expression too much #937

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

Closed
stt106 opened this issue Feb 20, 2019 · 3 comments
Closed

Exercises depend on regular expression too much #937

stt106 opened this issue Feb 20, 2019 · 3 comments

Comments

@stt106
Copy link

stt106 commented Feb 20, 2019

I think the exercises are putting a bit too much emphasis on regular expression. I would think the fundamental goal is to learn Ruby NOT regular expression. I don't have problems with regular expression itself but if I want to learn regular expression then exercism is probably not the best place compared to a dedicated site/book about regular expression.
I personally think the exercised should be designed to teach more about Ruby as a language. For instance, I can solve the word count exercise fairly quickly if the main aim is about counting the words using hash but instead it heavily relies on using regular expression to clean the words before counting it. This makes the whole exercise about regular expression rather than using hash, which I think is distracting for people who are trying to learn hash in Ruby.

@emcoding
Copy link
Contributor

Hi @sst106 Thanks so much for pointing this out. I totally agree with you that the goal is to get fluent in Ruby, and not per se in regular expressions. We're currently working on a project to restructure the track, meaning that we're looking both at all the exercises together, and at individual exercises. The role of regular expressions is absolutely a part of that, but to be honest: it's also not the highest priority at this moment.
On the other hand: we're currently asking mentors to 'give away' the regular expressions, exactly for the reason you mention: that the goal is not to get fluent in regex. That's one way to let regular expressions not get in the way of the exercise, and also take into account that they do play a part in Ruby methods.
I will take your remarks on WordCount into account in the evaluation of the exercise.
Thanks!

@emcoding
Copy link
Contributor

emcoding commented Mar 1, 2019

@stt106 #943 may interest you.

@kytrinyx
Copy link
Member

Closing, as we're now quite happy with the focus of the practice exercises.

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

3 participants