On Tuesday, 11 November 2025 at 07:50:05 UTC, Serg Gini wrote:
Different code has different purposes.
Also different languages desire less or more patters.
Patterns were mostly designed for Java/corporate world.
Maybe C# as well.
But not all code is like that. There is no "silver bullet" and patterns are definitely not that as well.

More like they were distilled from all code zoo there was, not created/designed for a specific language or corporate world.

They are useful as a shortcut to tell some approach to your design, instead of having explain in entire paragraph what you'd like to do.

Imho, basic patterns that were distilled from OOP (gang of four book for example) are not necesarily tied to OOP, and can be done in other design paradigms as well. For example chain of responsibility, can be done with just functions, or command pattern can use simple structs/functions with DbI.

Reply via email to