Tom Morris on Nostr: A programmer wrote a function. It worked. An OOP Design Patterns enthusiast came ...
A programmer wrote a function. It worked.
An OOP Design Patterns enthusiast came along and turned it into a class.
Then they wrote a Builder to instantiate the class.
Then a Factory to set up the Builder.
Then an Adapter to wrap the Factory.
Then a Strategy to select the Adapter.
Then a Visitor to query the Strategies.
Then a Proxy to abstract the Visitor.
Then a DI framework to select different Proxies, Strategies, Visitors, Adapters and Factories.
Now there's a bug nobody can fix.
Published at
2025-10-19 13:42:50 UTCEvent JSON
{
"id": "69ab4209f253f14c426b65f06f8d1f8c0d2aab46a83f539792fc89be87c005f6",
"pubkey": "3fb03273ccfb93b475b4da1adbc77095e599011eb4cd3d3eb32200cd3ea04668",
"created_at": 1760881370,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/users/tommorris/statuses/115401121502662232",
"activitypub"
],
[
"client",
"Mostr",
"31990:6be38f8c63df7dbf84db7ec4a6e6fbbd8d19dca3b980efad18585c46f04b26f9:mostr",
"wss://relay.ditto.pub/"
]
],
"content": "A programmer wrote a function. It worked.\n\nAn OOP Design Patterns enthusiast came along and turned it into a class.\n\nThen they wrote a Builder to instantiate the class.\n\nThen a Factory to set up the Builder.\n\nThen an Adapter to wrap the Factory.\n\nThen a Strategy to select the Adapter.\n\nThen a Visitor to query the Strategies.\n\nThen a Proxy to abstract the Visitor.\n\nThen a DI framework to select different Proxies, Strategies, Visitors, Adapters and Factories.\n\nNow there's a bug nobody can fix.",
"sig": "5919e4811d2177b9f0eb9c38d35873ae4e7ac670f44f31894b5825e6ec4f865fb1227f98b95756471a591a4c8ef334c8e8048a4c6907d73f6acfb59c4de2ca3d"
}