Coding conventions are the style guidelines for programming. Programming best practices and principles are included in this. Here we will discuss some coding conventions.
“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
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…
Job interviews are not entirely predictable, but we often still see commonly asked tricky questions. Let’s take a look at ten of them.
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
Predict the output of the code below:
The output of the code snippets is not
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.
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…
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.
Security checking tools used to scan and check the safety of websites…
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.
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.
Finding into an array is the most needed task of everyday development…
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?
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.
Let's discuss some bad and good practices of these principles.
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…
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.
Sometimes we need to find…
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.
First, you need to understand that there are two main parts when creating an application
1. Development part
2. Operations part
DevOps is a link between the two. Now, this is a bit…
*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.
Let's get started.
You can install
node.js by downloading…
Love to solve problems