Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 344 Bytes

speakable_names.md

File metadata and controls

23 lines (18 loc) · 344 Bytes

Use pronounceable variable names

If you can’t pronounce it, you can’t discuss it without sounding like an idiot.

Bad:

type DtaRcrd102 = {
  genymdhms: Date;
  modymdhms: Date;
  pszqint: number;
};

Good:

type Customer = {
  generationTimestamp: Date;
  modificationTimestamp: Date;
  recordId: number;
};