JAVA : How to name interface and implementor

So in my new project, every day I had question about naming things.

Here how I name my interfaces and implementor.

Interfaces :

  • Name your Interface what it is. Truck. Not ITruck because it isn't an ITruck it is a Truck.
  • The prefix hurts readability.
  • Don’t forget your interface is a type, so think about people who use this type, they don’t care to know if it is an Interface or an Object
  • You will never called an ObjectTruckClass



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Thomas Poignant

Thomas Poignant


Techlead and cloud architect! I build apps and deploy them in the ☁️. #GO #AWS #CICD.