Skip to content

dim

dim is the abbreviation of dimension: in BASIC and FORTRAN it declares the size of an array; in data modeling and in EIK CMS it names a taxonomy axis such as vertical, audience or kind.

Definition

What it is

In its original sense, DIM is a statement in BASIC and FORTRAN that reserves space for an array and fixes how many dimensions it has. DIM A(10) declares a one-dimensional array of eleven elements; DIM B(5,5) declares a two-dimensional grid.

In modern data modeling and in EIK CMS, dim is shorthand for dimension: an axis along which content is classified. The project uses six taxonomy dimensions: vertical, kind, audience, intent, region and language. A token like :::taxonomy-list dim:vertical renders the values of the vertical axis; a URL like /en/topics/audience/consultores/ is a point on the audience dimension.

Why it matters

When a taxonomy has no named dimensions, every new tag looks equally important. Naming the axis forces the question: is "consultores" an audience, a vertical or a kind? The answer determines the URL, the breadcrumb and the schema.

How it is used

Reading a dim in EIK CMS

  1. In a token

    :::node-cards taxonomy:audience=consultores limit:40 filters pages by the audience dimension.

  2. In a file path

    data/taxonomy/audience/consultores.json stores the inverted index for that value.

  3. In a URL

    /en/topics/audience/consultores/ is the navigable hub for that value.

Origin

FORTRAN (1957) introduced the DIMENSION statement to declare arrays. BASIC, designed in 1964 at Dartmouth, shortened it to DIM. The keyword survived into Visual Basic, where it declares any variable, not just arrays. From there, "dim" became a generic shorthand in data modeling: a dimension is an axis of a cube, and dim is the label on the axis.

Dim is a shorthand for DIMENSION. That existed in FORTRAN before, so it is likely that it was picked by influence of FORTRAN.

— Stack Overflow answer, 2009

FAQ

Should I write DIM or dim?

The BASIC keyword is conventionally uppercase. The modern abbreviation for "dimension" is lowercase. EIK CMS uses lowercase because it appears in URLs and token parameters.

Is dim a reserved word?

In BASIC and Visual Basic, yes. In most modern languages, no.

Why not call it "axis"?

"Axis" is clearer in geometry, but "dimension" is the established term in data warehousing and taxonomy. EIK CMS keeps the abbreviation for brevity in tokens.

Does dim have anything to do with "dim sum"?

No. The food name comes from Cantonese dim2 sam1, "touch the heart". The abbreviation comes from Latin dimensionem, "a measuring".

Connections

  • dimension
  • taxonomy
  • faceted-navigation
  • array

Etymology

Origin: abbreviation

  • dim (abbreviation): short for dimension, from Latin dimensionem, "a measuring"

Semantic network

dimdata-modeltaxonomydimensionaxisfaceted-naarray

● broader ● narrower ● related

Broader

  • data-modeling
  • taxonomy

Related

  • dimension
  • axis
  • faceted-navigation
  • array

Used in the garden

Sources