JSK Weekly - April 28, 2022

Since we're heading out of the fourth month of 2022, let's kick off with Rich Kurtzman's "4 JavaScript Frameworks You Should Know in 2022".

Other popular stories this week include Syncfusion's "Top 10 React Component Libraries Every Developer Should Know", "Top 5 React Lazy-Loading Libraries for 2022" and Fernando Doglio's "Why do JavaScript Developers Hate FOR Loops?" on Bits and Pieces.


General

How to create a new component in svelte using a template - svelte component scaffolding and...

Creating new components is probably one of the things you do most in Svelte. To maximize the developer experience, you must automate every task that you do often. It's not just to save time, but also to avoid repetitive tasks that annoy and distract us developer.

Authored by: Bit

How To Use Images in NextJS Applications? - Upmostly

Images are a common part of many websites. It's important that you learn how to use the images properly in NextJS to make use of all of the optimizations that the framework developers have provided for us. When working with NextJS you have to place all of your static images in the public folder of your application.

Authored by: Upmostly

module.exports - How to Export in Node.js and JavaScript

In programming, modules are components of a program with one or more functions or values. These values can also be shared across the entire program and can be used in different ways. In this article, I will show you how to share functions and values by exporting and importing modules

Authored by: Dillion Megida 🚀

Extending UI components: Better Developer Experience

Components should be written once and evolved over time. That means that new components should be written with extendability in mind, making them easy to evolve and compose together by design. Just like Atoms and Molecules in nature, the granular pieces rarely change - it is how you compose them that decides what you create.

Authored by: Bit


JavaScript

Why do JavaScript Developers Hate FOR Loops?

C-style FOR loops are old, verbose to write and require you to also define an extra variable and keep track of it throughout the whole thing. With so many alternatives available, why would the...

Authored by: Bit

Closure in JavaScript - Explained with Examples

In this article, we are going to talk about closures in JavaScript. I'll walk you through the definition of a closure, a simple day-to-day fetch utility closure example, and some of the advantages and disadvantages of using closures. Table of Contents * Prerequisites * What are

Authored by: freeCodeCamp.org

How to Implement Speech-to-Text Quickly and Easily (in JavaScript)

Hey friends, Today we have a quick and fun mission. Using the Speech Recognition Web API, we want to capture a user's voice, convert their speech to text, and display that text to the console. Before we get started, I also have an article on how to easily implement text-to-speech.

Authored by: Kyle DeGuzman

How to Create a Draggable Carousel Using Vanilla JavaScript

A website's carousel or slider is an effective way to display multiple images or content in a single space. It encourages visitors to concentrate on important website content while also improving overall visual appeal by saving screen space. In this article, we will learn how to create a draggable carousel from scratch using vanilla JavaScript.

Authored by: StackAbuse

Are You Afraid To Solve These 3 JavaScript Questions?

Recently, I switched my job and attended more than 30 interviews. It was a relatively enjoyable experience and I faced all of the questions with ease. However, there were some that were very tricky to answer like these.

Authored by: SUJIT PATIL

10 Common Causes of JavaScript Errors and How to Avoid Them

JavaScript is a programming language for the web, flexible, and widely popular. It is widely used in the software development industry. Incorrect JavaScript code can result in unexpected errors and can anguish user experience. In this article, we will look into the 10 most common causes of JavaScript errors and the practices to avoid them.

Authored by: JavaScript In Plain English

Modules in JavaScript - CommonJS and ESmodules Explained

Hi everyone! In this article we're going to take a look at modules in JavaScript. Modules are a technique heavily used in today's software design/architecture. First we're going to learn what they are and the different types of modules that exist. Then we're going to discuss why modules are useful.

Authored by: German Cocca

4 JavaScript frameworks you should know in 2022

The 4 frameworks JavaScript developers should know.

Authored by: Rich Kurtzman


TypeScript

How the TypeScript Exclude Type Works

In TypeScript, the Exclude utility type lets us exclude certain members from an already defined union type. That means we can take an existing type, and remove items from it for specific situations. Let's look at how the Exclude utility type works in TypeScript.

Authored by: Johnny

