home.social

#javascrip — Public Fediverse posts

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

fetched live
  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. 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...

    youtube.com/watch?v=AyZEdp_zsnw

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

    youtube.com/watch?v=N9PasMctYp4

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

    youtube.com/watch?v=XQUEVCRx1Kw

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

    youtube.com/watch?v=7_ouucGI2zU

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

    youtube.com/watch?v=rpN8CkIK2hA

  10. Деструктуризация в JavaScript

    Без сомнений, JavaScript — крайне популярный язык программирования. И разработчики постоянно создают обновления, которые позволяют писать код проще, короче и понятнее. Одним из таких инструментов стала деструктуризация — способ получения данных Привет, Хабр! Меня зовут Александр Дудукало, я автор

    habr.com/ru/companies/selectel

    #javascript #selectel #js #javascrip #деструктуризация_в_JS #синтаксис #массив #деструктурировать_массив #уроки_программирования

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

  12. Just mistyped "JavaScrip" and now I know what the dystopian company cash for Oracle Corp will be called.

    #Oracle #JavaScript #JavaScrip for your weekly rations from the company store.

  13. Just mistyped "JavaScrip" and now I know what the dystopian company cash for Oracle Corp will be called.

    #Oracle #JavaScript #JavaScrip for your weekly rations from the company store.

  14. "7 More JavaScript Web APIs to Build Futuristic Websites you didn't Know 🤯 - DEV Community" dev.to/ruppysuppy/7-more-javas