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…
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
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.
HTML and CSS are the basic blocks of any web application. These are the ABCs…
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.
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.
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:
Make sure you…
const when you’re trying to declare a variable. If you have a variable that does not require a change then it’s…
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.
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
The core idea of REST is that you would retrieve a resource by putting through a request to the…
Engineer, Photographer, Tech Blogger. Builds products and writes for developers. I love to code and love to help others code :)