Structured Data

An address should be represented by distinct fields with validation and formatting defined in one place. Composite string fields lead to repeated and inconsistent parsing across a codebase. Single-string structured data becomes problematic…

1 sources - 4 claims

An address should be represented by distinct fields with validation and formatting defined in one place. Composite string fields lead to repeated and inconsistent parsing across a codebase. Single-string structured data becomes problematic when code needs to operate on one specific part of the value. Storing composite values as a single string is a common form of primitive obsession.