tags:

views:

66

answers:

2

I would like to build a web service, which can be used for teaching programming and setting up programming quizzes.

I have envisioned that at its simplest form, the end user would see a web page which contains one to n questions, and as many text boxes for writing the code for each question. Right next to each text box there should be a "run" button, which would execute the program and print output of the program to the web page.

The language should be safe in the sense, that the code must be run in some kind of a sandbox. And naturally simple syntax would be a good thing.

I welcome different views on how you would implement such a service.

+1  A: 

Javascript is a great language to teach programming; note that because execution happens in the user's own browser, there is little opportunity to do the hacking here (no code is sent up to the server).

Alex
That's true, however we need to capable of storing the code also to our server.
tputkonen
+3  A: 

There is http://codepad.org/ already, which can do same things.

S.Mark
Well spotted. I hate re-inventing the wheel. As getting the wheel round was pretty excellent. <:-)
Thanks, this is interesting and I hadn't run into that site yet. However, I need to get something that I can integrate into our own web site. I could of course contact developer of codepad and ask if it's available.
tputkonen