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

Fix #518 for 07-find #528

Merged
merged 8 commits into from Apr 19, 2017
Merged

Fix #518 for 07-find #528

merged 8 commits into from Apr 19, 2017

Conversation

gcapes
Copy link
Contributor

@gcapes gcapes commented Feb 27, 2017

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.

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.
@gcapes
Copy link
Contributor Author

gcapes commented Apr 12, 2017

@shwina
Just a bump, because there have been no comments on this yet.

> > ## 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}
Copy link

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:

  1. Find all files with a .dat extension in the current directory
  2. Count the number of lines in each of the above files
  3. Sort the output from step (2) numerically

Copy link
Contributor Author

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
Copy link

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?

Copy link
Contributor Author

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.

Copy link

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

@shwina shwina merged commit 3fe375a into swcarpentry:gh-pages Apr 19, 2017
@shwina
Copy link

shwina commented Apr 19, 2017

Thanks!

@gcapes gcapes deleted the 518_07-find branch April 19, 2017 12:59
zkamvar pushed a commit that referenced this pull request May 2, 2023
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 this pull request may close these issues.

None yet

3 participants