CommunityNews

CommunityNews

Misusing TypeScript Assertion Functions for Fun and Profit

Misusing TypeScript Assertion Functions for Fun and Profit — Sympolymathesy, by Chris Krycho.
TypeScript’s assertions functions (asserts) can be mis-used to good effect when modeling unfortunate mutation-driven APIs. But “misuse” is the right word.

Read in full here:

This thread was posted by one of our members via one of our news source trackers.

Where Next?

Popular Frontend topics Top

First poster: bot
At Hasura, we wanted to introduce a statically typed frontend language for quite some time now. We discussed which one we should choose a...
New
First poster: bot
GitHub - marianoguerra/hiapl: HTML Is A Programming Language. HTML Is A Programming Language. Contribute to marianoguerra/hiapl developm...
New
First poster: bot
Track down the JavaScript code responsible for polluting the global scope. Here’s how you can debug what JavaScript code is adding globa...
New
CommunityNews
See them here: This thread was posted by one of our members via one of our news source trackers.
New
First poster: davearonson
Javascript Does Not Need a StringBuilder. Today I learned that Javascript does not need a StringBuilder for accumulating a large number ...
/js
New
CommunityNews
pzuraq | Four Eras of JavaScript Frameworks. A blog about (mostly) computery things
New
First poster: bot
Typescipt is terrible for library developers. We spend a disproportionate amount of time on types
New
First poster: bot
All branches will diverge from the stem: from Elm to Derw. Forgive the fancy title, but I felt it fit this month’s Derw improvements wel...
New
First poster: bot
GitHub - adamshaylor/cooking-with-typescript: A collection of patterns for TypeScript 4.8. A collection of patterns for TypeScript 4.8. ...
New
First poster: bot
Speeding up the JavaScript ecosystem - one library at a time. Most popular libraries can be sped up by avoiding unnecessary type convers...
New

Other popular topics Top

axelson
I’ve been really enjoying obsidian.md: It is very snappy (even though it is based on Electron). I love that it is all local by defaul...
New
Exadra37
I am asking for any distro that only has the bare-bones to be able to get a shell in the server and then just install the packages as we ...
New
Exadra37
Oh just spent so much time on this to discover now that RancherOS is in end of life but Rancher is refusing to mark the Github repo as su...
New
foxtrottwist
A few weeks ago I started using Warp a terminal written in rust. Though in it’s current state of development there are a few caveats (tab...
New
PragmaticBookshelf
Rails 7 completely redefines what it means to produce fantastic user experiences and provides a way to achieve all the benefits of single...
New
First poster: joeb
The File System Access API with Origin Private File System. WebKit supports new API that makes it possible for web apps to create, open,...
New
AstonJ
Was just curious to see if any were around, found this one: I got 51/100: Not sure if it was meant to buy I am sure at times the b...
New
AstonJ
If you want a quick and easy way to block any website on your Mac using Little Snitch simply… File > New Rule: And select Deny, O...
New
PragmaticBookshelf
Get the comprehensive, insider information you need for Rails 8 with the new edition of this award-winning classic. Sam Ruby @rubys ...
New
AstonJ
This is cool! DEEPSEEK-V3 ON M4 MAC: BLAZING FAST INFERENCE ON APPLE SILICON We just witnessed something incredible: the largest open-s...
New