Join Nostr
2025-10-19 13:42:50 UTC

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.