The Cost of Premature Abstraction
Software ArchitectureAbstracting too early is more expensive than duplicating code. Wait until you have three concrete implementations before creating an abstraction.
EXAMPLE
Building a 'flexible' authentication system for one use case vs. implementing specific auth flows and abstracting after patterns emerge.
