Author archives: lokialice

  • Difference between For and Foreach Loop in C# [Note]

  • The for loop executes a statement or a block of statements repeatedly until a specified expression evaluates to false. There is need to specify the loop bounds( minimum or maximum). The foreach statement repeats a group of embedded statements for each element in an array or an object collection.[...]
  • Implementation of Dependency Injection Pattern in C#

  • Dependency Injection (DI) is a software design pattern that allow us to develop loosely coupled code. DI is a great way to reduce tight coupling between software components. DI also enables us to better manage future changes and other complexity in our software. The purpose of DI is to make code mai[...]
  • MultiThreading in C#

  • There are two distinct types of multitasking: process-based and thread-based. It is important to understand the difference between the two.  Process is what the operating system uses to facilitate the execution of a program by providing the resources required. Each process has a unique process[...]
  • Breaking Singleton questions you may get in interviews

  • Even though we avoided multiple instance creation of singleton class by using Double checked locking or Eager instance creation, instances can still be created by : – cloning – reflection – Sub-classing singleton class How to avoid Singleton instance creation by cloning ? We can create a copy o[...]
  • How creating CSS images made me a better developer

  • Throughout my life all I ever wanted to be was an artist of some kind. I wanted to be an author, a poet, a painter, a photographer, and later, a developer. To me, being a developer has always been about creativity, about the act of creating something that wasn’t there before. As a frontend developer[...]
 

Enjoy this blog? Please spread the word :)