[Tutor] Creating To Do List Program - Question

Steven D'Aprano steve at pearwood.info
Tue Oct 1 03:32:33 CEST 2013


On Mon, Sep 30, 2013 at 01:12:49PM +0200, Rafael Knuth wrote:
> Hej there,
> 
> @Alan @Joel:
> I didn't know that pouring corn on newbies is the purpose of a tutor
> mailing list.

The word you want is "scorn", not corn.


> I do not understand why you don't consider what I wrote not a program
> ("Hello World!" in a more elaborate form), as the user is actually
> able to a list, to write to and reads from it (in a very primitive
> manner though).  Can anyone explain? 

Your program doesn't do any work at all. It might as well be a blog 
post, or a post-it note stuck to the side of the computer with 
instructions.

Now that's fine. If you want to teach other people how to program, 
telling them to write code like:

textfile = open("ToDoList.txt", "r")
textfile.write("Thing to do\n") 
textfile.close()

is a perfectly legitimate thing to do. But that's not *programming*. You 
haven't written a to-do list program, you have written instructions for 
somebody else to save a to-do list.



-- 
Steven


More information about the Tutor mailing list