Skip to content

Naming System

Class

  • Use real life object name for class like Beam, Column, Door etc.
  • Use BeamDrawing for a class that represents the drawing of a beam
  • Use BeamCalculator for a class that represents the calculation related to a beam
  • Use BeamFactory for a class that generates a different type of beams
  • Use BeamManager for a class that manages the beam objects
  • Use BeamUtil for a class that provides utility or extension functions related to beam class

Method

  • Use Get prefix for a method that returns an object or value
  • Use Set prefix for a method that sets an object or value
  • Use Calculate prefix for a method that performs a calculation and returns the result
  • Use Create prefix for a method that creates an object and returns it
  • Use Update prefix for a method that updates an object and returns the updated object
  • Use Delete prefix for a method that deletes an object and returns a boolean indicating success or failure
  • Use Is prefix for a method that returns a boolean indicating whether a condition is true or false
  • Use Has prefix for a method that returns a boolean indicating whether an object has a certain property or characteristic
  • Use Try prefix for a method that attempts to perform an action and returns a boolean indicating success or failure
  • Use To prefix for a method that converts an object from one type to another and returns the converted object

Property

  • Use Is prefix for a property that returns a boolean indicating whether a condition is true or false
  • Use Has prefix for a property that returns a boolean indicating whether an object has a certain property or characteristic