Re: automatically grading small programming assignments

2006-12-20 Thread Slawomir Nowaczyk
On Thu, 14 Dec 2006 21:36:31 -0500 Brian Blais [EMAIL PROTECTED] wrote: # Paddy wrote: # It might turn out to be a poor substitute for the personal touch, # especially If they are just starting to program. # # Oh, I didn't mean it to completely replace me grading things, but I # think it

Re: automatically grading small programming assignments

2006-12-20 Thread Paul Boddie
Jeff Rush wrote: For another solution, I wonder whether you could make use of the new Abstract Syntax Tree (AST) in Python 2.5, where you convert the source of an attempt into an abstract data structure, anonymize the method/variable/class names and compare the tree against a correct

Re: automatically grading small programming assignments

2006-12-15 Thread Caleb Hattingh
Hi Brian You could make great use of XML-RPC here. XML-RPC is /really/ easy to use. Here is a simple example: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/81549 You put procedures on the server that will check the args against a the required result, and report back to the student

Re: automatically grading small programming assignments

2006-12-15 Thread Brian Blais
Dan Bishop wrote: On Dec 14, 8:36 pm, Brian Blais [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: Then on your PC you can run a script that loads each of such programs, and runs a good series of tests, to test their quality... What happens if someone-- perhaps not

Re: automatically grading small programming assignments

2006-12-15 Thread André
Brian Blais wrote: Dan Bishop wrote: On Dec 14, 8:36 pm, Brian Blais [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: Then on your PC you can run a script that loads each of such programs, and runs a good series of tests, to test their quality... What

Re: automatically grading small programming assignments

2006-12-15 Thread Andrew Sackville-West
On Fri, Dec 15, 2006 at 06:44:37AM +, Dennis Lee Bieber wrote: On Thu, 14 Dec 2006 12:27:07 -0500, Brian Blais [EMAIL PROTECTED] declaimed the following in gmane.comp.python.general: I envision a number of possible solutions. In one solution, I provide a function template with a

automatically grading small programming assignments

2006-12-14 Thread Brian Blais
Hello, I have a couple of classes where I teach introductory programming using Python. What I would love to have is for the students to go through a lot of very small programs, to learn the basic programming structure. Things like, return the maximum in a list, making lists with certain

Re: automatically grading small programming assignments

2006-12-14 Thread Beliavsky
Brian Blais wrote: Hello, I have a couple of classes where I teach introductory programming using Python. What I would love to have is for the students to go through a lot of very small programs, to learn the basic programming structure. Things like, return the maximum in a list,

Re: [Edu-sig] automatically grading small programming assignments

2006-12-14 Thread Andre Roberge
Hello Brian, I do not teach (much to my regrets) but I have been thinking about what you describe. See below. On 12/14/06, Brian Blais [EMAIL PROTECTED] wrote: Hello, I have a couple of classes where I teach introductory programming using Python. What I would love to have is for the

Re: automatically grading small programming assignments

2006-12-14 Thread Paddy
Brian Blais wrote: Hello, I have a couple of classes where I teach introductory programming using Python. What I would love to have is for the students to go through a lot of very small programs, to learn the basic programming structure. Things like, return the maximum in a list,

Re: automatically grading small programming assignments

2006-12-14 Thread Steven Bethard
Brian Blais wrote: I have a couple of classes where I teach introductory programming using Python. What I would love to have is for the students to go through a lot of very small programs, to learn the basic programming structure. Things like, return the maximum in a list, making lists

Re: automatically grading small programming assignments

2006-12-14 Thread bearophileHUGS
Brian Blais, just an idea. Create an online form to upload the tiny program(s). Such programs can be one for file. Then on your PC you can run a script that loads each of such programs, and runs a good series of tests, to test their quality... Such tests can be about all things, speed, coding

Re: automatically grading small programming assignments

2006-12-14 Thread commander . coder
[EMAIL PROTECTED] wrote: Then on your PC you can run a script that loads each of such programs, and runs a good series of tests, to test their quality... What happens if someone-- perhaps not even someone in the class-- does some version of os.system('rm -Rf /') ? --

Re: automatically grading small programming assignments

2006-12-14 Thread Dennis Benzinger
Am Thu, 14 Dec 2006 12:27:07 -0500 schrieb Brian Blais [EMAIL PROTECTED]: Hello, I have a couple of classes where I teach introductory programming using Python. What I would love to have is for the students to go through a lot of very small programs, to learn the basic programming

Re: automatically grading small programming assignments

2006-12-14 Thread commander . coder
[EMAIL PROTECTED] wrote: Then on your PC you can run a script that loads each of such programs, and runs a good series of tests, to test their quality... What happens if someone-- perhaps not even someone in the class-- does some version of os.system('rm -Rf /') ? --

Re: automatically grading small programming assignments

2006-12-14 Thread Carl J. Van Arsdall
[EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: Then on your PC you can run a script that loads each of such programs, and runs a good series of tests, to test their quality... What happens if someone-- perhaps not even someone in the class-- does some version of os.system('rm

Re: [Edu-sig] automatically grading small programming assignments

2006-12-14 Thread Jeff Rush
Brian Blais wrote: I envision a number of possible solutions. In one solution, I provide a function template with a docstring, and they have to fill it in to past a doctest. Is there a good (and safe) way to do that online? Something like having a student post code, and the

Re: automatically grading small programming assignments

2006-12-14 Thread Brian Blais
[EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: Then on your PC you can run a script that loads each of such programs, and runs a good series of tests, to test their quality... What happens if someone-- perhaps not even someone in the class-- does some version of os.system('rm -Rf /') ?

Re: automatically grading small programming assignments

2006-12-14 Thread Brian Blais
Paddy wrote: It might turn out to be a poor substitute for the personal touch, especially If they are just starting to program. Oh, I didn't mean it to completely replace me grading things, but I think it would be useful if there were a lot of little assignments that could be done

Re: automatically grading small programming assignments

2006-12-14 Thread Paddy
Brian Blais wrote: [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: Then on your PC you can run a script that loads each of such programs, and runs a good series of tests, to test their quality... What happens if someone-- perhaps not even someone in the class-- does some version

Re: automatically grading small programming assignments

2006-12-14 Thread Paul Rubin
Brian Blais [EMAIL PROTECTED] writes: Unfortunately, it takes a lot of time to grade such things by hand, so I would like to automate it as much as possible. ... Or perhaps there is a better way to do this sort of thing. How do others who teach Python handle this? I think you should not

Re: automatically grading small programming assignments

2006-12-14 Thread Dan Bishop
On Dec 14, 8:36 pm, Brian Blais [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: Then on your PC you can run a script that loads each of such programs, and runs a good series of tests, to test their quality... What happens if someone-- perhaps not even someone