We are committed to provide service 24 X 7

Deals, Shopping, Training, Tools

Tag: using

Creating Custom Modules in node.js using exports and module.exports

Modules are like reusable components that can be used across applications. It’s like encapsulating a functionality in a separate module. Benefits of modules in node.js: Advertisements 1.) Code re-usability 2.) By delegating separate functionality to individual modules, code becomes modular. In node.js modules, we can expose functions and variables to outside world. Frequently Asked: Creating …

Creating Custom Modules in node.js using exports and module.exportsRead More

Importance of Constructors while using User Defined Objects with std::vector

For User Defined classes if Copy Constructor and Assignment Operator are public then only one can insert it’s object in std::vector. This is because of two reasons, Advertisements All STL contains always stores the copy of inserted objects not the actual one. So, whenever we insert any element or object in    container then it’s …

Importance of Constructors while using User Defined Objects with std::vectorRead More

Iterating over a range of User Defined objects and calling member function using std::for_each

In this article we will discuss how to iterate over a container of user defined objects and call a member function on each of the iterating element.Suppose you have a vector of Employee class objects and you want to call a member function on each of the element in vector. [showads ad=inside_post] Let’s see how …

Iterating over a range of User Defined objects and calling member function using std::for_eachRead 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

How to trim strings in C++ using Boost String Algorithm Library

In this tutorial we will discuss how to use trim algorithms from C++ Boost String Algorithm Library. Let’s learn them step by step, Boost String algorithm library provides different algorithms for string trimmings. Let’s first discuss the simple one i.e, What if we want to trim the string of white spaces from left side or …

How to trim strings in C++ using Boost String Algorithm LibraryRead More

Remote Debugging Tutorial using gdb Debugger

In This article we will discuss, how to do remote debugging a C++ application using gdb debugger. What is Remote Debugging Remote Debugging allows the application to run on a Target machine and user can debug it on a Host Machine. Advertisements [showads ad=inside_post]   Frequently Asked: How to attach gdb with running process Debugging …

Remote Debugging Tutorial using gdb DebuggerRead More

Designing a Board Game (Mastermind) in C++ using MVC, State and Observer Design Patterns

High Level Design - MVC - Board Game

Let’s Design a Console Based Board Game in C++. With this Design you can learn MVC, Observer and State Design Pattern. Moreover, with the same design you can also implement any other Game Like Battleship etc. Advertisements In this we will build Console Based Version of MasterMind Game. Complete Code for this is available at, Frequently …

Designing a Board Game (Mastermind) in C++ using MVC, State and Observer Design PatternsRead More

Creating a new process using fork() System call

fork() System Call

In this article we will discuss how to create a new process using fork() system call. fork() System Call A Process can create a new child process using fork() system call. Advertisements This new child process created through fork() call will have same memory image as of parent process i.e. it will be duplicate of …

Creating a new process using fork() System callRead More

Find & Replace using Regular Expressions in Eclipse & Visual Studio

Find & Replace is a life saver feature for any programmer. In this article we will discuss how to use Find and Replace in complex situations with Regular Expressions. Find using Regular expressions Many times we need to find some text in source code using Regular Expression and that’s not much difficult i.e. Advertisements Suppose …

Find & Replace using Regular Expressions in Eclipse & Visual StudioRead More

Cart

Your Cart is Empty

Back To Shop