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
Building LightOS with React Native. The Light Phone 2 is a minimalist cellphone that was named one of Time Magazine’s best inventions of...
New
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
How the TypeScript Compiler Compiles - understanding the compiler internal. A systems-level look at the TypeScript compiler. How it conv...
New
First poster: bot
GitHub - eeue56/derw: An Elm-inspired language that transpiles to TypeScript. An Elm-inspired language that transpiles to TypeScript - G...
New
First poster: bot
State of the Web: Deno. What is Deno, why does it matter, and how is it currently used for server-side JavaScript?
New
First poster: bot
Libsodium has been fully supporting WebAssembly as a target for quite a long time. This includes its built-in benchmark suite, that can r...
New
First poster: bot
TypeScript and Set Theory . How does set theory help to understand type assignability and resolution in TypeScript?
New
First poster: bot
View here: https://chaotic.netlify.app/ This thread was posted by one of our members via one of our news source trackers.
New
First poster: bot
A Game Engine in the Elm Style!. A ‘Nu’ way to make games! The Nu Game Engine was the world’s first practical, purely-functional game en...
New
First poster: bot
Welcome to the Open Source Seed Initiative - Open Source Seed Initiative. Today, only a handful of companies account for most of the wor...
New

Other popular topics Top

Devtalk
Hello Devtalk World! Please let us know a little about who you are and where you’re from :nerd_face:
New
AstonJ
A thread that every forum needs! Simply post a link to a track on YouTube (or SoundCloud or Vimeo amongst others!) on a separate line an...
New
malloryerik
Any thoughts on Svelte? Svelte is a radical new approach to building user interfaces. Whereas traditional frameworks like React and Vue...
New
AstonJ
SpaceVim seems to be gaining in features and popularity and I just wondered how it compares with SpaceMacs in 2020 - anyone have any thou...
New
PragmaticBookshelf
Rust is an exciting new programming language combining the power of C with memory safety, fearless concurrency, and productivity boosters...
New
dimitarvp
Small essay with thoughts on macOS vs. Linux: I know @Exadra37 is just waiting around the corner to scream at me “I TOLD YOU SO!!!” but I...
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
New
AstonJ
Biggest jackpot ever apparently! :upside_down_face: I don’t (usually) gamble/play the lottery, but working on a program to predict the...
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