webjose.hashnode.devThe Ugly Truth: All Popular fetch() Wrappers Do It WrongPlease have a look at the following two pieces of code. The purpose is to do something (writing to the console) if the value of x is false. const x = false; try { if (!x) { throw new Error("x is false"); } } catch { console.log('x...Mar 10, 2025·4 min read
webjose.hashnode.devSvelte Reactivity: Let's Talk About $EffectsIn the previous article of the series, we learned the basics of Svelte v5’s reactivity system: The basic runes. We learned that this version of Svelte now reacts to things in runtime rather than depending on the static code analysis provided in previ...Feb 19, 2025·17 min read
webjose.hashnode.devHow to Use TypeScript to Accumulate Types: Typing ALL possible fetch() ResultsWhen I started re-writing (with my team) our application in TypeScript and Svelte (it was in JavaScript and React which we all hate), I was faced with a problem: How can I safely type all possible bodies of an HTTP response? Does this ring a bell t...Nov 30, 2024·8 min read
webjose.hashnode.devLearning the new Svelte v5 Reactivity SystemSo Svelte v5, the newest rendition of what probably is the best front-end framework in existence, has been released and it is vastly different from its previous version. The main difference lies at its core: How reactivity of variables is implemented...Oct 24, 2024·12 min read
webjose.hashnode.devFinally! Cancel Web Workers' Work Without Terminating the WorkerIf you have never worked with web workers, the title doesn't really evoke emotion. Am I right? But if you have, you know that as of today, there is no equivalent to what AbortController does for fetch. Well, let's change that. Meet @wjfe/async-worker...Aug 26, 2024·9 min read