Swap Variables WITHOUT a Temp Variable - INSANE Trick!

Python's tuple unpacking vs PHP's list() - which language has the CLEANEST swap? This is crazy!

#php #python #phpvspython #variableswap #tupleunpacking #destructuring #notempvariable #oneliner #viralcoding #programmingtricks #codinghacks #mindblown

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

Swap Variables WITHOUT a Temp Variable - INSANE Trick! #PHP

YouTube

You Can Use Same Variable Name TWICE?!

🔥 NO WAY! Destructuring allows DUPLICATE variable names in the same statement! const {a, a} = obj is VALID JavaScript! Last one silently wins. ESLint doesn't catch this by default. Tag a dev who needs to see this!

#javascript #javascripttricks #codingchallenge #destructuring #javascriptes6 #javascriptquiz #javascriptweird #javascriptwtf #javascriptbugs #codinginterview #codingtips #javascriptshorts

https://www.youtube.com/watch?v=1fs8zval7Hk

You Can Use Same Variable Name TWICE?! #codingchallenge

YouTube

Multiple Assignment Magic: Tuple vs Array Destructuring!

Python's tuple unpacking vs JavaScript destructuring - which is more powerful? INSANE!

#javascript #python #jsvspython #destructuring #tupleunpacking #multipleassignment #arraydestructuring #viralcoding #pythontricks #javascripttricks #syntaxcomparison #mindblown

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

Multiple Assignment Magic: Tuple vs Array Destructuring! #syntaxcomparison

YouTube

Multiple Assignment MADNESS: Parallel Assignment Battle!

Python's multiple assignment vs PHP's list() - which syntax is cleaner? This will blow your mind!

#php #python #phpvspython #multipleassignment #destructuring #tupleunpacking #listdestructuring #viralcoding #pythontricks #phptricks #syntaxcomparison #mindblown

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

Multiple Assignment MADNESS: Parallel Assignment Battle! #mindblown

YouTube

How to Stop Destructuring From Crashing on null

Destructuring null throws instantly.

#javascript #destructuring #null #bug #howto #defensive

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

How to Stop Destructuring From Crashing on null #bug

YouTube

Destructuring vs Tuple Unpacking: The Unpacking War

JavaScript destructuring vs Python tuple unpacking. Which language's unpacking syntax is more powerful? This is INSANE!

#python #javascript #pythonvsjavascript #destructuring #tupleunpacking #unpacking #programmingcomparison #codecomparison #syntaxcomparison #pythontricks #javascripttricks #viralcoding

https://www.youtube.com/watch?v=3KqyvzMI5Ck

Destructuring vs Tuple Unpacking: The Unpacking War #tupleunpacking

YouTube

Destructuring Defaults Are TRICKY?!

Destructuring defaults have LAYERS! Nested defaults work differently than you think. undefined triggers defaults, but missing properties don't! This is confusing!

#javascript #javascripttricks #destructuring #defaultvalues #nesteddestructuring #javascriptweird #javascriptquiz #codingchallenge #javascriptshorts #javascriptwtf #objectdestructuring #advancedjavascript

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

Destructuring Defaults Are TRICKY?! #JavaScript

Destructuring defaults have LAYERS! Nested defaults work differently than you think. undefined triggers defaults, but missing properties don't! This is confu...

YouTube

Just wrote a note about a little gotcha with default values for destructured properties of parameter objects in JavaScript that has gotten me a few times:

https://codeberg.org/aral/gists/src/branch/main/default-values-for-destructured-properties-of-parameter-objects-in-javascript.md

#JavaScript #destructuring #defaults #parameterObjects #web #dev

gists/default-values-for-destructured-properties-of-parameter-objects-in-javascript.md at main

gists - A place for me to post and share small, self-contained code snippets.

Codeberg.org

I found the `zeallot` package for destructuring/unpacking assignments in #Rstats. I'm familiar w/ #destructuring in JS and Python, had not really wondered about it in R until recently... how did I not know this existed?

https://github.com/r-lib/zeallot

Is this package the only implementation of destructuring in R? Is there an obvious implementation I just don't know about --- maybe something hiding in the #tidyverse?

GitHub - r-lib/zeallot: Variable assignment with zeal! (or multiple, unpacking, and destructuring assignment in R)

Variable assignment with zeal! (or multiple, unpacking, and destructuring assignment in R) - r-lib/zeallot

GitHub

Learning Rust Part 3 (Destructuring, Tuples and Options)

https://diode.zone/videos/watch/dc7ae5d9-1180-410d-bb63-731f772b929f

Learning Rust Part 3 (Destructuring, Tuples and Options)

PeerTube