Hot answers tagged

14

I would suggest you use a code review tool. This is something they will likely need to be using when working in industry. So worth upskill them on it now. You can use githubs one for free. (You are teaching version control so that should be easy enough) Get your students to create a pull request and review that. You can highlite specific lines and put ...


7

It has never occurred to me to use printouts of code, even though I have an older colleague who does this. To me, it seems a little odd as an approach and inefficient. That said, if you wish to have a similar workflow digitally, you might want to consider using a tablet computer with a pen, Microsoft OneNote, and then saving the final output as a PDF. This ...


3

If you can create PDF files (as you indicated in comments) you can use Adobe Acrobat Reader (the free one) to add comments from a keyboard into the code and save it. This is what I use for most student work, listings, dissertations and so on. You can save it and re-upload to the VLE or whatever feedback mechanism being used. Of course, if you have a tablet ...


3

Execution time is unreliable due to variations in hardware and, especially, operating systems. Paging and multi-level cache can make such things worthless. That is why theoretical measures are used. The actual execution time depends on the specific implementation of the algorithm, not its structure. Implemented poorly in Java it will run slower than if ...


3

There is expect. It is designed to test interactive command-line systems. For non-interactive programs it is easier. expect is not java, but as pointed out in the comments. The language is irrelevant, as the testing is done from the outside.


2

To build on what @Buffy said, one way you could go about it in a language like Java is to make them use your own custom data-wrapping objects. If the algorithm takes ints, pass in Ents instead. If your algorithm takes doubles, use Dobles -- the name doesn't matter. The reason to do this is that you can implement Comparable and override equals(...) in order ...


2

Note this answer does assume a batch scanner is available. If you insist on working with printed pages, you could prevent doing (much) manual work returning the files if you either: Keep track of the order of the printed files, correct them, put them in a batch scanner and automatically return the corrected files. Though I could imagine this is not an ...


2

You can try PDF Viewer Pro by PSPDFKit, saw it in the top list on iOS App Store a few days back, looks like it does what you need. I say iPad because I think it allows you easier to create circles and lines than using a mouse on a notebook.


1

I missed this question! I will attempt to provide feedback in parts: I am concerned that there are too many critiera. I don't understand the reason for this concern, so I cannot comment upon it. The criteria seem reasonable to me. It also raises the question of how a student shows they know how to, say, convert between decimal and two's complement. Do I ...


1

This answer is based on the using features and commands available in a Linux environment. The basic idea is to use file redirection to feed input to the program under test (PUT) and collect output, both stdout and stderr. This describes a small system that we have used at Colorado State University that I wrote. If anyone is interested, I can supply both the ...


Only top voted, non community-wiki answers of a minimum length are eligible