Difference between static class and singleton pattern?

Static Class:- You cannot create the instance of static class. Loaded automatically by the .NET Framework common language runtime (CLR) when the program or namespace containing the class is loaded. Static Class cannot have constructor. We cannot pass the static class to method. We cannot inherit Static class to another Static class in C#. A class having all […]

Dynamic Validator

Hello Again, In this tutorial I am using dependency injection to add rules for any class and use these rules later in validation process. using System; using System.Collections.Generic; using System.Text.RegularExpressions; namespace DynamicValidator { class Program { static void Main(string[] args) { Emp e1 = new Emp(); e1.id = 123; bool vv = e1.validate(); Console.WriteLine(“Validate: ” + vv.ToString()); e1.name […]

Dynamic Workflow

I tried to implement Dynamic Workflow and how we can create dynamic workflow functions and execute it in sequence, I used Inversion of control to achieve this . here is the idea code: using System; using System.Collections.Generic; namespace a1 { class Program { static void Main(string[] args) { WorkFlow wf = new WorkFlow(); wf._worklist.AddLast(new CreateEmpList()); wf._worklist.AddLast(new CreateEmpList()); wf._worklist.AddLast(new […]

A plea for lean software: 6 Lessons I learned to help keep software simple

Preface Recently, I was browsing the codebase of my company and saw that it has three versions of dashboards for an analytics page in it. I am pretty sure that customers don’t need that. This sparked something in my naive brain and I started exploring the internet for related ideas. That’s when I found this age-old paper, A Plea […]

Julia, high-performance dynamic programming language for numerical computing

Julia is a high-level, high-performance dynamic programming language for numerical computing. It provides a sophisticated compiler, distributed parallel execution, numerical accuracy, and an extensive mathematical function library. Julia’s Base library, largely written in Julia itself, also integrates mature, best-of-breed open source C and Fortran libraries for linear algebra, random number generation, signal processing, and string processing. In addition, the Julia developer community is contributing a […]