Productivity is the result of a commitment to excellence, intelligent planning, and focused effort.

HypeJS.

A place about all things JavaScript and more

Cover Image for Protocol Buffers in Go

Protocol Buffers in Go

Posted on:
Announcement: If you are interested to contribute with articles, contact me at georgerdp@gmail.com

I hope you are finding this platform useful and wishing you to have a good day!

Protocol Buffers (protobuf) is a language-neutral mechanism for serializing structured data. Used in distributed systems, APIs, and microservice architectures where efficient communication between services is important. Protobuf serializes data into a compact **binary representation**. This makes messages smaller and generally faster to serialize, transmit, and deserialize.

George Crisan
George Crisan

More Stories

Cover Image for Start using the Temporal API- Javascript

Start using the Temporal API- Javascript

Posted on:

JavaScript gets a predictable, timezone-aware, DST-safe date and time API and is available in the current version of Chrome, Safari (with useTemporal flag) and Node.js 23+.

George Crisan
George Crisan
Cover Image for The Power of Ten. Rules for Developing Safety-Critical Code in JavaScript

The Power of Ten. Rules for Developing Safety-Critical Code in JavaScript

Posted on:

To make this clear from the start, this article has my opinion on how to translate to JavaScript The Power of 10: Rules for Developing Safety-Critical Code, which was written with 'C' in mind. In safety-critical software systems, such as medical devices, aviation industry etc, reliability has primacy. Here’s how Gerard J. Holzmann's Power of Ten can be applied to JavaScript.

George Crisan
George Crisan
Cover Image for The Half-Distance Paradox. Simulation in Go

The Half-Distance Paradox. Simulation in Go

Posted on:

In this article, we'll explore a fascinating concept often referred to as the "half-distance paradox," using Go. This paradox comes from an idea in mathematics and philosophy, where a person or object is thought to always halve the distance between themselves and their goal, making it appear that they can never actually reach their destination. This program will simulate the concept and give us some insight into the way it behaves in computing.

George Crisan
George Crisan
Cover Image for The minimum subarray problem with JavaScript

The minimum subarray problem with JavaScript

Posted on:

The Minimum Subarray Problem can be compared to real-world scenarios where you want to minimize some negative outcome over a period of time or across sequential steps. Here's how it could relate to several real-life situations...

George Crisan
George Crisan
Cover Image for Cutting corners will bite you back. Or maybe not, but someone will feel the pain

Cutting corners will bite you back. Or maybe not, but someone will feel the pain

Posted on:

As a programmer, it is very easy to fall into the trap of cutting corners, neglecting the way you are writing code. I've worked in quite a few companies in the last few years and these are the most common corner cuts that I`ve noticed among my colleagues.

George Crisan
George Crisan
Cover Image for Golang, Go read JSON data from a file and create a slice of struct

Golang, Go read JSON data from a file and create a slice of struct

Posted on:

Using a JSON file which contains a collection of people, read the JSON and map it to a slice of struct.

George Crisan
George Crisan
Cover Image for HTTP/HTTPS server with Go 1.22, with nested routing, middleware and more

HTTP/HTTPS server with Go 1.22, with nested routing, middleware and more

Posted on:

In my effort to learn Go 1.22 I've tried to see which of my skills learned in express/node.js can be transferred to GO.

George Crisan
George Crisan
Cover Image for What are React Server Components? How it works?

What are React Server Components? How it works?

Posted on:

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.

George Crisan
George Crisan
Cover Image for This is how a Javascript engine works

This is how a Javascript engine works

Posted on:

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.

George Crisan
George Crisan
Cover Image for Destroy event listeners with AbortController

Destroy event listeners with AbortController

Posted on:

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.

George Crisan
George Crisan
Cover Image for Using asyncio for concurrent http requests with Python (asyncio.ensure_future and asyncio.gather)

Using asyncio for concurrent http requests with Python (asyncio.ensure_future and asyncio.gather)

Posted on:

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 ...

George Crisan
George Crisan
Cover Image for Set Environment Variables in LINUX with PM2 for Node and more

Set Environment Variables in LINUX with PM2 for Node and more

Posted on:

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.

George Crisan
George Crisan