-
Recent Posts
Archives
Categories
Author Archives: Pierre IRRMANN
Functional Inspiration – A simple Option type
In F#, the option type is a built-in Discriminated Union type which allows to handle nicely the fact that an expression can represent some value or none. In C#, we have almost this construct when we use the Nullable<T>, but … Continue reading
Elitism ? Or just raising the bar ?
Last Thursday, I’ve attended an open forum organised by ALT.NET France user group, about the Software Craftsmanship Community and the “Fier d’être développeur” (“Proud to be dev”) groups, in order to compare their intents and try to explain why they … Continue reading
RPSLS — Rock Paper Scissors Lizard Spock
Let’s start with a tweet from earlier today : Anyone bored and have an android phone?play.google.com/store/apps/det… — Leonard Hofstadter (@TheRealLeonardH) November 22, 2012 If you follow the link, you’ll get to a Google Play application that allows you to play … Continue reading
Posted in Uncategorized
Comments Off
Cartesian products in LINQ (fluent syntax)
Have you ever tried to combines sequences in order to build Cartesian products in LINQ ? This is really easily achieved using the query expressions syntax, writing for instance : var ints = Enumerable.Range(1, 4); var longs = Enumerable.Range(1, 3).Select(i … Continue reading
Polymorphic enums in C#, implementation revealed
How can we implement a polymorphic enum to mimic the Java ones ? In a previous post, as an answer to @cyriux’s one, I showed how we could try to use a polymorphic enum in C# in order to mimic … Continue reading