Tagged: Technology

A whale representing docker hitting a boat with wheel representing kubernetes

What is Docker or containerization?

The Beginning Imagine you are an average guy who is interested in coding and building something great that solves someone’s problems. Imagine you are not really writing an interactive desktop program, but some kind of network related program — it is basically listening for input at...

Factory pattern

Generic Factory in C++

A generic factory is a factory that can register any class type. It is very easy to write because we are allowed to use void pointers.


As we are simply casting a void pointer, it is left to the developer to ensure...

Maximum Subarray

Problem statement: Find the largest sum that is possible in an array. I.e., find the maximum sub-array. Solution: From the very first this problem looks complicated because of how it is framed. It sounds like we want to find the MAXIMUM from ALL THE POSSIBLE...

Memento Design Pattern

Memento Pattern

This PDF was submitted to BITS PILANI Work Integrated Learning Program 2019 Object Oriented Analysis and Design (S2_18_SSZG514) for the final assignment.


C++ Traits

‘C++ Traits’ is an idiom that allows a great level of abstraction at compile time which is normally possible only by a combination of inheritance and composition. It allows an algorithm to change its behavior depending on the object’s traits, i.e., functions and member variables...


Installing log4cxx on MSYS2/Mingw-w64

In my previous post, I gave the rather simple steps to install MSYS2/Mingw-w64. Now I will tell you how to install a custom library, specifically log4cxx. Before starting, lets acknowledge that there are other libraries that might fit your logging needs. The installation steps will...

Major bugs and workarounds

Imagine you have been given the job of installing AC vent ducts in a house. Great. So you begin your work, starting from the basement for some reason. And there in the basement, you find a major fire outbreak. ????????? ????????? ????????? Oh great. So...