HypeJS.
A place about all things JavaScript and more
What are React Server Components? How it works?
I hope you are finding this platform useful and wishing you to have a good day!
This time around we are not dealing with a new fancy API but rather a new application architecture whict lets you fetch data in asynchronous components that run on the server or even during the build time. Let's have a look at what React team has in the store for the future.
More Stories
This is how a Javascript engine works
A JavaScript engine is a program that converts code into machine-readable instructions which can be executed by the computer's hardware. Modern JavaScript engines no longer just interpret code, they compile it. V8 is a JavaScript engine developed by Google for Chrome and Chromium web browsers. V8 is written in C++, it is portable and runs on Mac, Windows, Linux and other systems. Because of it's popularity, V8 will be the subject to disect in this article.
Destroy event listeners with AbortController
The other day, I came across an unconventional usage for AbortController API. I was aware that AbortController can be used for better control over web requests, but I never thought to leverage it with event listeners. I assume you know how to use the traditional EventTarget: removeEventListener() method so I will not talk about that, today we are talking about an alternative.
Using asyncio for concurrent http requests with Python (asyncio.ensure_future and asyncio.gather)
Python has a few ways for implementing fetching data using http with various packages. "requests", "asyncio", etc. In this article will make a practical example that demonstrates how to run 100 requests concurrently as asyncio tasks and then how to save the results to a file as json, using asyncio.ensure_future and asyncio.gather. Why would I want to use asyncio.ensure_future and asyncio.gather? Click the article to read more ...
Set Environment Variables in LINUX with PM2 for Node and more
Environment variables are an essential component of any Linux system, enabling the configuration and behavior of various applications and services. In this article, we will explore how to print, set, and use environment variables in Linux, along with a specific focus on PM2's "--update-env" flag for restarting services. Whether you're a beginner or an experienced Linux user, this guide will help you navigate the world of environment variables and enhance your system's functionality.