liveBook · Manning

Data

As explained in Grokking Simplicity

An inert representation of information that requires interpretation to acquire meaning and can be stored or transmitted.

Data is an inert record of facts about events. Unlike executable code, it cannot run; it becomes meaningful when interpreted, and the same record can support different uses. section 1.21 section 1.10

Recognize data by these practical properties:

  • It is transparent and easier to understand, store, transmit, and reuse than executable code. section 1.38 section 3.11
  • It records facts such as an email address, bank amount, customer order, receipt, recipe, or coupon record. section 3.1 section 2.7
  • It can be composed only of more data, giving it predictable behavior and making immutable records useful. section 3.3 section 3.11
  • It belongs beside actions and calculations: a message is data, while sending it is an action and deciding its contents is a calculation. section 1.13 section 3.10

Coupon email process

A database query produces subscriber and coupon records as data. A calculation turns those records into a list of planned emails; an action later sends them. In JavaScript, records can be plain objects, collections can be arrays, and values such as coupon ranks can be strings. section 3.5 section 3.6

Image

Use the diagram to connect recorded facts with multiple ways of organizing, preserving, and using data. section 1.21

How Grokking Simplicity covers it

How deep it goes
Defines data, contrasts it with executable code, and applies the distinction to records, messages, shopping, and email workflows.
Examples
Uses receipts, messages, inventories, customer orders, recipes, coupon records, subscriber records, and planned emails.
What you can do after
Evaluate code by classifying facts as data and represent them with simple JavaScript values such as objects, arrays, and strings.
How it connects
Connects data with actions, calculations, immutability, functional programming, databases, and distributed systems.

Also explained in

Compare how 8 books explain data →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Grokking Simplicity. The section links point to the parts of the book it draws on.