#csharp

8 writings

Functional Command Pattern

This post explores the command pattern through functional programming, comparing traditional C# implementation with F# functional approach. You'll discover how treating functions as first-class citizens makes command pattern code more concise and elegant, with insights into CQRS and Event Sourcing.

1 min read 175 words

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 Programming, How I started and Why?

A personal journey into functional programming driven by a passion for data and numbers. Explore why the author switched from C# to F# and why functional languages should be taught before imperative ones.

4 min read 610 words

Entity Framework Upside Down

This article challenges common Entity Framework usage patterns and argues that many developers are implementing it incorrectly. The author explains why simply mapping databases without leveraging EF's core features creates unnecessary overhead and demonstrates why understanding the difference between demos and production environments is critical.

3 min read 420 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

Arrival of David aka Micro Orm

This post examines Micro ORMs as a solution to the performance problems created by traditional ORMs. The author discusses how tools like Dapper and OrmLite offer the productivity benefits of ORMs while maintaining database access performance comparable to direct SQL queries.

8 min read 1,402 words

Map your self using ORM

This post explores the evolution from traditional connection and command classes to modern ORM frameworks in .NET development. The author discusses common database connectivity challenges and explains why ORMs like NHibernate are essential for building efficient applications.

6 min read 1,169 words

Test your self before test your code

This post emphasizes the importance of understanding your testing strategy before writing test code, drawing from practical development experience. Using mathematical functions and Visual Studio testing facilities as examples, the author explains how self-awareness in testing prevents common coding mistakes and improves code quality.

6 min read 1,172 words