Your peers will thank you later

blank computer screen and a keyboard sitting on a desk
blank computer screen and a keyboard sitting on a desk

Coding conventions are the style guidelines for programming. Programming best practices and principles are included in this. Here we will discuss some coding conventions.

Benefits of Following Conventions

  • Clean code
  • Quality of code
  • Readability of code
  • Makes code maintenance easier

“Clean code is simple and direct. Clean code reads like well-written prose. Clean code never obscures the designer’s intent but rather is full of crisp abstractions and straightforward lines of control.” — Robert C. Martin

1. Magic Numbers

A magic number means we are assigning a number with no clear meaning. Sometimes we use a value for a specific purpose, and we don't assign the value in…

Prepare yourself for that desired job

Man coding on laptop
Man coding on laptop

Job interviews are not entirely predictable, but we often still see commonly asked tricky questions. Let’s take a look at ten of them.

1. Shallow Copy


original: { 
father: ‘MD’,
age: 26,
email: ‘
copy: {
father: ‘MD’,
age: 26,
email: ‘


Object.assign and the spread operator both do a shallow copy. That means we copied the first-level object.


The code we used before can be written like this with Object.assign:

2. JavaScript Hoisting

Predict the output of the code below:




The output of the code snippets is not shoaib and 20.

The fundamental of cronjob

Cron is a kind of scheduler program for UNIX-based operating systems. Cron is used to executing a program/script after a certain period. Suppose we have a program that we want to execute every night at 12 AM, or we need to back up necessary files every week once. These things can be done perfectly by a script that is executed by a cronjob.


Concept of cronjob

Cron is a daemon. Now the question is, what is a daemon? Daemon is a program that always runs in the background, and users don't have direct access over daemon. Cron checks the crontab (crontab is the…

Every day we do some technical things that we can fully handover to these websites

As a technical person, I fetch some regular basis tasks. There are tasks that we can solve in several ways. Many tools, open-source programs, coding, or anything can be helpful in these cases.

Work smarter, Not harder

But one thing I believe in that I mentioned above. If there is a way to do it easily then I am not going to do it by myself in another way. Here I will mention some websites like these that I use in my everyday life and skip my hassles.

Website Safety & Security Check

Security checking tools used to scan and check the safety of websites…

Code that you need always

Javascript code snippets
Javascript code snippets

Programmers always do something new, but some basic and regular things exist that every project must include. Here I mentioned some code snippets from where you will find something new. I swear you are going to bookmark this. Hope this will be helpful.

1. Loop through an object

Loop over an object is a regular basis need of every programming language. Sometimes it can be a complex object with multiple keys and values. Going through this kind of pair is a little confusing. Here I am going to describe two possible ways.

2. Find in an array of objects.

Finding into an array is the most needed task of everyday development…

Secure your web with GEETEST CAPTCHA service

CAPTCHA technology confirms that a real person is accessing both web & mobile application content to block spammers and bots. The idea came to protect automated bots. Automatically sign up with a script, submit forms several times; this is a common hassle that the captcha technology can handle. Captcha blocks automated systems with its own algorithm. There are so many patterns of captchas. Maybe we all have seen the conventional CAPTCHAs. Here comes GeeTest with a different idea.

Application of CAPTCHA protection?

  • Confirming voting accuracy
  • Prevent Login or Register unlimited try
  • Prevent ticket inflation
  • False form submission
  • Random search protection

SOLID principles to make your code robust, maintainable & flexible.

SOLID principles were developed to combat problematic design patterns. The broad goal of the SOLID principles is to reduce dependencies so that engineers change one area of software without impacting others. SOLID principles help to make your code robust, maintainable, and flexible.

Here comes the S.O.L.I.D:

  • Single Responsibility Principle (SRP)
  • Open/Closed Principle (OCP)
  • Liskov Substitution Principle (LSP)
  • Interface Segregation Principle (ISP)
  • Dependency Inversion Principle (DIP)

Let's discuss some bad and good practices of these principles.

Single Responsibility Principle (SRP)

The idea behind the single responsibility principle is that all the classes, modules, functions, and anything inside your code must be a single part. One single responsibility is the…

Common JavaScript array methods with easy explanations

This is an interesting article just because of the image, that is explaining all the methods. Just go through the article once and have a look at the above image. You will definitely have very few to zero doubts left.

1. Map

One of the most used array methods in JavaScript. This is a useful method that you can use for hundreds of purposes. Suppose you need only names from the whole array of objects. You can mention which item you need, and that’s it. Converting one array into another is also possible by this method.

2. Filter

Sometimes we need to find…

Become a DevOps Engineer With a Proper Guideline

Suppose we have developers who are creating a new application. On one side, we have servers that are managed and configured to run this application. Making this available to the end-users is the responsibility of DevOps.

In this article, we will learn what tools you need to learn to become a DevOps engineer.

Basic of DevOps

First, you need to understand that there are two main parts when creating an application

1. Development part

  • Developing of application
  • Testing the application

2. Operations part

  • Deployment of an application
  • Maintained on a server

DevOps is a link between the two. Now, this is a bit…

Build your own email marketing tool

*If you want to let many people know about your business, service, or product, you need to campaign through email. You might have noticed that a lot of websites have a newsletter section at the bottom. The main purpose is to send emails to a group of people.

Why create a newsletter?

  • Promote a new service/product
  • Occasional mail
  • Notice
  • Notify about subscription renewal


  • Node.js installed in your system
  • An email account from where you want to send email
  • A list of emails to who you want to send the email
  • An email title and body

Let's get started.

Install Node.js in our system

You can install node.js by downloading…

Shoaib Mehedi

Love to solve problems

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