Sign in

I write about Javascript | python | Mindfulness and Psychedelics.
Beginning of React Learning Series, Week 0

I started learning ReactJS a month ago and got an internship in a startup on the basis of skills I acquired in that month, I am working as a react js developer intern but still, I feel like I am standing at the beginning of the learning curve, Which as you know, does not feel good….

Hence I decided to commit myself publically to learn and share my weekly progress here, in the form of what I have learned, what resources came in handy, what projects I am trying to implement, and my other insights.

Timeline

00: Initially for 2–4 weeks…


This is the third part in the continuation of my react learning series, where I post a weekly article of my react learning progress and share resources and material that came in handy and helped me better understand the concepts and advance my javascript skills.

This week’s discussion is a little bit different from the path which I follow, But this was the most productive week, and I understood react on a completely different level, No no, I did not learn Router or Redux or any other reactjs framework, Instead, I learned how to run reactJS without writing JSX, yeah…


This is the third part in the continuation of my react learning series, where I post a weekly article of my react learning progress and share resources and material that came in handy and helped me better understand the concepts and advance my javascript skills.

Following the learning path I laid for myself, Hooks were the next on the table, I covered the basic and must know hooks this week and will cover the advance hooks and custom hooks in the upcoming weeks. The hooks which are covered in this article are,

  1. UseState
  2. UseEffect
  3. UseContext
  4. UseReducer

In order to understand…


React Learning Series, Week 1

This article is in continuation of my react learning series, where I post a weekly article of my react learning progress and share resources and material that came in handy and helped me better understand the concepts and advance my javascript skills.

This week I got the fundamentals off the table, I went through a lot of theory and articles to have a better understanding of the concepts before diving into coding. Let me give you a glimpse of my week 1 from the top down. Resources are at the bottom.

Hello World

Of course, How can I miss the norm, right?


Well, the literal meaning is to destroy the structure of something or for simplicity, we can say modify the structure of something.

Now, coming back to JavaScript and JS destructuring assignment.

Destructuring Assignment

According to MDN, The destructuring assignment syntax is a javascript expression that makes it possible to unpack values from arrays, or properties from objects, into distinct variables.

Let’s simplify it a bit, destructuring assignment allows a programmer to assign properties of an array to a bunch of variables. Let’s take an example.

let a, b, c;[a, b] = [10, 20];console.log(a); // 10console.log(b); // 20 [a, b…


Different companies use various forms of programming paradigms and it is hard to argue which one is best, well that is the best part, No particular paradigm is best or worst, each paradigm servers the need of the company and should comply with the software engineering techniques.

A programming paradigm is a way of thinking about software construction based on some fundamental principles.

The most common form of programming paradigms are quite common, which most of the programmers use in their day-to-day lives i.e Procedural, Object-Oriented, Functional, and Logical. All these paradigms are great and serve the need in most…


According to Wikipedia the movement to decriminalize psilocybin in the United States began in the late 2010s, with Denver, Colorado, becoming the first city to decriminalize psilocybin in May 2019. The cities of Oakland and Santa Cruz, California, followed suit and decriminalized psilocybin in June 2019 and January 2020, respectively and Canada too has approved the legal use of the psilocybin to treat four palliative care patients under section 56 of the Controlled Drugs and Substance Act.

But the question is Why now in 2020? is it something related to politics, Coronavirus or is it just because people are becoming…


As a programmer and a JavaScript developer, the most confusing topic for me is this and defining the context that this is referred to. After a lot of reading and going through the documentation many times I finally able to understand the concept behind this keyword.

I want to save your precious time by explaining it briefly with core concepts, so let’s get started.

Introduction

According to MDN in JavaScript the value of this not refer to the function in which it is used or it’s scope but is determined mostly by the invocation context of function and where it is…


Life was not easy when we used callbacks and promises, remember the time when you got stuck in a callback hell! yeah right, we don't even want to think about that time.

But now, we have asynchronous functions, well I am not saying async functions make our life easier but yes they can be much easier to write asynchronous JavaScript.

Asynchronous Functions

asynchronous functions use the keyword async , it can be used with both the normal function and arrow functions.

async function functionName (argument){
// asychronous action
}
const functionName = async (argument) => {
// asychronous action
}

As describes…


If you are feeling depressed that means you are spending too much time in the past and If you feeling anxious that means you spending your time worrying about the future.

Mindfulness is a simple act or practice of being present in the current moment or you can say be living in the here and now. Mindfulness can be summed up very easily in a three-word quote by Ram Dass.

~ Be Here Now.

Mindfulness is not something which is possessed by talented ones, mindfulness is something we all possess, and that too naturally. it can be easily accessible to us when we practice it on a daily basis.

Our minds are addicted to thoughts and thinking and can be very easily distracted. And with the 21st century’s busy life and…

Dhruv Sharma

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store