JavaScript
32K subscribers
1.03K photos
10 videos
33 files
714 links
A resourceful newsletter featuring the latest and most important news, articles, books and updates in the world of #javascript ๐Ÿš€ Don't miss our Quizzes!

Let's chat: @nairihar
Download Telegram
โœŒ๏ธ An SSR Performance Showdown

Fastifyโ€™s Matteo Collina set out to find the current state of server-side rendering performance across todayโ€™s most popular libraries. The first attempt faced negative feedback due to implementation issues, but the showdown has been improved and re-run.

Matteo Collina
Please open Telegram to view this post
VIEW IN TELEGRAM
1โค4๐Ÿ‘3๐Ÿ”ฅ1
CHALLENGE

const obj = Object.freeze({
a: [1, 2, 3],
b: {
c: 4
}
});

obj.a.push(4);
obj.b.c = 5;

console.log(obj.a);
console.log(obj.b.c);
๐Ÿ‘6โค4๐Ÿ”ฅ2๐Ÿคฉ1
2๐Ÿคฃ14๐Ÿ‘9๐Ÿ”ฅ6โค3๐Ÿค”2
๐ŸŒฒ Express.js 5.0 Released; Sort Of

After a long period of seeming to merely be on life support, work on Express picked up significantly earlier this year with a big plan to push โ€˜Express forward.โ€™ The first fruit of this process is now beginning to appear with v5.0. Node 18 is now the minimum support version, there are error handling improvements, improvements to the projectโ€™s tooling, the introduction of a Threat Model, and updates to many of its dependencies.

Wesley Todd
Please open Telegram to view this post
VIEW IN TELEGRAM
1โค11๐Ÿ‘6๐Ÿ”ฅ1๐Ÿคฉ1
CHALLENGE

async function process() {
console.log('Start');
await new Promise(resolve => setTimeout(resolve, 0));
console.log('Middle');
return 'Done';
}

process().then(result => console.log(result));
console.log('End');
๐Ÿ‘13๐Ÿค”7๐Ÿ”ฅ1
๐Ÿ‘16๐Ÿค”15โค7๐Ÿ”ฅ2
๐ŸŽ‰ Happy Programmers' Day

256th day of this year
Please open Telegram to view this post
VIEW IN TELEGRAM
2๐Ÿ‘42โค27๐Ÿคฃ14๐Ÿ”ฅ10๐Ÿค”5
CHALLENGE

function* gen() {
yield* [1, 2, 3].map(x => x * 2);
}

const iterator = gen();
console.log(iterator.next().value);
console.log(iterator.next().value);
console.log(iterator.next().value);
console.log(iterator.next().value);
๐Ÿ‘5
โค10๐Ÿ‘7๐Ÿ”ฅ2๐Ÿคฃ2
๐Ÿ‘ Jimp 1.6: Image Processing in Node without Native Dependencies

Most image libraries, such as the powerful Sharp, lean on external libraries to do the heavy lifting, but Jimp can handle BMPs, GIFs, JPEGs, PNGs, and TIFFs on its own for blurring, color adjustments, resizing, rotation, etc. GitHub repo.

jimp Contributors
Please open Telegram to view this post
VIEW IN TELEGRAM
๐Ÿ”ฅ10๐Ÿ‘6โค1๐Ÿคฉ1
CHALLENGE

console.log(MyClass);
class MyClass {
constructor() {
this.value = 42;
}
}
โค2๐Ÿ‘1
๐Ÿ‘13๐Ÿ”ฅ3โค2
๐Ÿ‘€ Experimental TypeScript support via strip types

Node.js introduces the --experimental-strip-types flag for initial TypeScript support. This feature strips type annotations from .ts files, allowing them to run without transforming TypeScript-specific syntax. Current limitations include:

- Supports only inline type annotations, not features like enums or namespaces.

- Requires explicit file extensions in import and require statements.

- Enforces the use of the type keyword for type imports to avoid runtime errors.

- Disabled for TypeScript in node_modules by default.

Rafael Gonzaga
Please open Telegram to view this post
VIEW IN TELEGRAM
2๐Ÿ‘6๐Ÿ”ฅ4โค2๐Ÿคฉ1
CHALLENGE

async function foo() {
console.log('Start');
await Promise.resolve().then(() => {
console.log('Inside Promise');
});
console.log('End');
}

foo();
console.log('Outside');
๐Ÿ‘8๐Ÿค”5โค3๐Ÿ”ฅ3
๐Ÿ“Œ The Web's Clipboard, and How It Stores Data of Different Types

An interesting exploration of how things currently work with copy and pasting on the web, how different data types are treated, and what the Web Custom Formats proposal is putting forward.

Alex Harri Jรณnsson
Please open Telegram to view this post
VIEW IN TELEGRAM
2๐Ÿ‘12โค4๐Ÿ”ฅ2๐Ÿคฉ1
real-nextjs-scalable-performance.pdf
8.9 MB
๐Ÿ“Œ Real-World Next.js

Build scalable, high-performance, and modern web applications using Next.js, the React framework for production

Michele Riva
Please open Telegram to view this post
VIEW IN TELEGRAM
๐Ÿ”ฅ7โค4๐Ÿ‘3
๐Ÿ‘€ ESLint v9.10.0 released

We just pushed ESLint v9.10.0, which is a minor release upgrade of ESLint. This release adds some new features and fixes several bugs found in the previous release.

- Types now included

eslint
Please open Telegram to view this post
VIEW IN TELEGRAM
2๐Ÿ‘11๐Ÿ”ฅ3โค1
nodejs_web_development_fifth_edition.pdf
7.1 MB
๐Ÿ“Œ Node.js Web Development Fifth Edition

Server-side web development made easy with Node 14 using practical examples

David Herron
Please open Telegram to view this post
VIEW IN TELEGRAM
2๐Ÿ‘8โค4๐Ÿ”ฅ3
โœŒ๏ธ The State of ES5 on the Web

Some of the earlier JavaScript build tools focused on allowing developers to write modern JavaScript code that could still run on the browsers of the time by compiling code down to ES5. Time has moved on, but have the tools or popular libraries? Philip investigates, and shares some recommendations.

Philip Walton
Please open Telegram to view this post
VIEW IN TELEGRAM
4๐Ÿ‘8โค1๐Ÿ”ฅ1
Professional_JavaScript_for_Web_Developers_4th_Edition.pdf
19.5 MB
๐Ÿ“Œ PROFESSIONAL JAVASCRIPTยฎ FOR WEB DEVELOPERS

A comprehensive guide to mastering JavaScript for building dynamic, modern web applications.

Matt Frisbie
Please open Telegram to view this post
VIEW IN TELEGRAM
2๐Ÿ‘18๐Ÿ”ฅ5โค4