We are committed to provide service 24 X 7

Deals, Shopping, Training, Tools

Tag: Designing

Designing a Configurable Logging framework using Observer Design Pattern

logger

Almost in all applications we need logging functionality, but requirements varies from project to project. Here we have designing a Configurable Logging framework. First of all, lets have a look at full requirements. Functional Requirements: Advertisements It should provide, A configurable option for other application modules to save logs at more than one platform like, …

Designing a Configurable Logging framework using Observer Design PatternRead More

Designing a Binary Search Tree Validation class

bst

Many times we need to validate a Binary Search tree i.e. verifying its properties, Left subtree of each node contains the nodes with value less than the node’s value. Right subtree of each node contains the nodes with value greater than the node’s value. Moreover, left and right subtree of each node must be a …

Designing a Binary Search Tree Validation classRead More

Learn State Design Pattern by Designing a Simple Music System

State Diagram of Music System

Many times we need to develop systems / objects that provides services to outside world. But the response of each service is not always same, it depends upon its current internal state. When its internal state changes at run-time then its behaviour changes and same services acts differently. Advertisements For example, Suppose our system is …

Learn State Design Pattern by Designing a Simple Music SystemRead More

Designing Code for Fibonacci Sequence without Recursion

What’s a Fibonacci sequence: Fibonacci sequence is a kind of sequence in which every subsequent number is sum of the previous two numbers i.e. 0,1,1,2,3,5,8,13,21,34,55,89,144 Advertisements Designing Code for Fibonacci sequence: Frequently Asked: Unary Operator Overloading in C++ using both member & Friend function What is a Memory Leak in C++ ? When to use virtual …

Designing Code for Fibonacci Sequence without RecursionRead More

Designing Code to Convert the base of a Number to any other base in Number System

In this article we will discuss how to design a Class that represents the Number in a Number System and also provides the facility to convert the Base associated with that Number i.e. conversion from any Base to any other base like, octal to hexa or hexa to decimal etc. [showads ad=inside_post] Create a class Number that …

Designing Code to Convert the base of a Number to any other base in Number SystemRead More

Designing a Multiton: Singleton that returns 5 objects in cycle

Let’s Design a Multiton class i.e. a modified Singleton to return 5 objects in cycle. Logic to Create Multiton Advertisements Instead of keeping a static pointer as member variable keep a vector of pointers as member variable. Now also keep track of how many times getInstance() function is called. To do that use static member …

Designing a Multiton: Singleton that returns 5 objects in cycleRead More

Designing Callbacks in C++ – Part 1: Function Pointers

Callback Mechanism Exmplained

In this article we will discuss what is a callback and what types of callbacks we can have in C++ and how to Design Callbacks as function pointers. Now what is a callback? Advertisements Callback is a function that we pass to another APIs as argument while calling them. Now these APIs are expected to …

Designing Callbacks in C++ – Part 1: Function PointersRead More

Designing Callbacks in C++ – Part 2: Function Objects & Functors

In this article we will discuss, what is a Function Object, why do we need function objects and how to use function objects as Callbacks. What is a Function Objects: Advertisements A Function Object / Functor is a kind of Callback with State. In a Programmer’s terminology, Frequently Asked: Designing Callbacks in C++ – Part …

Designing Callbacks in C++ – Part 2: Function Objects & FunctorsRead More

Designing a Thread Pool Framework Part 1: What’s the need of a Thread Pool

ThreadPool

In this we will discuss what is a Thread pool and why do we need Thread Pools. Many times you encounter a situation where where you need to perform several tasks in parallel to improve the performance of application. These Tasks can be anything like, Advertisements Encrypting a file. Calculating hash of a file. Performing …

Designing a Thread Pool Framework Part 1: What’s the need of a Thread PoolRead More

Designing Event Handling Framework using Command Design Pattern

Command Design Pattern

In this article we will learn Command Design Pattern by Designing an Event Handling Framework. Intent of Command Design Pattern Encapsulate a request as an object, thereby letting you parametrize clients with different requests, queue or log requests, and support undo able operations.[GoF] Advertisements What a heavy Intent 🙂 Lets learn step by step, Frequently …

Designing Event Handling Framework using Command Design PatternRead More

Cart

Your Cart is Empty

Back To Shop