#javascrip — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #javascrip, aggregated by home.social.
-
Why does this JavaScript map drop entries?
Why does this JavaScript map drop entries in production. The JavaScript code uses JSON stringify as a map key, so object key ordering changes and collisions overwrite data. In JavaScript services this corrupts caches.
#whatswrongwiththisjavascriptcode #javascriptbug #javascriptproductionbug #javascriptdebugging #javascriptbackend #javascriptcodereview #javascriptsecurity #javascriptperformance #javascrip...
-
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...
-
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...
-
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...
-
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...
-
Un collègue (@tmounier pour ne pas le nommer 😜) me demande comment se mettre à #JavaScript. 🧑💻
Comme pour le #HTML et le #CSS, je m'y suis collé avec #W3School : https://www.w3schools.com/js/
Il y a peut-être de meilleures façons et de meilleures ressources, mais celle-ci à l'avantage de regrouper beaucoup de contenu de différents langages. 🌐
Bonne soirée ! 🌃
#JS #JavaScrip #WWW #Appli #Application #AppliWeb #Numérique #Éducation #elearning