|
|
|
|
|
by deterministic
1098 days ago
|
|
> premature abstraction leads to heartbreak. Anything that is “premature” is per definition incorrect. So there is no information in that sentence. Having said that, a lack of architectural abstractions leads to badly designed code with a WTF count reaching the heavens. Have you ever seen UI code directly relying on a specific flavour of SQL implementation and database? That’s an example of how a lack of architectural abstractions leads to spaghetti code. Or how about the domain logic directly relying on a specific UI framework? Another example where an early architectural abstractions would have saved years of maintenance work. Again something I see all the time in the wild. |
|
leaky abstractions create more trouble than is worth it. If your abstraction does not fit the problem neatly do not abstract it.