When to and When Not to Use Enums in Java | by daleef rahman | Feb, 2022

Are enums a code odor?

daleef rahman
Photograph by Blake on Unsplash
Class illustration of the Enum “Homes”
Instance taken from https://docs.oracle.com/javase/tutorial/java/javaOO/enum.html

Kind security

Globalisation

Enums drive you to make use of a number of change case

Instance from Clear Code: A Handbook of Agile Software program Craftsmanship (Robert C. Martin)
Instance from Clear Code: A Handbook of Agile Software program Craftsmanship (Robert C. Martin)

Enums results in suboptimal modeling

More Posts