Skip to content

Coding Conventions

Claire Le Goues edited this page Jun 4, 2018 · 2 revisions

This page enumerates style and coding preferences for developers contributing to GenProg4Java. It is incomplete, but Claire is trying to add to it as style preferences come up over the course of said development.

  1. Use enumeration types to distinguish between types of operations, mutations, etc. That is, instead of a "magic number" integer to distinguish between operations, use an enum with indicative names.
  2. Do not create a new Random() to generate random numbers. Always use the public static randomizer variable in Configuration (Configuration.randomizer). This is important to enable deterministically reproducible experiments.
Clone this wiki locally