How many times have you read or written the same two or three lines of code that frequently seem to go together, and even though they operate on different objects, feel like the same thing? And how often these repetitions involve some sort of collections iteration or more generically manipulation? These repetitions in the code …

lambdaj Read More »

Closure in C#

After the success of Closure in Java we like to show you a good example in C# too. C# has a very strong support for Lambda functions, because it needs to support the LINQ language constructs. So defining a closure is quite easy. Best, it is possible to define a “delegate” , which is a …

Closure in C# Read More »

Closure in Java: fast and nice!

Working for two very important Banks, I have the need to play with Closure in Java. I have a lot of trouble looking at a good description of the subject, until I read a post on StackOverflow. I have decided to re-cook this subject, adding a my specialized Example also. Let’s start!