#OOP

5 writings

Functional Strategy Pattern

The strategy pattern is one of the most widely used patterns in .NET, especially in LINQ. This post explores how to implement it in both C# and F#, demonstrating why functional programming syntax is better suited for passing strategies as functions rather than class-based approaches.

2 min read 359 words

Functional Singleton Pattern

Explore the Singleton Pattern, one of the most commonly used design patterns for ensuring only one instance of a class exists. This post covers practical implementations in C# and F#, real-world use cases like database connections, and discusses its relevance in functional programming and modern development.

2 min read 316 words

Functional Factory Pattern

Explore how the Factory Pattern translates from Object-Oriented C# to functional F# programming. This post demonstrates that functional programming provides simpler, more elegant solutions for abstracting object creation while maintaining the same behavioral results.

2 min read 264 words

Demystifying Design Pattern in a Functional Way

This post demystifies design patterns by examining them through functional programming principles rather than traditional OOP. The author explores the fundamental differences between Turing's (OOP) and Church's (FP) approaches to problem-solving, arguing that functional programming offers superior code readability and expressiveness when resources allow.

3 min read 580 words

Moving away from OOP

This post explores the journey from basic Object-Oriented Programming to advanced design patterns and software architecture. The author shares personal experiences of how proper OOP implementation and design patterns transformed 14,000 lines of problematic code into 700 lines of elegant, working solutions.

2 min read 290 words