Why does this JavaScript retry charge customers twice?

Why does this JavaScript retry logic charge customers twice in production. The JavaScript code retries a payment call after a timeout without an idempotency key, so the gateway processes duplicates. In JavaScript billing services this creates double charges and refunds.

#whatswrongwiththisjavascriptcode #javascriptbug #javascriptproductionbug #javascriptdebugging #javascriptbackend #javascrip...

https://www.youtube.com/watch?v=5T-SagJUr8w

Why does this JavaScript retry charge customers twice? #javascriptsecurity

YouTube

What's wrong with this JavaScript cache data?

What's wrong with this JavaScript cache data in a response handler. The JavaScript code caches a mutable array and returns it directly, so callers mutate shared state. In JavaScript services this causes ghost data.

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

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

Whats wrong with this JavaScript cache data? #javascriptbackend

YouTube

What's wrong with this JavaScript setTimeout zero delay?

What's wrong with this JavaScript setTimeout zero delay not running first. The JavaScript code uses setTimeout 0 to defer but microtasks run first. In JavaScript the order of async work can surprise you.

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

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

Whats wrong with this JavaScript setTimeout zero delay? #javascripteventloop

YouTube

Why does this JavaScript eval in JSON parse?

Why does this JavaScript eval in JSON parse allowing code execution. The JavaScript code uses eval or Function to parse JSON. In JavaScript this executes any code in the string.

#whatswrongwiththisjavascriptcode #javascriptbug #javascriptproductionbug #javascriptdebugging #javascriptbackend #javascriptcodereview #javascriptsecurity #javascriptperformance #javascriptreliability #javascriptapi #javascrip...

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

Why does this JavaScript eval in JSON parse? #javascriptbackend

YouTube

What's wrong with this JavaScript worker ack?

What's wrong with this JavaScript worker ack in a queue. The JavaScript code acknowledges the message before the database commit, so failures lose data permanently. In JavaScript pipelines this creates silent gaps.

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

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

Whats wrong with this JavaScript worker ack? #javascriptbackend

YouTube

Why does this JavaScript reduce crash on empty array?

Why does this JavaScript reduce crash on empty array in aggregation. The JavaScript code calls reduce without an initial value. In JavaScript when the array is empty it throws. In JavaScript dashboards empty states break the app.

#whatswrongwiththisjavascriptcode #javascriptbug #javascriptproductionbug #javascriptdebugging #javascriptbackend #javascriptcodereview #javascriptsecurity #javascrip...

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

Why does this JavaScript reduce crash on empty array? #javascriptdebugging

YouTube

What's wrong with this JavaScript JSON parse?

What's wrong with this JavaScript JSON parse in an API handler. The JavaScript code checks a parsed object with a truthy test and rejects valid empty payloads. In JavaScript services this drops legitimate requests.

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

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

Whats wrong with this JavaScript JSON parse? #javascriptnull

YouTube

What's wrong with this JavaScript order by?

What's wrong with this JavaScript order by in a search endpoint. The JavaScript code interpolates a user supplied sort field into SQL, allowing injection. In JavaScript backends this exposes data and crashes queries.

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

https://www.youtube.com/watch?v=7_ouucGI2zU

Whats wrong with this JavaScript order by? #javascriptquery

YouTube

Why does this JavaScript dedupe reorder results?

Why does this JavaScript dedupe reorder results in production. The JavaScript code uses a Set for dedupe but loses original order used for pagination. In JavaScript APIs this causes missing and duplicated items.

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

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

Why does this JavaScript dedupe reorder results? #javascriptperformance

YouTube