-
-
Notifications
You must be signed in to change notification settings - Fork 381
New Python beginner lessons #132
New Python beginner lessons #132
Conversation
+1 on using a new development branch here |
On Wed, Nov 06, 2013 at 08:11:51AM -0800, Greg Wilson wrote:
You add gen-inflammation.py and inflammation-01.csv in 282934c |
On Wed, Nov 06, 2013 at 08:19:23AM -0800, Aron Ahmadia wrote:
Also +1. And +1 for @gvwilson using a feature branch in his own On Wed, Nov 06, 2013 at 08:26:21AM -0800, W. Trevor King wrote:
|
On Wed, Nov 06, 2013 at 08:29:52AM -0800, W. Trevor King wrote:
Although the branching-off point for bc/master from bc/gh-pages seems |
I've checked in the files because they're cat'd in notebooks, and I want |
@wking I think the plan is to back-tag that commit as a pre-release, land the current PRs, then move development over to this branch. It happens to be the place where @gvwilson started working on the new reorganization from the (then-tip) of bc/gh-pages. |
I don't have strong opinions on the generated CSV files, since they are so tiny. I think they do fall under the we should eventually generate these instead of committing them category, but we don't have that flow properly set up, so I'm +1 on leaving them as-is for now. |
On Wed, Nov 06, 2013 at 08:35:05AM -0800, Greg Wilson wrote:
Consistency as in “identical ‘random’ data” should be possible by Consistency as in “ready for Jekyll and per-boot-camp branches” is not For previewing the content in this PR, I understand that you want the
If you're generating them with Makefile rules, you can put the new PYTHON = python2.7 python/novice/inflammation-%.csv: python/novice/util/gen-inflammation.py |
On Wed, Nov 06, 2013 at 08:50:04AM -0800, Aron Ahmadia wrote:
Ok, I'm just trying to:
|
@wking - I think another restructuring after our current round of restructuring appears to be inevitable :) Your points are absolutely valid, and I really appreciate your close eye on what's entering the repository, because even a 50 KB generated file would be a bad idea in this context. I'd love to have a flow in place that includes a content generation stage, but I don't think we're going to be able to really seriously discuss that until January. Until then, I propose we disallow any big generated content into the repositories, and work with the R and IPython Notebook files in an effort to get those ready for generating as well. I agree that it's a compromise, but as @gvwilson says, let's focus on getting the content in first, and we can defer cleaning up while we're still sorting out our development strategy. |
Comments on python/novice/01-numpy.ipynb sent by @jdblischak by email before this PR landed:
|
Comments on python/novice/02-func.ipynb by @jdblischak sent by email before this PR landed: I did not like the normalize function example for multiple reasons:
|
Comment on python/novice/03-loop.ipynb sent by @jdblischak before this PR landed: How did you imagine the students solving the function to reverse a string? I came up with two solutions, but I think both are somewhat advanced. This is the first for loop they are going to have ever written. My first requires them to remember how to index from the back of a list, initiate a string and an integer variable, and to update both of those variables during each iteration of the loop. The second one I doubt the students would ever come up with since the lesson is about loops and you only briefly introduced specifying a step in a slice in the first lesson. Perhaps you could have an exercise before this one that is super simple. One where they can struggle to remember to put a colon and indent the body of the loop. Then once they have gained some confidence and familiarity with the for loop, they could move on to this exercise.
And I am stumped on the second one. To solve this problem I would either use the range function in conjunction with a for loop or use a while loop. Since you have not introduced the range function or while loops, how did you envision them solving this? My solutions are below:
|
Comment sent by @wking before this PR landed:
|
Comment by @wking sent before this PR landed: There's some indentation trouble around your second challenge, where you also introduce tupple assignment:
without having covered it in the text. Maybe the goal of the challenge is to have them try that for themselves, and you step in and explain it afterward? |
Comment sent by @jiffyclub before this PR landed: The first challenge set in 01-numpy.ipynb seems utterly unrelated to the preceding material. |
On Wed, Nov 06, 2013 at 08:11:51AM -0800, Greg Wilson wrote:
Are we floating this a an example to decide how the new restructured |
I hope most of the existing content under |
On Wed, Nov 06, 2013 at 10:52:00AM -0800, Greg Wilson wrote:
Agreed, just making sure we were all on the same page.
This stuff as in “PR #132”? And “field-tested” in which boot camps? |
|
On Wed, Nov 06, 2013 at 11:47:03AM -0800, Greg Wilson wrote:
Thanks. I've tagged 2013-10-greenwich |
On 2013-11-10 9:19 PM, Aron Ahmadia wrote:
|
Just a couple of comments on the testing content in 05-qa.ipynb.
|
"and most importantly,\n", | ||
"functions.\n", | ||
"What they haven't done is show us how to tell if a program is getting the right answer.\n", | ||
"If each line we right has a 99% chance of being right,\n", |
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.
Is 99% an empirically derived estimate, or is this simply a thought experiment to justify testing?
I really like the last lesson on taking command line arguments! I wish I had come across a similar lesson when I was first learning Python. I think novices will really benefit from this material. |
I really like the command line lesson as well, but it's actually material that I think of as being more intermediate. @gvwilson - you've gotten all the way through the command line material with complete beginners? |
On 2013-11-14 3:52 PM, Ethan White wrote:
|
+1 |
@gvwilson - This PR has gotten too big for me to casually review. I'd suggest you delete behind you the Python lesson material you've used, and merge this when you're ready. |
.pyc
files when doingmake clean
.NEW_MATERIAL.md
file that will eventually become the newREADME.md
.