Building Event-Driven Cloud Functions on Google Cloud Platform

Chris Brown Cloud, Google Cloud Platform, Node.js Leave a Comment

Google Cloud Platform (GCP) offers developers and organizations the ability to create and deploy serverless Cloud Run functions. This code – whether it’s written in Node.js, Python, C#, or another language – can interact with other parts of GCP’s infrastructure. By default, the function is triggered by a basic HTTPS request. However, that is not our only option.

In this blog, we’ll introduce the concept of event-driven functions—a powerful way to automatically respond to changes across GCP services with minimal code. You’ll see how these functions can connect services like Cloud Storage, Firestore, and Pub/Sub, creating efficient workflows with less manual intervention…

better sort in JavaScript

Better Sort Ordering in JavaScript

Lou Mauget Articles, Development Technologies & Tools, JavaScript, Programming, Tutorial Leave a Comment

In this post, I show how to cajole Array.sort() into producing the following order. This: [Item 1, Item 2, Item 100] instead of this…[Item 1, Item 100, Item 2].

The answer is to pass the sort function a comparator argument from the International Collator built into every major browser and Node.js. This approach is simple and declarative for lists of flat strings. The comparison function arguments default to each string being compared. For sorting objects such as a list of dropdown choices, just pass a pair of the sort field drill-downs to the comparison function.

Node.JS Revolution: Farewell to Axios and Fetch API in Version 17.5.0

Bernardo Leite API Development, Articles, JavaScript, Node.js 1 Comment

Every self-respecting student of programming has already needed to use libraries (the famous “lib”) in the development of their applications. Examples include the Axios and Fetch libs, which are widely used on the front-end and back-end to consume external APIs.

Recently, Node.JS v17.5 underwent two changes that divided opinions, so let’s explain how these changes impact the issues of effectiveness and agility in code production. Additionally, I will also discuss the pros and cons of this update.

Node.js for Discord Bot

Using Node.js To Create a Discord Bot

Josh Green Articles, Development Technologies & Tools, JavaScript, Node.js, Programming, Tutorial Leave a Comment

From Zoom to Skype to Microsoft Teams, there is an endless number of platforms to help keep you connected. One such platform is Discord – a service primarily intended for gaming that allows you to voice chat, video chat, or screen share with a community you have developed on your own hosted “server.” One of Discord’s best features is a developer portal with an open API that allows you to add bots and apps to your server, as well as write your own.

There is true beauty in the ability to create your own custom solutions to fill your needs. So in this brief tutorial, I’ll show you how to get up and running writing your own Bots and Apps for Discord with Node.js.