I’m still trying to learn a bit of F# and I thought of a quite nice experiment. Since F# supports quotations (for you C# devs, think Linq Expressions on roids) wouldn’t it be possible to serialize such quotation and pass it to a webservice and execute that code there? Imagine the following code for a…More
Category Archives: C#
F# Pipelining in C#
Here is one such example where F# developers try to make it look like F# can do things that C# can not. http://lorgonblog.spaces.live.com/blog/cns!701679AD17B6D310!165.entry F# code F# code that apparently is much easier to read than C# code: C# code My attempt to accomplish the same in C#. I think that’s fairly similar? OK, I cheated,…More
I still don’t get F#
I think that Microsoft are trying to sell F# to us as something new and awesome, but I’m having serious problems seeing the benefits over C#. But F# can do function currying! Well, so can C#. F# can do pipelining! Well, so can C# F# can use tuples! Well, they are built into .NET 4…More
My predictions for 2010
I predict that the C# 4 “dynamic” keyword will be the most abused feature. It will be used for everything from ducktyped dependency injection, dynamic dictionaries and about a million Rails like frameworks. All in a very non refactor friendly way. …It will rarely be used to interop with dynamic .NET languages. The least used…More
Linq To Sql: POCO and Value Objects
Fetching POCO Entities and Value Objects using Linq To SQL Linq To Sql support neither POCO Entities nor Value Objects when using it as an O/R Mapper. What we can do is to treat it as a simple auto generated Data Access Layer instead. By treating it as a DAL we can manually handle the data…More
