Sign in

Software Engineer | Javascript Developer | React | React Native | Angular | NodeJS
Pieces of a broken plate.
Photo by CHUTTERSNAP on Unsplash

In the last few days, I was a bit restless because I wanted to know about the feedback from the company I was interviewed for. I really wanted to work there and that’s why I was feeling the fear of rejection.

Gradually I experienced that that fear was affecting my work in the current workplace, and because of waiting for feedback from that company, I could not concentrate on my current work as well as my personal life. All the time, I was eagerly waiting to get positive feedback from that company and for sure that’s a really bad thing.

Photo by Bharat Patil on Unsplash

In Javascript we don’t have classes, rather we only have objects. So if we want to implement inheritance with objects we can get the help of prototypical inheritance.

Before talking about prototypical inheritance, we all should stay on the same pitch in terms of javascript prototype. So,

Prototype in Javascript

Suppose we have one object john . We have another object person .

john is a type of person , right?

We will add the common behaviors to the person object, then later somehow we will link this person object with the john object. …

Photo by Blake Connally on Unsplash

Have you ever heard the term Property Descriptor during the time you have been working with javascript? To be a better javascript developer we should have a better understanding of javascript objects because in Javascript everything is an object.

Property descriptor is one of the concepts that is used in the very root level of core javascript implementation. If you are a javascript developer then you are using the property descriptor implementation for a long time but maybe you never noticed that thing.

Ways to Iterate Object Properties

Most of us probably know that in Javascript we have two ways to get the properties of…

Photo by Quinten de Graaf on Unsplash.

One of the core concepts of an Express application is middleware, and most of us get confused by it.

First of all, think of middleware as a simple function that will take a request object and pass control to the next middleware function or send a response to the client.

One of the simplest examples of middleware is the route handler function in the Express framework. Those who already have some knowledge of the Express framework are familiar with the following code:

app.get('/', (req, res) => {
res.send({ id: 1, name: 'Ashraful' });

In the case above, the get

Inheritance is a great principle in object-oriented programming where we can reuse code. But we have to be careful when using it because sometimes inheritance makes our code fragile.

We can always start building an application in javascript with simple objects and if we see that several objects share similar behavior then we can create a generic object with those features and use inheritance.

Inheritance is not the only solution for code reuse. We have another technique in javascript which is Composition.

Suppose we have an Animal object with one method eat


Next, we have another object…

Redux or React Context?

Redux is a library that helps to manage the state of your application.

Redux should be used in medium to large single-page applications with the complex data flow. Redux can add unnecessary complexity to your application if your application is really small with the simple data flow.

On the other hand, in v16.3 react team introduced Context which also helps to manage the state of a react application.

Why We Need State Management Tool

If we have multiple components that share the same piece of data and they don’t have any parent-child relationship then redux comes to solve the problem. …

Image Slider using React Slick

React slick is a great carousel component for creating an image slider or carousel-like UI components. But sometimes we need some manual control over the default features that the library provides.

Last time when I worked with the library I tried to create an image slider with some extra features that React Slick doesn’t provide. I need to create a slider where I will conditionally show each slider navigator on the left side and right side.

But unfortunately, there were no such features in React Slick to conditionally show just one arrow navigator.

Today I am going to share my…

Ashraful Islam

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