Tagged: Software

Factory pattern 0

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.

Usage:

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

Maximum Subarray 0

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 sums. To find the maximum...

C++Traits 0

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 exposed by that object. What...

log4cxx 0

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 be similar, though here we...

0

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 you call your supervisor and...

Viraat roop 0

Starting work on Time Manager

Okay, I have started working on the long demanded (for and by me) time management software. I got this idea a really long time ago and have seen nobody working on it so I think it is time I myself wrote it. Basically, it is for not very smart people....

CLion 0

JetBrains CLion

After a million years of trying out different IDEs, that I could use seamlessly on different machines with different operating systems, it seems I have finally found the right thing. To keep the record, here is a list of software I have tried: vim – Had to be mentioned. I...

UML Background Dark 0

Practical UML: A Hands-On Introduction for Developers

Abstract This tutorial provides a quick introduction to the Unified Modeling Language. The heart of object-oriented problem solving is the construction of a model. The model abstracts the essential details of the underlying problem from its usually complicated real world. Several modeling tools are wrapped under the heading of the...