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
Fix #518 for 07-find #528
Fix #518 for 07-find #528
Conversation
Modify example slightly to use files in the data-shell directory. This allows testing by learners.
Move solution to a show/hide solution box.
Add a file containing the text of the novel, so learners can actually test their code as they try to solve the problem. Update zip file containing data for exercises.
Add new directory and file to contain example data shown. Update zip archive to contain new file and directory.
@shwina |
_episodes/07-find.md
Outdated
> > ## Solution | ||
> > Find all files with a `.dat` extension in the current directory. | ||
> > Count the number of lines each of these files contains, then sort the output numerically. | ||
> {: .solution} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about we list (enumerate) them:
- Find all files with a
.dat
extension in the current directory - Count the number of lines in each of the above files
- Sort the output from step (2) numerically
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
> > do | ||
> > echo $sis: | ||
> > grep -ocw $sis LittleWomen.txt | ||
> > done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd say let's leave out the inferior solution altogether. Any advantage to keeping it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only that the question suggests two different ways to achieve the outcome. I don't mind removing the alternative solution, so long as we also remove the hint which suggests it.
Or I could add a short note explaining that there is often more than one way to complete a programming task.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @gcapes - I'd suggest keeping the hint and adding the note.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
Thanks! |
Provide solutions and modify exercises to use the example data in data-shell.
Also add files and directories where using existing files wasn't possible.