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
Fixing a performance problem in Elm using Html.Lazy. How you can increase the performance of your Elm application using Html.Lazy, and w...
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
CommunityNews
The proposal “Pipe operator (|>) for JavaScript” (by J. S. Choi, James DiGioia, Ron Buckton and Tab Atkins) introduces a new operator....
/js
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: bot
JavaScript Containers. The majority of server programs are Linux programs. They consist of a file system, some executable files, maybe s...
New
First poster: bot
Introducing Ezno. Introducing Ezno and the current state of the project.
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
New
First poster: gflashner
Our legal battle over Oracle’s claim on the word “JavaScript” is entering the discovery phase. Here’s how you can help.
New

Other popular topics Top

AstonJ
If it’s a mechanical keyboard, which switches do you have? Would you recommend it? Why? What will your next keyboard be? Pics always w...
New
ohm
Which, if any, games do you play? On what platform? I just bought (and completed) Minecraft Dungeons for my Nintendo Switch. Other than ...
New
Margaret
Hello everyone! This thread is to tell you about what authors from The Pragmatic Bookshelf are writing on Medium.
1147 29994 760
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
New
First poster: AstonJ
Jan | Rethink the Computer. Jan turns your computer into an AI machine by running LLMs locally on your computer. It’s a privacy-focus, l...
New
PragmaticBookshelf
Build modern server-driven web applications using htmx. Whatever programming language you use, you’ll write less (and cleaner) code. ...
New
sir.laksmana_wenk
I’m able to do the “artistic” part of game-development; character designing/modeling, music, environment modeling, etc. However, I don’t...
New
PragmaticBookshelf
A concise guide to MySQL 9 database administration, covering fundamental concepts, techniques, and best practices. Neil Smyth MySQL...
New
Fl4m3Ph03n1x
Background Lately I am in a quest to find a good quality TTS ai generation tool to run locally in order to create audio for some videos I...
New