Skip to content
John Ryan edited this page Jun 13, 2013 · 5 revisions

Here are some coding conventions we're using. In order to avoid confusing students, we aim to be strictly consistent in these practices:

The Placeholder

For many cases, you can define a simple placeholder in assertion statements:

object FILL_ME_IN = new Object();

However, sometimes, an object doesn't cut it (e.g. comparing directly with ints). In this case, we include a secondary placeholder by slyly adding underscores:

int32 FILL_ME__IN = new Int32();

Exceptions