You can't cancel a JavaScript promise (except sometimes you can) - Inngest Blog

A promise that never resolves is a surprisingly clean way to interrupt an async function.

Match Expression vs Switch: Pattern Matching Showdown

PHP 8's match expression vs JavaScript switch. Which language's control flow is more elegant? You won't believe this!

#php #javascript #phpvsjavascript #matchexpression #switchstatement #patternmatching #php8 #programmingcomparison #codecomparison #controlflow #viralcoding

https://www.youtube.com/watch?v=BiiJf3Cpbsk

Match Expression vs Switch: Pattern Matching Showdown #PHP

YouTube

How to Avoid switch Type Juggling Bugs

Loose switch cases can match the wrong branch.

#php #switch #typejuggling #bug #howto #controlflow

https://www.youtube.com/watch?v=ySZmYPKx6IY

How to Avoid switch Type Juggling Bugs #typejuggling

YouTube

Labels Can Break ANY Block?!

JavaScript has GOTO in disguise! Labels with break can exit ANY block, not just loops! This code jumps OUT of nested blocks instantly. Most developers have NEVER seen this syntax!

#javascript #javascripttricks #labels #breakstatement #controlflow #javascriptweird #javascriptquiz #codingchallenge #javascriptshorts #javascriptwtf #hiddenfeatures #advancedjavascript

https://www.youtube.com/watch?v=JQ7PX8sFmyo

Labels Can Break ANY Block?! #controlflow

YouTube
For loops in C++

PeerTube
While loops in C++

PeerTube
Switch statements in C++

PeerTube
If statements in C++

PeerTube