MOTIF

MOTIF

MOTIF of all MOTIFS

Quick facts & summary

MOTIF's description

What is a MOTIF ?

Motif, also known as pattern, is the generic concept that bind instances together under the same name. In programmation, patterns / motifs aim to solve recurring problems with generic / abstract answers.

As stated in the book A Pattern Language, motifs also has the property to act as words, forming sentences (and more) under certains rules. But, as now stated in the publication Generative Design Patterns, design patterns in computer science also has the counterpart of being too abstract. They do not provide implemention and cannot be used straight as operational code.

To address this void, MOTIFS provides both a library of numerous inedite and differently scaling motifs and an implementation that makes these motifs not only descriptive, but also generative.

About naming files

MOTIF starts living in a <motifId> folder, just right with its <motifId>.motif.js file.

Every MOTIFS has its own rules for naming.

Naming basically bind a whose ? (an <id>.*, or a folder scope) and a what ? (the *.<motif>.* it implements).

It remains simple while there is only one whose and only one what.

But since the are some transversal MOTIFS, their INSTANCES will potentialy have multiple :

  • whose : [ id* ].,
  • what : .[ motif* ]..

INSTANCES' list

  • article
  • book
  • book-extract
  • book-image
  • book-page
  • book-section
  • command
  • description
  • doc
  • file
  • folder
  • folder-scope
  • get
  • global
  • id
  • instance
  • lang
  • motif
  • occurence
  • project
  • prop
  • readme
  • readme-section
  • spec
  • spec-section
  • util
  • way
  • webapp
  • website
  • website-folder
  • website-page
  • wiki

Back to home.