TypeScript 6 Beta Released: Transitioning to TypeScript 7

TypeScript 6 focuses on standardization and prepares for TypeScript 7's rewrite in Go, addressing performance issues. It improves defaults, aligns with web standards, and deprecates outdated features.

TechLife

#TypeScript nerds, can you help me out?

I have a type called DeepRequired that recursively makes optional properties in nested object required using dot notation as seen below.

The problem is: It is only somewhat working. I believe, I'm on the right track somewhere but I can't get closer than this.

Thanks in advance!

1/2

#FollowerPower #amCoding #amProgramming #softwareDevelopment #softwareEngineering #webDev #webDevelopment #JavaScript #ECMAScript

WTF!?

So Javascript has these functions to get the nodes in a document…
document.createTreeWalker and document.createNodeIterator that create a TreeWalker and a NodeIterator respectively.

But because this language is dogshit invented by a complete and utter failure of a homophobic organism, those are of course
not compatible with the standard iteration protocols of the language and you can’t just write document.createNodeIterator(document.body, NodeFilter.SHOW_TEXT).forEach(n => use(n));, because that would be way too easy!

No,
NodeIterators and TreeWalkers have their own incompatible interface and there isn’t even an easy way to convert them into an array or something similarly usable, because again, that would require to have more than room-temperature IQ when designing a language, and we all know that homophobes lack that!

Seriously, how has this failure of an excuse for a programming language managed to stay the only language shipped in browsers? Why did google not just force dart into chrome and tell people to use something that’s at least slightly less shitty?

Like how many different sequentially accessible container types that all have different and incompatible interfaces and are various degrees of difficult to turn into something usable does this crap have?

#Javascript #ecmascript #js #webdev

#Development #Introductions
Date is out, Temporal is in · JavaScript will soon have modern date handling https://ilo.im/169o2x

_____
#Dates #Temporal #JavaScript #EcmaScript #ES262 #Browser #WebStandards #WebDev #Frontend

Date is out, Temporal is in

Temporal is the Date system we always wanted in JavaScript. It's extremely close to being available so Mat Marquis thought it would be a good idea to explain exactly what is better about this new JavaScript date system.

Piccalilli

#Development #Outlooks
ES2026 solves JavaScript headaches · “It could be a bumper year for new features.” https://ilo.im/1693k5

_____
#Programming #Coding #EcmaScript #ES2026 #JavaScript #Libraries #APIs #WebDev #Frontend #Backend

ES2026 Solves JavaScript Headaches With Dates, Math and Modules

With ECMAScript 2026, JavaScript will get more precise about sums, errors, international dates and times — and it may finally be time for Temporal.

The New Stack

We desperately need document.currentScript, but for #ecmascript modules 🙏

https://developer.mozilla.org/en-US/docs/Web/API/Document/currentScript

10-year-old tracking issue: https://github.com/whatwg/html/issues/1013

#webdev #javascript

Document: currentScript property - Web APIs | MDN

The Document.currentScript property returns the <script> element whose script is currently being processed and isn't a JavaScript module. (For modules use import.meta instead.)

MDN Web Docs
You know, I like to semi-affectionately, semi-seriously rag on how #CommonLisp treats nil and pushes me to (deftype normal-symbol () '(and symbol (not null) (not keyword))) all the time, but typeof null === "object" in #ECMAScript feels so much worse, and all the moreso for the lack of being able to define expanders for giving to typep etc. (I haven't dug into #TypeScript yet but wonder whether it fixes the latter in practice.)

NOTE: this was written in 2007 in an old version of this blog, some links or comments are lost to time.

The second system syndrome is that evil effect that often happens when redesign a small, working system so that it becomes a huge leviathan built by piling new features over new features.

Today I was reading the overview of ECMASCript 4 from ecmascript.org, and I got this very bad feeling […]

https://riffraff.info/2007/10/ecmascript-4-the-fourth-system-syndrome/

ECMAScript 4, the fourth system syndrome - print "Me"

NOTE: this was written in 2007 in an old version of this blog, some links or comments are lost to time. The second system syndrome is that evil effect that often happens when redesign a small, working system so that it becomes a huge leviathan built by piling new features over new features. Today I … Continue reading "ECMAScript 4, the fourth system syndrome"

print "Me"

#Development #Approaches
The nuances of JavaScript typing · “JavaScript + JSDoc + tsc should be the industry default.” https://ilo.im/168va0

_____
#EcmaScript #JavaScript #JSDoc #TypeScript #tsc #CLI #Tooling #WebDev #Frontend #Backend

The Nuances of JavaScript Typing using JSDoc

Perhaps it’s time to embrace real web open standard .js files which don’t require any build steps or tooling to execute properly, all while utilizing the power combo of JSDoc + tsc to gain all of the benefits of type hints in IDEs and type checking in CI.

That HTML Blog
In 1995, a Netscape employee wrote a hack in 10 days that now runs the Internet

Thirty years later, JavaScript is the glue that holds the interactive web together, warts and all.

Ars Technica