← Graph

flag_shih_tzu

tool 1 connections

Ruby gem (transcribed as 'flag sheet') that lets developers define a bunch of boolean flags on an Active Record model and generates handy query/update methods. Cited in Counterintuitive Rails pt. 2 as an example of standardizing the 'boolean flags for state' anti-pattern: convenient but encourages combinatorial state explosion. Should not be used to represent an object's state — use a state machine instead.

category
library
about
flag_shih_tzu tool
Cited as the gem that standardizes the boolean-flags-for-state anti-pattern.

Provenance

Read by
18 extractions