Systems | Development | Analytics | API | Testing

JavaScript

Effective Testing in JavaScript

Kernighan & Pike, The Practice of Programming, 1999 Despite constantly changing technologies and the needs of customers, some wisdom seems eternal. Programmers need to test their code. But thorough testing takes time. When we do it well, everything works, and a massive testing effort feels like a waste. However, when we do it badly, our code is often broken, and we wish that we had done better testing. I have some good news for you.

Robust JavaScript Error Handling: Best Practices and Tools

By combining custom errors, named functions, and Bugfender, you can create a robust JavaScript error-handling process that allows you to immediately identify the defects of your JavaScript apps. This article shows you some strategies, approaches, and best practices to ensure you create high-quality and high-performing JavaScript applications. Table of Contents.

Robust JavaScript Exception Handling: Best Practices and Tools

By combining custom errors, named functions, and Bugfender, you can create a robust JavaScript exception-handling process that allows you to immediately identify the defects of your JavaScript apps. This article shows you some strategies, approaches, and best practices to ensure you create high-quality and high-performing JavaScript applications.

Get Fuzzing: An Introduction to Advanced Software Testing for Java and JavaScript

There are many techniques for software testing. However, if you haven’t heard of or used fuzzing, also known as “fuzz testing”, this may be the best post you have ever read. This article will explain what fuzzing is, from its inception in the late 1980s to its evolution to be “smart” today. After that, this article will explain how to use smart fuzzers like Jazzer and Jazzer.js to fuzz Java and JavaScript code, respectively.

Connecting React.js and StimulusJS with JavaScript Events

We recently added a "Getting started" page to the AppSignal, which shows new users a page filled with recommended steps to help them get the most out of their AppSignal experience. Some users enjoy having a helping hand when getting started with AppSignal, others prefer exploring our product solo or already have experience with AppSignal. To give all of our users the option of a guided or solo experience, we needed to a toggle that hides or shows the Getting started page.

Choosing the best JavaScript framework for your next project

The State of Developer Ecosystem 2022 report revealed that 65% of developers are using JavaScript, making it the most popular language. JavaScript also claims the spot of most popular primary language with 34%. Of all the JavaScript developers 80% use at least one JavaScript framework. Though there are thousands of JavaScript frameworks available, only a small subset of them is being used by developers.

What Do Deno and Bun Bring to the Table?

Deno and Bun are two JavaScript runtime newcomers that aim to undermine Node.js. These alternatives have gained popularity for their innovative approach to server-side development with JavaScript. But the real question is: what do they bring to the table compared to Node.js? In this post, you'll learn what Deno and Bun are, what they offer, and how they address some long-standing drawbacks in Node.js. We'll shed light on specific use cases where Deno and Bun excel.

How to Handle the "localStorage is not defined" Error in JavaScript

The localStorage is not defined error generally occurs when you try to access the localStorage object in JavaScript, but the browser environment where your code is running does not support it. Using the localStorage web storage API, web applications can store key-value pairs locally in a web browser, allowing you to persistently retain data on the client-side even if the user shuts their browser or navigates away from the website.

How to Connect to a MySQL Database with JavaScript in a Few Steps

The DreamFactory REST API enables database connections using a wide variety of front end scenarios. This simple sample app demonstrates how DreamFactory easily can be used to connect to a MySQL database with JavaScript. It’s a simple address book, where contacts can be created, shown, updated, deleted and grouped: basically, CRUD operations. The Address Book is a very simple one page app based on plain JavaScript and jQuery.