Getting started with Python

Status
Not open for further replies.

DavlinLotze

Ars Scholae Palatinae
830
This is a timely topic for me, as I need to learn Python for a web project. I started through Learn Python the Hard Way based on the recommendation of it both in this thread and in older threads I remember reading. I started and got through about exercise 41 last night, and I plan to finish it tonight. And no, I'm obviously not doing things the hard way as the author wants me to.

If you've got some programming experience in other languages, but not in python, you'll likely tear your hair out at how slowly he moves through the material. But even for someone with no programming experience, I can't say I recommend his pedagogy:
  • It seems rather chaotic in the way it introduces various features without explaining extra details that would flesh-out someone's understanding of the feature. Sometimes he forgets to even explain a feature he introduces.
  • It's full of recommendations for what I call "busy work" - work that takes time but doesn't really teach you anything. (Busy work was enough of a nightmare going through grade school & high school.) Just to pick out an example: he asks you to spend a week memorizing truth tables for various operations and combinations of operations. Huh? What good does that do? Either you understand the concept of what each operation does or you don't. Memorizing times tables makes sense; memorizing truth tables is totally stupid.
  • I don't get the uneven speed at which he teaches. He takes two lessons just to introduce the if statement and its corresponding elif & else; then he gets to lesson 37 where he dumps about 20 new keywords on you and tells you to go look them up and find out what they do. (What's the point of a tutorial if it just tells you to rtfm?)
  • In lesson 38, he tells you to go find random project code, try to find bugs in it and tell the developers how to fix their programs. Seriously? I'm thinking "You haven't even told me what a class is yet, and you want me to fix the code of experience programmers?"
  • Then there's all the bad advice, (and I'm not just talking about example code that shows people the wrong way to go about a particular problem - that's somewhat to be expected in a tutorial). 'Do not use a "debugger".', he says. 'Never nest if-statements more than 2 deep and always try to do them 1 deep.' 'Every if-statement must have an else.'
  • You also have to watch out for statements that are either oblivious in their erroneousness, assuming they weren't deliberately designed to confuse the uninformed, e.g.: "close -- Closes the file. Like File->Save.. in your editor." Note also his abuse of the distinction between "ordinal" and "cardinal".

Anyway, I'll likely follow this up with one or more of the other tutorials listed in this thread, and hopefully get a better foundation for python programming.
 

levine

Ars Tribunus Militum
1,986
DavlinLotze":3nsy8r4m said:
You also have to watch out for statements that are either oblivious in their erroneousness, assuming they weren't deliberately designed to confuse the uninformed, e.g.: "close -- Closes the file. Like File->Save.. in your editor." Note also his abuse of the distinction between "ordinal" and "cardinal".
If you know enough about programming or Python to make statements like these, LPtHW is pretty obviously not targeted to you. You'd be better served reading the docs at python.org, frankly.
 

Yow

Ars Scholae Palatinae
1,047
It just so happens I'm in the same boat. I'm a self-taught web programmer coming from ColdFusion. I've since graduated to PHP, an I've poked around a bit in JavaScript, but I'm constantly looking to expand my skill-set, and Python seemed like a natural choice. I've poked around that Think Python book, and I watched the first few lectures of MIT's OpenCourseware intro to CS class, which includes several exercises done in Python.

The best pedagogical thing I've seen, though—especially if you know some programming—is Google's Python Class. I learned more in two days than I learned in two weeks anywhere else. Very nicely put together, and it gets you doing real-world stuff pretty quickly out of the gate, which is quite rewarding when you're just starting out.
 

Yow

Ars Scholae Palatinae
1,047
xcrunner529":2s85v2j6 said:
The video quality of the class turned me off. But I guess I can't expect everything to match the presentation of the Stanford iOS class on iTunes. It's pretty spectacular.
Yeah, it's not the best, but the accompanying material lets you largely disregard the quality of the on-screen typing he's doing. Just try to follow along, and then read the documents for that lesson to make sure you didn't miss anything. And then do the exercises. The exercises are very well designed and are the real treasure in this course.
 

senan79

Ars Scholae Palatinae
972
Faramir":6rzfrgo8 said:
Based on a prior similar thread I read Think Python: How to Think Like a Computer Scientist and found it good enough to recommend.

Can't compare it to LPtHW, because I didn't read that one.

I believe that version is now inactive.

Current versions for both Python 2 and 3 are in http://openbookproject.net/thinkcs/
 

AllenDowney

Seniorius Lurkius
1
senan79":1o43ahfs said:
Faramir":1o43ahfs said:
Based on a prior similar thread I read Think Python: How to Think Like a Computer Scientist and found it good enough to recommend.

Can't compare it to LPtHW, because I didn't read that one.

I believe that version is now inactive.

Current versions for both Python 2 and 3 are in http://openbookproject.net/thinkcs/

Think Python (at http://www.greenteapress.com/thinkpytho ... ython.html) is an active version that I maintain.

How to Think Like a Computer Scientist (at http://openbookproject.net/thinkcs/) is also active, maintained by Jeff Elkner and others.

They contain some common material, and some different material that targets different audiences.

Hope that helps.
 
Status
Not open for further replies.