Guidelines to Become a Better Developer

As a beginner, we try to get our code to work first but as we try to become a pro we should be wary of writing clean and efficient code. Writing clean code comes with a lot of practice and it’s a skill that every JavaScript developer must master. In this article, I will share with you a bunch of tips that will help you improve these skills in JavaScript.

1. Use includes() to avoid multiples checking

Having multiple ORs (||) and ANDs (&&) inside your if conditions can make your code look quite messy. So, try and avoid them if and when you can. Here’s a…

Did you hear about the recent Sudo vulnerability bug that was discovered? You might have because it was a recent sensation — CVE-2021–3156. This is a new severe bug that could affect Linux and Unix operating systems, it also affects MacOS. This bug could potentially allow root privileges without authentication for any unprivileged user — yes, it’s that severe.

This vulnerability is perhaps the most significant sudo vulnerability in recent memory (both in terms of scope and impact) and has been hiding in plain sight for nearly 10 years” said Mehul Revankar, Vice President Product Management and Engineering, Qualys, VMDR…

Food for your JavaScript thoughts

JavaScript is a beautiful language that has its own secrets that many of us would be surprised about. Even though there’s something new that we learn about it every single day, it never ceases to surprise us. Here’s a collection of a few well-kept secrets of JavaScript.

1. NaN is a number

Did you know NaN was a number? Yes, that’s right! Not a Number (NaN) is apparently a Number.

console.log(typeof NaN); //number

Also, NaN is not even equal to itself and it’s not equal to any other object. If you’ll have to check if anything is NaN at all, you need to use isNaN()

10 Must Have Traits of a Front-End Developer

Living the developer life could sometimes be tiring and exhausting. There are days when you just get everything right and there would be days when you might consider alternative career choices, it’s all part and parcel of being a dev. So take things light and always keep your confidence high. Given the rapid changes in the software world, there are always new frameworks coming up everyday. So don’t fret, here are a bunch of things that can help you be a confident front end developer.

1. HTML and CSS

HTML and CSS are the basic blocks of any web application. These are the ABCs…

What’s Famous And What’s Not In JavaScript?

The most awaited results of the State of JavaScript 2020 were announced on 14 of January 2021. This survey was conducted amongst 23,765 developers across 137 countries. The survey included people’s usages and opinions of JavaScript features, technologies, tools, and more. Let’s discuss a few of the topics that caught my attention from this survey result.

Usage Overview

RegEx Cheat Sheet

Regular expressions are sequences of characters that are used to match a certain pattern in a String. Most of the programming languages provide options to handle regular expressions or commonly called RegEx. It is generally used for finding a part of a string or to validate the string input. In real-time, they are used in search engines, finding or finding and replacing a pattern in word processors or in text editors.

Commonly used RegEx patterns

Many times we find ourselves in Regex 101 or RegExr trying to find the right RegEx to match the pattern that is required. …

Easily Test Your Application Completely

End-to-end tests, as the name suggests are designed to test any application from one end to another — be it top to bottom or start to finish. One might wonder why writing end-to-end test cases for any web application is even needed. Often times we only test several components in an application and not the entire flow to replicate how the user uses the application. If there’s any failure in any subsystem then it could potentially cause the entire application to break. This is a major risk and it’s always best to have end-to-end testing to avoid this.

What’s the purpose of doing E2E testing?

End to…

Super-fast Deployment For React Applications

If you’re an enthusiastic developer who loves building React applications, then GitHub pages could be your best bet for hosting them. All you have to do is follow a few simple steps and you can host as many apps as you’d like straight from your repository. Sounds exciting? Read away!

GitHub Pages is a static site hosting service that takes files straight from a repository on GitHub and publishes a website. We can optionally run the files through a build process if needed. Here are the steps that you need to follow to deploy your React App:

1. Storing your project in GitHub

Make sure you…

A Few Tips To Become A Better Developer

In the beginning of my career, every time I worked with JavaScript I’ve always been skeptical about if the way I write my code was right. Because, in any programming language there’s no one right way of getting things to work. Nevertheless, one must always remember the things that are not supposed to be done. So, here’s a curated list of things that should not be done in JavaScript that I would like to share.

1. Avoid using var

Always use let or const when you’re trying to declare a variable. If you have a variable that does not require a change then it’s…

GraphQL Is Way Better

REST has been used by many developers to send data over HTTP whereas GraphQL is typically presented as a technology to replace the legacy of REST APIs. In this article, I’ll be explaining the benefits, limitations, and differences between these two, which will help you decide what to chose for your next project.

What is REST?

REST(Representational state transfer) is an API design architecture that’s used to implement web services by using a predefined set of stateless operations (including GET, POST, PUT, and DELETE).

The core idea of REST is that you would retrieve a resource by putting through a request to the…

Harsha Vardhan

Engineer, Photographer, Tech Blogger. Builds products and writes for developers. I love to code and love to help others code :)

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