Open in app

Sign In

Write

Sign In

Aditya Singh
Aditya Singh

14 Followers

Home

About

Published in

Geek Culture

·Pinned

forEach/map and async don’t go hand in hand

At times, we often tend to pass async functions with forEach and map functions. For ex: [1,2,3,4,5].forEach(async (n) => setTimeout(console.log(n), 1000)); Expected: It is expected that all numbers from 1..5 are printed one after the other with a gap of 1 second after printing each line. Outcome: All numbers from…

Programming

3 min read

forEach/map and async don’t go hand in hand
forEach/map and async don’t go hand in hand
Programming

3 min read


Published in

Geek Culture

·Pinned

Solving the Readers-Writers problem in a multithreaded environment.

No BS. Straight to the use case. At work, in one of our services, we were using an OAuth enabled API. For every request made to this API, the authentication token had to be passed in the request header. What we were doing till now to make any API call: …

Multithreading

5 min read

Solving the Readers-Writers problem in a multithreaded environment.
Solving the Readers-Writers problem in a multithreaded environment.
Multithreading

5 min read


Published in

Nerd For Tech

·May 25, 2022

Docker — “But it works on my machine…” Then we’ll ship your machine!

I can enable you to take your computer to all your customers houses and run your application for them on it. Github link to the application code: https://github.com/adisingh007/works-on-my-machine Won’t eat much of your time. Just 5 mins. A quick nodejs application with 1 rest endpoint. 1 e2e test to verify…

Docker

5 min read

Docker in a nutshell — “But it works on my machine…” Well, then lets ship your machine!
Docker in a nutshell — “But it works on my machine…” Well, then lets ship your machine!
Docker

5 min read


Jul 1, 2021

Solving recurrence relations — In Simple Language

Parts: Building Recurrence Relations in plain readable English Solving recurrence relations — In Simple Language (You are here) General Idea: We use Backward Substitution to keep solving the recurrence relations again and again till we reach our base case. Confused? Its expected. But before we dive into Backward Substitution let’s…

Analysis Of Algorithm

4 min read

Solving recurrence relations — In Simple Language
Solving recurrence relations — In Simple Language
Analysis Of Algorithm

4 min read


Jun 29, 2021

Building Recurrence relations in plain readable English

In the next 4 minutes, I am gonna explain this complex topic in simple plain english. No mathematical jargons. I promise. Parts: Building Recurrence Relations in plain readable English (You are here) Solving recurrence relations — In Simple Language Formal definition for geniuses out there: (feel free to skip) A…

Analysis Of Algorithm

4 min read

Building Recurrence relations in plain readable English
Building Recurrence relations in plain readable English
Analysis Of Algorithm

4 min read

Aditya Singh

Aditya Singh

14 Followers

I write code. Engineer at CoinDCX.

Following
  • Ruby Valappil

    Ruby Valappil

  • Netflix Technology Blog

    Netflix Technology Blog

  • Steve Yegge

    Steve Yegge

  • Ali Kamalizade

    Ali Kamalizade

See all (25)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams