Fork me on GitHub

Other articles

  1. JavaScript return await

    A very short article about one of the recent bugs I carelessly designed :)

    I wrote the code below and had certain expectations: no matter what happens, catch the error and return a fallback value.

    async function dl(uri) {
      try {
        const resp = await fetch(uri);
        const data = await resp.json();
        return …
    read more

    There are comments.

  2. Handling requests timeout in Python

    Being optimistic is sometimes a disadvantage. When we make calls to an API, we usually test it under ideal conditions. For example, we make sure the client behaves as expected against a real HTTP server that runs locally, in our CI or devbox.

    Let's be honest, we rarely test the …

    read more

    There are comments.

Page 1 / 11 »