How to promisify a function in Node.js

Promisifying is converting a callback-based function into a function that returns a promise, which allows you to use promise chaining or convenient async/await syntax.

Jun 30, 2023#node#how-to

How to remove last character from string in JavaScript

Both substring() and slice() methods allow you to extract a portion of a string. By specifying a range that excludes the last character, you effectively remove it from the string.

Unlocking the Power of Macros in Swift 5.9

Macros are a feature present in a number of languages that allow one to perform some kind of transformation on the program's input source code to produce a different program.

Jun 19, 2023#swift

Inline vs External SVGs in React

Inline SVGs provide direct control and flexibility, while external SVGs offer better modularity, reusability, and easier collaboration between designers and developers.

Jun 17, 2023#react#comparison

How to design a URL shortening service like Bitly

An URL shortening service is a web app that converts a long URL into a short URL. It does this by using a redirect, which is a link that connects the short URL to the long one.

What's New in JavaScript ES2023

ES2023 is the latest version of the ECMAScript standard that will be finalized in June 2023, introducing some new features and improvements that JavaScript will conform to.

How to parse and format URL query strings in JavaScript

The query string provides a way to include additional information in a URL, such as search terms, filters, sorting options, pagination details, or any other data that needs to be passed.

Top 9 CSS and JavaScript Tooltip Libraries

These libraries typically handle the positioning, appearance, and behavior of tooltips, making it easier for developers to implement tooltips without having to write complex code from scratch.

Top 6 Client-Side JavaScript Routing Libraries

They help manage the routing functionality in client-side apps, provide a way to handle navigation, define routes, and perform actions based on the current URL or route parameters.

Data Race vs Race Condition in Swift

A data race is when two threads access the same mutable object without synchronization, while a race condition is when the order of events affects the correctness of the program.

May 24, 2023#swift#concurrency