Browse by Tags

Don’t Misuse Lambdas
Avoid Duplicating Code It’s great that so many C# and VB.NET developers are taking advantage of LINQ. Unfortunately, using LINQ can encourage you to misuse lambdas. Consider the following simple example...
Posted 08 January 2010 08:15 PM by cmarinos | with no comments
Filed under: , ,
Designing F# Functions for Currying and the |> Operator
Last week, I led a jam about F# at the Ann Arbor Study Group . One of my SRT Solutions coworkers, Ben Barefield , asked a question that warrants further discussion. After I introduced the forward pipe...
Option Types vs Nullable Types
Some of the feedback that we’ve received about Elevate has to do with Option types and how they are different or similar to Nullable types in C#. Luke Hoban does a great job of describing some of the differences...
Introducing Elevate
The past few weeks, a few other SRT Solutions developers and I have been working on a new open source library called Elevate . We went public with the source on CodePlex this weekend, and although we’re...
F# For C# Programmers: Programming In the Small
During CodeMash this past January, I had the opportunity to talk with Chris Smith about F#. One of the things that he considered to be a sweet spot for the language was programming “in the small”. At the...
Posted 31 July 2009 03:16 PM by cmarinos | with no comments
Filed under: , ,
The Code Behind Paint Wars: Merging Functional and OOP
This post is the fourth in a series of posts about the code behind PaintWars . In this series, I will be talking about how the design and implementation of the game differed in C# and F#. Along the way...
Beyond LINQ: Sequence Generation in C#
I'm taking a post off from the Paint Wars posts, but I think this one is worth it. Many languages have nice syntactic sugar for creating a sequence of numbers. Usually, the syntax says something like...
The Code Behind Paint Wars: Functional Design
This post is the third in a series of posts about the code behind PaintWars . In this series, I will be talking about how the design and implementation of the game differed in C# and F#. Along the way...
Spice Up Your C# Code With Currying
Just because C# doesn't have language support for currying , doesn't mean you can't spice up your code by implementing currying methods yourself. Even better news is that, it's very easy...
Posted 11 July 2008 11:49 AM by cmarinos | with no comments
Filed under: ,