You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.