Copy

We love to dig into the details of the languages you use every day and keep tabs on what’s new. View in browser »

The New Stack Update

ISSUE 428 | Week in Review: What’s Next for JavaScript?

Talk Talk Talk

“Web applications that are coded in JavaScript may contain an array of vulnerabilities that may be missed if a developer does not adhere to security processes and best practices.”

What's Happening

How OpenTofu Happened — and What’s Next?

The open source fork of Terraform was meant to protect organizations dependent on the tool and its ecosystem, said Ohad Maislish of env0 to host Chris Pirillo in this episode of The New Stack Makers.

How OpenTofu Happened — and What’s Next?

Week in Review: What’s Next for JavaScript?

Programming languages are the bread and butter of what The New Stack and its readers do, and our readers flocked last week to what’s become something of an annual tradition at TNS: Mary Branscombe’s roundup of what’s new in ECMAScript, a standard for scripting languages including JavaScript. 

Another annual tradition, Stack Overflow’s Developer Survey, was also released last week; Javascript ranked as the most popular language overall (used by 62% of participants) and among professional developers (used by nearly 65%). 

Devs like using JavaScript (58% in the Stack Overflow survey said they admire the language, though Rust was most admired, at 82%). But at nearly 30 years old, it remains a work in progress. Mary’s post illuminated a handful of upcoming changes in ECMAScript that aim to make Javascript easier for developers to use. The changes are largely small improvements, but improvements just the same.

“This year there’s a mix of APIs that standardize common patterns that developers have been writing by hand or importing from third-party libraries — including some aimed specifically at library authors — plus improvements in string handling, regular expressions, multithreading and WebAssembly interoperability,” Mary wrote.

One of the approved changes involves the promises feature. First introduced in 2015, “the pattern the promise constructor uses isn’t common elsewhere in JavaScript,” Mary wrote

As a result, the workarounds are cumbersome. “People have this boilerplate pattern that they have to write over and over again, where they call the promise constructor, they get the resolve and reject callbacks, they write those to a variable, and then they inevitably do something else [with them]. It’s just an annoying piece of code to write,” Ecma vice president Daniel Ehrenberg told The New Stack.

In 2024, ECMAScript has accepted the Promise.withResolvers proposal to add a static method to ease this pain point for developers. 

“Previously, when you created a promise, the ways that you resolve it and you give it its final state were APIs only accessible inside the function that you built the promise with,” Ehrenberg told TNS. “Promise.withResolvers gives you a way to create a promise and it gives you direct access to those resolution functions.”

We love to dig down into the details of the languages you use every day, to help you use them efficiently and keep tabs on what’s new. Keep watching this space.

— Heather Joslyn, editor-in-chief, TNS

More Top Stories:

How to Use Self-Healing Code to Reduce Technical Debt

The idea of self-healing code with LLMs is exciting, but balancing automation and human oversight is still crucial.

How To Run Databases in Kubernetes

Many people successfully run their databases in Kubernetes, and the number of such deployments is growing daily.

Tauri: Mixing JavaScript With Rust for GUI Desktop Apps

We revisit Tauri, a framework to build desktop applications with any frontend framework and a Rust core. We check out the version 2.0 beta.

Develop a Master AI Agent With LangGraph in Python

LangGraph simplifies developing advanced AI apps, making it easier to build intelligent, context-aware agents that can handle complex interactions.

See How DevOps Skills Are Evolving

Explore how DevOps roles are adapting to meet cloud-native demands, with a focus on Kubernetes expertise and programming skills. Learn strategies to overcome talent shortages and accelerate your cloud transformation journey.
 
On The Road
Device Gateways with ngrok AUG. 20 // VIRTUAL

Device Gateways with ngrok
AUG. 20 // VIRTUAL

Join us for the ngrok Developer Roundtable! A monthly show where Scott McAllister, Principal Developer Advocate at grok, discusses all things ngrok! In this episode, Scott welcomes Mandy Hubbard, senior technical marketing engineer at grok, as they discuss managing IoT devices with Device Gateways. Register today!

SpringOne at VMware Explore 2024 AUG. 26-29 // LAS VEGAS, NV @ THE VENETIAN CONVENTION AND EXPO CENTER

SpringOne at VMware Explore 2024
AUG. 26-29 // LAS VEGAS, NV @ THE VENETIAN CONVENTION AND EXPO CENTER

Join thousands of enterprise Spring developers and practitioners who build the apps that run the world. Whether you are a beginner or using the latest releases to build cloud native apps and microservices, we’ve got you covered! See what amazing innovation your peers and leaders are delivering and immerse yourself in the Spring community experience! Co-located with VMware Explore, SpringOne is the premier developer event with more Spring content to learn from and more valuable connections for you to make. There are endless opportunities to be inspired! Register today!

TNS Webinar: Is Terraform Dead? Evaluating Your IaC Strategy in an Evolving Tooling Landscape SEPT. 24 // VIRTUAL

TNS Webinar: Is Terraform Dead? Evaluating Your IaC Strategy in an Evolving Tooling Landscape
SEPT. 24 // VIRTUAL

As a DevOps engineer, you know the only constant is change. With Terraform’s license changes and new players entering the field, now is the time to reassess your infrastructure as code strategies. Join Ido Neeman, CEO and co-founder of Firefly, and TNS host Chris Pirillo for this live webinar where they’ll cut through the noise and provide you with actionable insights to future-proof your DevOps practices. They’ll explore the state of IaC tools, specifically focusing on Terraform to ensure your strategy remains effective and agile. Register today!

Want more from The New Stack?


We recently launched a fully revamped version of our TNS Daily Newsletter with even more of the good stuff. If you aren't already getting all the best software engineering news in one daily dose, update your subscription so you always stay in the know.
Subscribe to TNS Daily

Connect with The New Stack

Website
Website
LinkedIn
LinkedIn
Twitter
Twitter
Facebook
Facebook
Instagram
Instagram
YouTube
YouTube
Spotify
Spotify
RSS
RSS
Copyright © 2024 The New Stack, All rights reserved.


Want to change how you receive these emails?
You can update your preferences or unsubscribe from this list