-
-
Notifications
You must be signed in to change notification settings - Fork 780
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
Perhaps we shouldn't have readings-01.py, readings-02.py etc? #63
Comments
On Fri, Apr 17, 2015 at 08:52:20PM -0700, Damien Irving wrote:
I like the idea, and if we could always count on folks learning Git
But (3) is such a good excuse to remind version-control-aware folks to |
@wking Totally agree that most people (including myself) teach python before git, so I definitely don't think we should go down the route of having a version controlled copy of |
On Fri, Apr 17, 2015 at 09:09:19PM -0700, Damien Irving wrote:
Right. I was just laying out the alternatives and their relative pros |
Agreed that this is a good opportunity to rehash version control if/where appropriate. And if not, a 2 line change to a file is probably straightforward enough to not warrant an extra copy even when not using a VCS. |
I'm -1 on anything more than a brief mention of version control in a
callout box in our Python lesson until after Version 5.3 ships and we
re-think ordering.
|
I wouldn't mention VCS in the text. The instructors can do that orally if appropriate. |
On Sun, Apr 19, 2015 at 04:55:05AM -0700, Florian Rathgeber wrote:
+1 |
I'd love some more comments from people who've taught this recently. Is the suggested code by @DamienIrving at an appropriate level for your students? Too complicated? Just right? |
@abostroem I think this conversation is getting a little confused about exactly what I was suggesting. All I want to do is remove the |
@DamienIrving Your suggestion is to modify the reading-01.py file in place (and maybe indicate this in the instructions somewhere) rather than create a new file with poor naming convention? |
@abostroem Exactly (and yes to indicating in the instructions). I have no intention of mentioning version control in this lesson - I just want to avoid exposure to the poor naming convention because that is inconsistent with what we teach in the version control lesson. |
A nice little addition would be to highlight the changes from one in place edit to the next (e.g. new text in bold), however I have no idea how to make text bold within a block of |
Sounds good to me. Go ahead and make the changes to the file structure and instructions. My only concern is that it is clear where and what we are changing with each iteration. |
Yeah, that's my concern too. |
Happy to rename if someone would like to PR a name change. |
This issue is the oldest open issue in our lesson, where consensus has been reached. I think it makes sense for an instructor to say "and now let's modify our script to do ..." during the lesson. But, perhaps, it also makes sense to have these scripts somewhere in the repo (e.g., in a new "solutions" subdirectory). |
I agree with the instructor having learners start the code and save it in a file called readings.py and indicate to modify this same code as the episode progresses. I like the suggestion of showing the script throughout the lesson with the changing lines highlighted. I am not a fan of the idea of saving all the readings_*.py files in the repo. Similar to how the |
Yes. For me it makes sense to keep readings.py and modify the same code step by step. The progression (from the "initial" version to the "final" version) is helpful for learners but the numbering readings-01.py, readings-02.py is artificial and indeed goes against what we are trying to teach in the Carpentries. And I also agree that we can have the final version of readings.py in the code subdirectory. |
Thank you, Lauren and Anne. Damien (@DamienIrving), are you still interested in working on this issue or would you prefer to delegate it to us / someone else? |
@maxim-belkin Sorry to be that person, but if I could delegate that would be great. |
Every time I read the command line lesson (
08-cmdline.html
), the filesreadings-01.py
,readings-02.py
, etc make me very uncomfortable, because that type of file naming behavior is exactly what we are trying to avoid by teaching version control.I think the solution to this problem comes from the very beginning of the lesson, which reads:
We could take a similar approach to the rest of the lesson and instead of saying
$ cat readings-01.py
we could simply save the following in a text file calledreadings.py
:Later in the lesson when we get to
readings-02.py
, we could just say that we open our text editor and make the following changes toreadings.py
:The trick would be to somehow highlight
main()
in bold or a different color, because that is the part of the script that has changed since last time (i.e. kind of likegit diff
highlighting).If people are happy with this suggestion of altering the wording of the command line lesson to make successive edits to
readings.py
as opposed to going$ cat readings-01.py
,$ cat readings-02.py
etc then I'd be happy to submit a pull request. (I'm also open to suggestions of how to incorporategit diff
style highlighting into that PR, but I'd have to be able to write it in markdown and then and have pandoc convert it appropriately - I'm not aware of any way to make that happen.)The text was updated successfully, but these errors were encountered: