Omer van Kloeten's .NET Zen

Programming is life, the rest is mere details

News

Note: This blog has moved to omervk.wordpress.com.

Omer van Kloeten's Facebook profile

Omer has been professionally developing applications over the past 8 years, both at the IDF’s IT corps and later at the Sela Technology Center, but has had the programming bug ever since he can remember himself.
As a senior developer at NuConomy, a leading web analytics and advertising startup, he leads a wide range of technologies for its flagship products.

Get Firefox


powered by Dapper 

.NET Resources

Articles :: CodeDom

Articles :: nGineer

Culture

Projects

Browse by Tags

All Tags » C# (RSS)
My View of C# 4.0
I've known a bit about C# 4.0 for a while now and have had time to think about it. I've just re-read the New features in C# 4.0 paper published by Microsoft and would like to offer the following critique of the language's new features: Dynamic Lookup...
Posted: Oct 29 2008, 02:16 AM by Omer van Kloeten | with 37 comment(s)
Filed under:
Announcing New C# 4.0 LINQ Features and Book
* Fabrice Marguerie , co-author of LINQ In Action , asked me to clarify that this post has absolutely nothing to do with their book and is simply meant in jest * LINQ has been around for quite a while, making our lives easier with its short, declarative...
Posted: Aug 29 2008, 01:12 PM by Omer van Kloeten | with 13 comment(s)
Filed under: ,
Throw Before You Yield
In a comment left by Bart De Smet , he pointed out that I failed to address the fact that the execution of all "yielding" methods is deferred. For instance, when running the following code, no exceptions will be thrown: int [] arr = null ; var copy =...
Posted: Aug 25 2008, 10:23 PM by Omer van Kloeten | with 5 comment(s)
Filed under:
Pitfall: Static Field Inline Initialization Order of Execution
Here's something I fell into today. You have a class that has some members that need to be calculated once. So you use static readonly fields. One of those members is a calculation of some of those members. Take the following code for instance: public...
Posted: Aug 19 2008, 05:09 PM by Omer van Kloeten | with 9 comment(s)
Filed under:
Extension Methods Roundup: Remove, Aggregate, At, AsIndexed and Friends
Hey hey hey! It's time for another Extension Methods Roundup! Here are some of the extension methods I've written since the last one: Dictionary's Missing Remove Methods public static void Remove<TKey, TValue>( this IDictionary <TKey, TValue>...
Breadth Recursion - a yield Solution to Post's Correspondence Problem
Post's Correspondence Problem (the other PCP) is a computer science problem, in which you have (and I simplify matters) a set of tiles, each having any number of letters on them from a preset group. For instance, you may have the tiles: The idea is to...
LINQ Performance Pitfall - Deferred Execution
When using LINQ, queries may bloat up to dozens of lines. My personal style is to take these queries and break them apart to smaller units of logic. To each unit of logic, I append a call to ToArray . @yosit asked me why I did it and I answered I was...
Extension Methods Roundup: IndicesWhere, TakeEvery, Distinct
As I do from time to time, here is a batch of three Extension Methods I've written recently: IndicesWhere /// <summary> /// Gets the indices where the predicate is true. /// </summary> public static IEnumerable < int > IndicesWhere<T>...
A Limitation of Lambda Expressions and Overloaded Extension Methods
Tamir hates lambdas. He was having a problem with one of his lambda expressions and twittered about it. Around that time I opened my twitter account (yes, Yosi finally convinced me) and offered my help. He wanted to have a single extension method that...
Linq: The Missing ToDictionary Extension Method Overload
Enumerating over a Dictionary<TKey, TValue> you will get structs of type KeyValuePair<TKey, TValue> . Whenever you use the ToDictionary extension method, you are forced to specify how to get the key and value for each item, even if it's an...
More Posts Next page »