Tutorial: Nouns

The first step in writing Hapsah apps is creating nouns. Nouns make out the atomic elements of your app. There are three types of nouns you can create:

  • Entities: the things of interest in your app (e.g. Customer).
  • Attributes: the characteristics of the things in your app (e.g. First name).
  • Descriptors: groupings of attributes that belong to each other (e.g. Full name).

Example app: Grocery store

For our example grocery store app, we may create the following nouns.

Grocery store: Entities

  • A Grocery store is a place where grocery products are sold.
  • A Grocery product is a food or household supply.
  • A Customer is a recipient of grocery products.
  • A Shopping cart is a cart that is used for holding merchandise when shopping.

Grocery store: Descriptors

  • A Price is a quantity of payment or compensation given by one party to another in return for goods or services.
  • An Address is a conventional form by which the location of a building is described.
  • A Full name is a complete set of names of someone, including their first and surname.

Grocery store: Attributes

  • An Amount is a quantity of something, especially the total of a thing or things in number, size, value, or extent.
  • A Currency is a medium of value exchange, especially circulating banknotes and coins.
  • A House number is a unique number to each building in a street or area, with the intention of making it easier to locate a particular building.
  • A Street name is an identifying name given to a street or road.
  • A City name is an identifying name given to a city or town.
  • A First name is a name that is given to someone when they were born.
  • A Surname is a name that someone shares with other members of their family.
  • A Product name is a word or set of words by which a product is known, addressed, or referred to.
  • A Product description is a statement that tells you how a product looks, sounds, tastes etc.