Tips

Why Write Code on Paper?

School is about to start up for students all over the United States. And for those that are taking a computer science course for the first time, they’ll learn that it’s not always just typing code into a computer. So why do we write code on paper? Many teachers and professors have their students write […]

Comparing output in a JUnit test

Output matching is a built in test type in ClassCube. The catch is that you may not always want to compare that the output matches exactly. Or, maybe you want to do your own comparisons. To do this you’ll need to create your own JUnit test and use the unit testing grade type. Fortunately, it’s […]

AP Test Tips

Some of this is specific to the computer science AP-A test since that’s what I have the most experience with. But some of it is applicable to any AP test, or any high stakes test for that matter. About the test The Computer Science AP-A exam is split into two sections; a 90 minute, 40 […]

How to test private instance variables in Java

Why test private instance variables? Need to test private instance variables in Java? Well, if you ask how to do that on a discussion forum you’ll probably get the response that you shouldn’t test anything private. Instead, call the public method that’s calling using the instance variable and make sure it works the way it […]

How to embed a Gist in Canvas

If you’re teaching computer science, odds are pretty good that you need to share code with your students. Maybe it’s starter code for a project. Maybe it’s a solution for lab. But it’s something that you probably do. Canvas, and specifically the rich text editor, makes this a little more difficult than it should be. […]