[Edu-sig] PyBat ???

David MacQuigg macquigg at ece.arizona.edu
Fri Jan 30 02:54:05 CET 2009


Thanks to all for the suggestions.

At 02:13 PM 1/27/2009 -0800, kirby urner wrote:

>Does it have to be either/or?
>
>I'm somewhat weak in the PHP department but only by choice, know I
>could learn it pronto from Safari, as the concepts are pretty much the
>same.
>...
>
>But is your department smallish, no room in the inn for more than one language?
>
>Our Reed College in Portland has an ad in the paper for web framework
>developer, asking for PHP, Python and Ruby savvy.  That seems like a
>good mix.  Why not push that?

The goal is to teach fundamentals, not specific languages or applications.  Our community college has a course in PHP (also Word, Excel, etc.)  Also, as you point out, students can learn these pronto from Safari, once they understand the concepts.

U of A freshmen currently have two choices - Java or C.  Python is pretty close to Java, and I'm assuming much easier to use for website development (not familiar with what's available in Java, just an extrapolation from other projects comparing Java and Python).  I know PHP is very popular in website development, but I've heard it is insecure, so I would worry about using it to run student code on a webserver.

On a personal level, I probably won't be involved if the decision is PHP.  I just can't see learning a whole new language for one project.  Now if someone were to convince me that PHP, Ruby, or whatever, had some fundamental advantage over Python, I might change my mind.

At 06:27 PM 1/27/2009 -0400, Andre Roberge wrote:

>Have a look at Crunchy (http://code.google.com/p/crunchy) and in
>particular the doctest capability.  It does not (yet) have the ability
>to add student scores but that could be added; otherwise, I believe it
>would have what you need.

Nice Python tutorial!  What I need, however is something like a framework that can be used for other topics, not just Python.  I see from page one of your tutorial that you have the same security concern as I do about running student code, and possibly crashing the University webserver.  Maybe what we need is a private server, or at least a VPS, so a crash wouldn't affect anyone but this group of students.

I guess I'll look into some of the "full-stack" frameworks at http://wiki.python.org/moin/WebFrameworks.

-- Dave


>On Tue, Jan 27, 2009 at 1:57 PM, David MacQuigg
><macquigg at ece.arizona.edu> wrote:
>> The CS Dept is considering putting a bunch of courses online, using PHP as both the development language, and as a new language to teach students.  I've suggested using Python instead.  I need to put together a quick demo.  I'm thinking of something like javabat.com.
>>
>> I've used Mod_python (the Apache/Python integration), but I'm not yet proficient.  Now is the time to change course, if there is a better path.
>>
>> Students will be entering Python code snippets into a window, and we need to run the code on a bunch of test cases, giving immediate feedback on errors, and accumulating the students' scores and work-in-progress.  Running user code is a bit more of a challenge than running our code on user data, but javabat has inspired me.
>>
>> Any recommendations?
>>
>> -- Dave




More information about the Edu-sig mailing list