-
Notifications
You must be signed in to change notification settings - Fork 11
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.
- 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.
- 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.