Advanced Git Commands
In this article, we鈥檒l dive into some of the most powerful and essential Git commands. Whether it鈥檚 managing changes, working with tags, rebasing commits, or debugging, these commands will elevate your version control skills and make complex operations a breeze. Let鈥檚 get started! 1. Stashing Changes Stashing allows you to temporarily save your uncommitted changes without committing them. This is useful when you need to switch branches or perform other tasks without losing your current work....
Binary Search Tree (BST)
Binary Search Tree Today I wanted to talk about Binary Search Tree (BST). Basically, a binary search tree is a data structure used in computer science for organizing and storing data in a sorted manner. If you think of a tree, it has many branches. One branch leads to another branch, and that branch splits into others. The same concept applies to a binary search tree. In a BST, each node has at most two children, referred to as the left child and the right child....
Design Patterns in software development
Design patterns are essential in software development because they provide proven solutions to common problems, making code easier to understand, reuse, and maintain. They help ensure that software is well-structured and robust, reducing the chances of errors and improving development efficiency. for example when building something with lego we make sure everything fits together and works as intended. Same applies to design pattern in software development, they have tried and given proven solutions to the common problems that developers face when building software....
SOLID PRINCIPLES
T锘縣ere are 5 SOLID Principles that is used in software development that helps the developers to maintain, test and extensible the code as it grows. Before we jump into know each of the S.O.L.I.D acronyms and why we need to apply these principles into our project, first we should know what is SOLID stands for. S - Single Responsibility Principle Its is the first of the five design principle in object oriented design....
Working with streams in NodeJS
What are Streams ? Streams are just collections of data that is sent in small chunks, and it also don鈥檛 have to fit in memory. Meaning, when dealing with big chunk of data either read or write, the memory usage is less consumed, which is extremely useful. let me show two examples how streams can be optimized the memory consumption. writeStream.js const fs = require('fs'); const file = fs.createWriteStream('file.txt'); for(let i=0; i<=2e6; i++) { file....