Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Fragment

Intent

Split a singular object into multiple components.

Motivation

There was one mention of breaking a single object into multiple smaller parts. This is a plausible pattern but there's not enough evidence for it being a useful pattern at this time.

Fragment implies that there is an inverse Defragment, which would convert multiple objects into one.

The fragmentation operations are effectively antonyms of Pack and Unpack. Fragmentation breaks one into many, whereas packaging groups many into one.

Possible use cases

Use Fragment when:

  • Representing one object as multiple smaller sub-objects or fragments.
  • Transferring one object as many smaller sub-objects.

Code example

NA

Possible synonyms

NA

Occurences

•Data transfer size limits