JavaScript Shortcuts from a Seasoned Professional

Brian Jacobs JavaScript, Programming, Tutorial Leave a Comment

I’ve spent the past 15 years of my career working as a web developer. Over those years, I’ve learned and created various shortcuts to help ease development. So, I figured I’d share them with you. This short write up lists some of the JavaScript tips and tricks that I’ve picked up during my career.

The first snippet I’ll cover is one I’ve only used in a very specific, unique circumstance. It may not be relevant to all of you, but I wanted to share for the few it would apply to. The rest are snippets I use on nearly a daily basis. No matter your situation or requirements, you should be able to find at least one that you can adopt.

JSON Server to Mock API Servers: A Quick and Easy Solution

Todd Leininger Development Technologies, JavaScript, Testing, Tutorial Leave a Comment

I have found myself in the following scenario many times throughout my career. Everyone is ready to get the project started. You know what you are going to be working on, and as the frontend developer, you get started right away. You get to the point that you are ready to test your code to see how the API calls work. There’s one major thing in your way, though. The APIs aren’t done yet.

You could just create some static JSON files and read them in, but that doesn’t really test out calling an API. That’s where JSON Server swoops in to save the day. In this post, I’ll walk through how to use JSON Server. We’ll set up our environment, serve a simple JSON file, and generate mock data.

Configuring Hangfire’s BackGround Method for .NET Core Applications

Bernardo Leite .NET, .NET Core, C#, Tutorial Leave a Comment

In this article, we will go over how to install the Hangfire NuGet package within the NuGet Package Manager in Visual Studio. Then, we’ll walk through how to configure it within the .NET Core framework using Service Fabric. Lastly, we’ll learn how to use the BackgroundJob.Enqueue method in order to schedule a background task to be performed and at the same time not disturb the flow of your code.