Object-Oriented Programming · Rippling · Medium
Part A — Configurable Logger: Fixed Transformation Pipeline over Mutable State A logger that supports four independent switches is only well defined once the pipeline order is pinned down. The order I implement is remove → truncate → uppercase, and it is the same on every call. The reasoning is worth spelling out, because it explains why the order is not arbitrary: Removal happens first so that truncation measures the length of the message after the unwanted substring is…
Checking your access…