DEV Community


Discussion on: The Java Constants Interface Anti-Pattern

alainvanhout profile image
Alain Van Hout

Indeed. I personally like this pattern, where an interface is used to group constants without actually implementing that interface. It reduces boilerplate, adds focus on the constants, and due to the namespacing adds meaning to the code.