The Type Annotations proposal with the TypeScript team (JS Party #222)

Daniel Rosenwasser and Ryan Cavanaugh from the TypeScript team at Microsoft join Nick and Boneskull to catch us up on the latest happening with the TypeScript project, including what's exciting in the new 4.7 beta release. Then, we dive deep into the new, TC-39 stage 1 Type Annotations proposal, what it is, and what it...

Authored by: JS Party

How the TypeScript Omit Type works

TypeScript provides a number of utility types that are used to solve a particular problem that using types in Javascript creates. One very useful utility type used in TypeScript is the Omit type, which lets us customize an already existing type. Let's look at how it works.

Authored by: JavaScript In Plain English


Angular

Develop an Online Shop with Angular 11 and .Net Core 5

In the previous post, we completed the product purchasing process, with the introduction of order validation and submission. One of the shortcomings of the web app, as it stands right now, is the...

Authored by: JavaScript In Plain English

How You Can Access All Host Component Details Inside the Directive in Angular

I recently came across a scenario in my work project where I wanted to reuse the "Scroll to the text on clicking on a link" functionality across components irrespective of the component. This scenario demanded accessing the host component inside the directive.

Authored by: Ramya Balasubramanian


React

Developing Two-Tier Web Apps with React and AWS

The two-tier and three-tier models are the widely adopted software architectures in designing full-stack web applications. The three-tier architecture has been popular for a long time due to its benefits, such as better security and scalability.

Authored by: Bit

React Batching

Batching in React describes the internal implementation detail of React which treats multiple state updates as one state update. The benefit: multiple state updates are batched as one state update and therefore trigger only one re-rendering of the component which improves the rendering performance especially for larger React applications.

Authored by: Robin Wieruch

Explore the New Features in React 18

Looks like it's that time of the year again. React just released its newest version 18, which comes packed with a bunch of features that add a dramatic boost to your development. In this article, I will be walking you through each of these features.

Authored by: JavaScript In Plain English

Adding Firebase Analytics to React Application - The Simple Way

Data is everywhere. Being able to see how your website, or app, is doing in real-time is a blessing. Otherwise, how else can someone know what to improve, add or remove, to make their products and services better? I have always wanted to add (Firebase) Google Analytics to a few of my projects, to see what works and what doesn't.

Authored by: Aakash

React Router 6 Lazy Loading

A React Router tutorial which teaches you how to use Lazy Loading with React Router 6. The code for this React Router v6 tutorial can be found over here. In order to get you started, create a new React project (e.g. create-react-app).

Authored by: Robin Wieruch

React Internationalization (i18n) and Localization (l10n) : Guide

Learn how to localize React app by following proper React Internationalization processes App Internationalization can also be abbreviated as - i18n, intl, and App Localization is often abbreviated as - l10n. , and following React Internationalization best practices to make your app more accessible and better suited for international markets.

Authored by: Ronak Patel


Vue

How to Build a Headless WordPress with Vue.js

WordPress is widely regarded as one of the most popular content management systems in the world. In fact, as of late 2021, WordPress powered 35% of the top 1 million websites in the world. And around 25% of all websites, period. Why is it so popular? First, it's free to download and use.

Authored by: Rich Kurtzman

Vue-i18n key fallback - handle missing keys and keep options with a function decorator

The widely used library for internationalization in Vue - vue-i18n has some limitations. In Evionica we've encountered a need for a fallback for non-recognized translation keys. The library requires a localization file, containing keys and translation strings. Basic usage is pretty simple - you have to pass the translation key and you get translation text in the result.

Authored by: JavaScript In Plain English


Node.js

Node Make HTTP POST Request with HTTP Headers Tutorial

In this short guide, we will show you how to make HTTP Post request in Node. Also, how to add additional information with http post request using http headers. HTTP Requests are great; they talk and talk for the sake of communication with another server.

Authored by: Digamber Singh

Global fetch landed in Node 18

Do you know what this code does? The code comes from the Next.js codebase and polyfills the fetch method. It has been an excellent developer experience to not worry about making HTTP requests in Next.js while relying on an API that works in the browser.

Authored by: stefan judis

Node Js Gzip Compress File using Zlib / Streams Tutorial

File compression helps in reducing the file size, as beginner developers, we always face challenges building a new feature in node. Today, in this step-by-step tutorial, we will explain how to compress a file using Gzip format in node js. In order to compress a file, we will use the zlib module in the node js environment.

Authored by: Digamber Singh


Libraries and Tools

Top 10 React Component Libraries Every Developer Should Know

Components are the building blocks in React. You can combine and structure them in a variety of ways to create the desired webpage. The React community has created many component libraries to assist developers in getting started faster.

Authored by: Syncfusion

Writing an Extensible CLI Tool in 2022 with Node.js

Writing a CLI (Command Line Interface) tool in 2022 using Node.js is no longer a real challenge since there are countless packages already that help you do just that. However, writing one that is easily extensible is can be updated easily is another story.

Authored by: Bit

Top 5 React Lazy-Loading Libraries for 2022

Lazy loading is one of the most popular methods to optimize React applications. It allows users to render content only when they need it, resulting in faster initial load time, reduced bandwidth consumption, and less data traffic.

Authored by: Syncfusion


Testing

When Can The Test Click

Many many moons ago I wrote a blog post When Can The Test Click?. It was part of a series of blog posts that explain why an end-to-end test might be flaky. The main reason in my opinion that causes a

Authored by: Gleb Bahmutov

Help test our streaming video components

We've just launched the first version of our streaming video components and are looking for feedback from developers. Just paste our single line snippet (no login needed), and request a free invite if you're interested in learning more.

Authored by: mave


Functional Programming

Destructuring Function Parameters in JavaScript

I recently published three posts on array destructuring, object destructuring, and destructuring from nested objects. Destructuring can be used inside the parentheses of a function definition (where you place the parameters) in order to pick out values from the arguments passed into a function.

Authored by: codecupdev

When to Use forEach(), map(), filter(), find(), and reduce() on JavaScript Arrays

Array functions are something that can help you with any type of manipulation or looping through an array of items in JavaScript. Some of the pre-built functions can have very similar use cases to one another, therefore I have created a list of manipulation functions, with how they look and their use cases.

Authored by: JavaScript In Plain English

What Are Pure Functions and Can React Components Be Pure as Well? - Upmostly

Purity is an important concept when it comes to talking about functional programming. A pure function can be described by two characteristics Produces no side effects Given the same input, it always returns the same output Using pure functions is the easiest way in which you can reduce the cognitive load of understanding your code and make it simpler for other developers to get up to speed quickly.

Authored by: Upmostly





0 comments