Open in app

Sign In

Write

Sign In

Arjun Vaidy
Arjun Vaidy

41 Followers

Home

About

Published in

Nerd For Tech

·Dec 11, 2022

How to understand Higher-order functions and Callbacks in JS

Before diving deep, Let’s understand why we need functions in the first place. Every code follows the DRY principle(Don’t Repeat Yourself). The bedrock of the DRY principle is Functions. Let’s add two numbers, 10 and 20, const sum1 = 10 + 20; Let’s add 50 and 60, const sum2 =…

Higher Order Function

4 min read

How to understand Higher-order functions and Callbacks in JS
How to understand Higher-order functions and Callbacks in JS
Higher Order Function

4 min read


Published in

Nerd For Tech

·Nov 15, 2022

Making sense of Git and GitHub — V [Rebase, GitHub ]

Are you tired of merging and resolving conflict? — We are okay with ‘fast-forward merge’ as it is not creating an auto-generated merge commit. When you observe the difference between fast-forward and three-way merge, it all depends on the base commit. What is base commit? Base commit is the commit from which the branch originated. Here, the base commit for Branch1 is the…

Git

5 min read

Making sense of Git and GitHub — V [Rebase, GitHub ]
Making sense of Git and GitHub — V [Rebase, GitHub ]
Git

5 min read


Published in

Nerd For Tech

·Nov 15, 2022

Making sense of Git and GitHub — III [Reset, Branching]

This post is in continuation of this post. Staging = Cached = Index. What command do we use? If you need to remove only from the Staging area, use git rm — cached <filename>. If you need to remove from both the Staging area and the Working directory, use git…

Git

5 min read

Making sense of Git and GitHub — III [Reset, Branching]
Making sense of Git and GitHub — III [Reset, Branching]
Git

5 min read


Published in

Nerd For Tech

·Nov 3, 2022

Making sense of Git and GitHub — IV [Merging and Conflict]

This part is in continuation of this post — Making sense of Git and GitHub — III [Reset, Branching] If the branch is created, it needs to be merged with the parent branch(master). It is the master branch ultimately deployed. This is called git merging. We will illustrate merging, Note: …

Git

4 min read

Making sense of Git and GitHub — IV [Merging and Conflict]
Making sense of Git and GitHub — IV [Merging and Conflict]
Git

4 min read


Published in

Nerd For Tech

·Oct 31, 2022

Making sense of Git and GitHub — II [ Staging and Committing, Commit History, Difference]

This is in continuation of this post(Making sense of Git and GitHub — I). Please read before proceeding. We will create a new file Index.css in the working directory. What would be the output if we give git status now? Does the new file added tracked by the local repo(git)…

Git

7 min read

Making sense of Git and GitHub — II [ Staging and Committing, Commit History, Difference]
Making sense of Git and GitHub — II [ Staging and Committing, Commit History, Difference]
Git

7 min read


Published in

Nerd For Tech

·Oct 30, 2022

Making sense of Git and GitHub — I [Central vs. Distributed VCS, Git-GitHub, Working-Staging-Repo]

Why do we need Git? Without Git, modern software development is not possible. Believe this is not an understatement. Today software development has many collaborators and teams, and they work on single source code because software should have a single source code to function and can’t have multiple source codes. …

Git

7 min read

Making sense of Git and GitHub — I [Central vs. Distributed VCS, Git-GitHub, Working-Staging-Repo]
Making sense of Git and GitHub — I [Central vs. Distributed VCS, Git-GitHub, Working-Staging-Repo]
Git

7 min read


Published in

Nerd For Tech

·Sep 26, 2022

Declutter Array.reduce()

Many people say using Reduce method in your code makes it messy. Hence many experts advise avoiding it as much as possible. But leave all those advice aside. We will make sense now. Remember, it is still a built-in method for Arrays in Javascript. Reduce = Many to one. It…

JavaScript

6 min read

Declutter Array.reduce()
Declutter Array.reduce()
JavaScript

6 min read


Published in

Nerd For Tech

·Sep 25, 2022

CORS Explained

You can read more about HTTP here. CORS — Cross Origin Resource Sharing. Let’s understand the difference between Origin and Site. Let’s take an URL: http://app.paperless.com/about Here http:// → Scheme(protocol used) app → Sub-domain paperless -> second-level domain com → Top-level domain about → sub-directory Take a long URL like…

Cors

2 min read

CORS Explained
CORS Explained
Cors

2 min read


Published in

Nerd For Tech

·Sep 16, 2022

Understanding Async, Event loop, Task queue in JS

We know Javascript is single-threaded and synchronous. Read more about this here. Single-Threaded = Process one line at a time. Synchronous = Sequence = one after other. Let’s give Rashomon’s effect on synchronicity. If it processes one after the other, the second line waits for the first line and the…

Call Stack

5 min read

Understanding Async, Event loop, Task queue in JS
Understanding Async, Event loop, Task queue in JS
Call Stack

5 min read


Published in

Nerd For Tech

·Sep 4, 2022

Understanding Execution-context, Hoisting, Call-stack, Closures, Scope, Block in JavaScript

Note: I have imported it from my blog. So it may not look like the original post. If you want to read the original blog. Please visit here. Is JavaScript synchronous? Yes. Is JavaScript single-threaded? Yes. Enough of jargon like thread and synchronous. Let’s understand these terms first. Synchronous =…

JavaScript

8 min read

Understanding Execution-context, Hoisting, Call-stack, Closures, Scope, Block in JavaScript
Understanding Execution-context, Hoisting, Call-stack, Closures, Scope, Block in JavaScript
JavaScript

8 min read

Arjun Vaidy

Arjun Vaidy

41 Followers

Founder of a startup. I explain things through first principles and intuitive mental models

Following
  • Cihan

    Cihan

  • Marius Bongarts

    Marius Bongarts

  • Philip John Basile

    Philip John Basile

  • Kim Wuestkamp

    Kim Wuestkamp

  • Pavel Pogosov

    Pavel Pogosov

See all (24)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams