Alleles can be designed after the recessive trait.
e.g. - a fly with a genetic mutation causes a white eye, whereas the wild-type eye is red.
The alleles would be w=white eye; W=red eye.
In some cases, the alleles are designated after the dominant phenotype
e.g. - the allele R for round seeds; r for wrinkled seeds. You just have to keep them straight.