Things I wish TypeScript had. Part 1Note: these features are not in TypeScript (Aug 2024), that's a "what if" sort of posts about the things which I wish TS had, because on my daily basis I face some difficulties because of these tiny things. Examples in that article are artificial and...7 min read·blog.xnim.meAug 11, 2024
Understanding IndexedDB. The complete guide.Before we start I have been working with IndexedDB for more than 3 years. When I just started, I thought, huh, it's similar to MongoDB, easy-peasy. Quite fast I understood that: The native API is not that easy to use, you need a handy wrapper like D...22 min read·blog.xnim.me5ANADec 12, 2023
TL&DRs: What I know about JavaScript String.Hey! What do you know about string type in JavaScript? I believe you saw gazillion times about 1+'1' or so. In this article, I won't talk about it, but I'd suggest we cover these questions: How strings are stored? Is there a limit for the string le...2 min read·blog.xnim.meAug 5, 2023
Why even simple window.fetch might be trickyI recently saw this tweet https://twitter.com/thomasfindlay94/status/1672211922517622784: While many responses were related to missed await before fetch, I'd like to talk about a bigger issue: error handling. Let's fix an obvious error and take a cl...6 min read·blog.xnim.meJul 3, 2023
Browser Event loop: micro and macro tasks, call stack, render queue: layout, paint, compositeBrowser Event loop: micro and macro tasks, call stack, render queue: layout, paint, composite13 min read·blog.xnim.me10GAKMar 12, 2023