What's wrong with this JavaScript default parameter evaluation?

What's wrong with this JavaScript default parameter evaluation timing. The JavaScript code uses an expression as default. In JavaScript defaults are evaluated at call time and can have side effects.

#whatswrongwiththisjavascriptcode #javascriptbug #javascriptproductionbug #javascriptdebugging #javascriptbackend #javascriptcodereview #javascriptsecurity #javascriptperformance #javascr...

https://www.youtube.com/watch?v=vegh7-gxWZ4

Whats wrong with this JavaScript default parameter evaluation? #javascriptengineering

YouTube

What's wrong with this JavaScript spread shallow copy?

What's wrong with this JavaScript spread shallow copy in state update. The JavaScript code uses spread to clone state. In JavaScript nested objects are still shared and mutations leak.

#whatswrongwiththisjavascriptcode #javascriptbug #javascriptproductionbug #javascriptdebugging #javascriptbackend #javascriptcodereview #javascriptsecurity #javascriptperformance #javascriptreliability #javascr...

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

Whats wrong with this JavaScript spread shallow copy? #javascriptshallowcopy

YouTube

What's wrong with this JavaScript regex?

What's wrong with this JavaScript regex in validation. The JavaScript pattern has catastrophic backtracking, so a single input can hang a worker. In JavaScript APIs this becomes a denial of service.

#whatswrongwiththisjavascriptcode #javascriptbug #javascriptproductionbug #javascriptdebugging #javascriptbackend #javascriptcodereview #javascriptsecurity #javascriptperformance #javascriptreliability #javascr...

https://www.youtube.com/watch?v=B-KEgFSOvfM

Whats wrong with this JavaScript regex? #javascriptbackend

YouTube

Why does this JavaScript cache stampede?

Why does this JavaScript cache stampede under load. The JavaScript code recomputes values on expiry without a lock, so every request hits the database. In JavaScript services this melts the backend.

#whatswrongwiththisjavascriptcode #javascriptbug #javascriptproductionbug #javascriptdebugging #javascriptbackend #javascriptcodereview #javascriptsecurity #javascriptperformance #javascriptreliability #javascr...

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

Why does this JavaScript cache stampede? #javascriptperformance

YouTube
RT @youcodethings: I've been playing with the Neon crate -> https://t.co/tbXoVqdCy4.
This lets you VERY EASILY call #rustlang from #JavaScr… source: https://twitter.com/rustlang/status/976010624047243264
neon-bindings/neon

neon - Rust bindings for writing safe and fast native Node.js modules.