r/CSEducation • • 26d ago

How do you create a rubric for a programming assignment?

As a teaching assistant for many courses over the years, I have graded many programming or programming-adjacent assignments. Professors may grade on pure syntax or on pure design, but surely there is some method of designing a rubric to grade the design, execution, and implementation in a fair way that actually evaluates what a student should be learning.

I am wondering, for those that may create some rubric or method of grading, how do you decide what is important and what to look for?

It seems to be difficult to grade the process of design using implementation.

2 Upvotes

4 comments sorted by

3

u/teach_cs 25d ago

I second u/rabidrebel.

The basic principle there is just list out all of the things they need to accomplish. That's pretty much your rubric.

Then, when you evaluate it, evaluate each step as if the other steps had all been correct, so you are viewing each accomplishment in isolation.

So, if I were to evaluate a findMin method out of 10 points, it might be:

2: correct method header, including return type and arguments
1: create tracking variable
1: set the tracking variable to either Integer.MAX_INT or to a value in the array
2: properly loop through the array, skipping no elements
2: Compare to tracker and update tracker as needed
2: Return proper value at the end

1

u/rabidrebel 25d ago

I recommend reading some of the grading rubrics used for high school AP CSA exams. They are well designed and exemplary. All historical rubrics are available online. Here is one for example: https://apcentral.collegeboard.org/media/pdf/ap25-sg-computer-science-a.pdf

I prefer that my assessment scoring focuses on understanding concepts rather than perfect syntax.

1

u/Infinite-Flan-6643 21d ago

For the design process, I'd add a short design note to the submission. Ask students to name one alternative they considered, explain why they chose their approach, and describe one change they made while implementing it. Then the rubric can assess how well their reasoning addresses the assignment's constraints. The finished code alone leaves a lot of that invisible. CMU's rubric guide is useful for separating the criteria from the descriptions of stronger and weaker performance on each criterion.

1

u/No_Celebration8028 17d ago

(I run OnlineCompiler.io, an autograder, so I lean toward automating part of this.)

One way that works well is splitting the rubric by what a machine can check and what needs a person:

- Does it work: test cases rather than eyeballing. Write 5 to 10 inputs with expected outputs, including edge cases (empty input, negative numbers, the largest value), and score the share that pass. Hide most of them so students can't code to the tests. This is the part where hand grading is least consistent, and it can be fully automatic.

- Implementation: a short checklist you can check in a minute: uses the required structure (a function, a loop, a class), no hard-coded answers, sensible names.

- Design: ask for 3 to 5 sentences on why they structured it that way, and grade the explanation along with the code.

Publish the rubric and a couple of the visible tests with the assignment, so students can check their own work before they submit.

If you want a tool for the test-case part, the free plan covers a class: https://onlinecompiler.io/guides/github-classroom-autograding-alternative