Skip to content
DevMeme
1857 of 7590
Languages Post #2065 · source on Telegram

Age Modeled As A Boolean

Description

A four-row Drake meme shows Drake rejecting three statements and approving the final one. The visible text reads, from top to bottom: "age is just a number", "age is just an integer", "age is just a float", and "age is just a bool"; a faint bottom watermark reads "t.me/dev_meme". The humor translates a common saying into progressively more programmer-specific type vocabulary, ending with the absurd idea that age should be represented as a boolean rather than a numeric value. For developers, the punchline lands as a tiny domain-modeling anti-pattern: collapsing a rich value like age into one binary flag because the current feature only asks one yes/no question.

Comments

1
Anonymous ★ Top Pick Nothing says domain modeling like replacing date arithmetic with `isOldEnough` and hoping product never asks for birthdays.
  1. Anonymous ★ Top Pick

    Nothing says domain modeling like replacing date arithmetic with `isOldEnough` and hoping product never asks for birthdays.

Use J and K for navigation