Shallow Copy When you shallow copy an object there is no new memory space that is allocated to the duplicate object. Thus both original and duplicate object shares the same memory space. As a result of this, changing the attributes in one object changes the attribute in the other. Below is an example of a…
Author: Rohit Naik Kundaikar
Two Pointer Technique
Two-pointer is a common technique used to solve array problems. This method removes many redundant potential solutions thus giving efficient output compared to the brute-force solution. To demonstrate the two-pointer technique let’s try to solve the below question on leetcode i.e Container with most water and Trapping rainwater using two pointer technique. Container With Most…
Javascript Call Stack and Execution Context
Execution Context and Call Stack are important concepts in JS, which if you understand properly would help you make peace with Closure and digest Hoisting. On a separate note, Execution Context is the basis of most of the interview questions. Call Stack The global function in JS is an anonymous function that defines and calls…
Dockerizing NodeJS App
Docker is an open platform for developing, shipping, and running applications. Docker enables you to separate your applications from your infrastructure so you can deliver software quickly. Step 1 : Install Docker You can download and install Docker on multiple platforms at Dockerhub Step 2 : Create Dockerfile A Dockerfile is a text document that contains all…
Moving beyond REST to GraphQL
GraphQL in simple terms is a querying language for your API that lets the client i.e UI query on the data fetched by the API. GraphQL is not tied to any database it is instead linked to your API data, which API might have fetched from the database. Thus Graphql could easily be integrated with…
Angular Forms: CoversTemplate-Driven Forms and Model-Driven Forms also called as Reactive Form
Project Setup In this example, you will see how to create forms in Angular using a Reactive and Template driven approach. In our demonstration, we will create two forms one using the Reactive approach and the other with a template-driven approach. Create project and add components that we would need. Reactive Form Reactive forms or…
Authentication In Angular Covers Routing, Services, and Guard
For the purpose of the demonstration, we will be creating a simple Angular app that grants access to the dashboard route upon successful Login. Step 1: Setup Project Create an Angular Project with Angular CLI with routing flag. Let’s also create Login and Dashboard components. Step 2: Routes Add route in the app-routing.module.ts file, the…
Supervised Machine Learning with Scikit Learn Library in Python: Covers Dataset Reading, Splitting, Vectorising, and Predicting Using Classifiers
Machine learning isn’t rocket science it could be easy if you lean it the right way, but learning the right way is a challenge. In Supervised Machine Learning we train a model (machine) with large dataset of factual data and based on this data it can then predict the output for a given input. Suppose…
Spring Boot Get Started Guide To REST API
Spring Boot has got immense popularity lately, since what it brings to table is far comprehensive. In this article you will learn how you can get started with Spring Boot with as minimal setup and build REST API with snap of a finger. Spring provides a utility https://start.spring.io/ to create a spring boot project. It…
How to add MobX state management in React project
In this article you will get to know how your life as React developer could be easier if you simply switch to MobX from Redux. With the introduction of React-Context and increasing use of MobX in react application, I really hope that one day Redux bubble bursts. All of that being said, let’s begin with…