Insights on .NET Concurrency: Parallel Programming

Intro Parallel programming is the next post from the Insights on .NET Concurrency series. Parallelism is about making more than one thing happen at the same time, with the main objective being improve the performance of CPU bound operations. Parallel programming model tries to overcome single core limitations. With parallelism we can process larger more complex problems in a more…

Insights on Composition over Inheritance

Problem Statement ‘a subclass inherits inappropriate operations from a superclass’ Background The prime motivation for inheritance and composition in object oriented is code reuse [3]. With inheritance, modifications on the superclass would lead to modifications of the subclass because of the implicit self-recursive re-entrant invocations [1]. Such invocations can hinder the evolution of the model.…

Insights on Passing by Reference in C#

Setting the Scene By looking at the following two methods, arguably they seem to do the same thing. But they must be doing something different, hence there existence. So let’s find out.

What is passing by reference? In C# method arguments are either passed by value or by reference. By value means passing a…