Skip to content
public-library›Rules›Code design›Record facts when they happen

Record facts when they happen

When your code needs to know something that happened earlier, write it down at the moment it happens, and read it back later. Don't work it out afterwards from clues such as timestamps, the order of records, or which records exist.

In the full rule