← Graph

Name your types to reuse and document them

takeaway 2 connections

Joel Drapper recommends extracting compound types into named constants (e.g. `Latitude = _Float(-90..90)`, `UserID` as a Literal::Value) so they can be referenced across the codebase and act as local documentation. Naming a type turns it into a reusable domain concept that IDEs (Ruby LSP) and LLMs can follow via click-through navigation.

type
recommendation
takeaway Name your types to reuse and document them
about
Literal tool
Recommendation applies specifically to Literal's composable type constructors.
takeaway Name your types to reuse and document them
from_talk
Drapper urges extracting Latitude, UserID, GroupMembers as named types.

Provenance