home.social

#javascrip — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #javascrip, aggregated by home.social.

  1. 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...

    youtube.com/watch?v=Ff9tr-MYD5k

  2. 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...

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

  3. 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...

    youtube.com/watch?v=kYEdUmbJb2Y

  4. 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...

    youtube.com/watch?v=BFMnfNFew7I

  5. 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 : 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