{"id":"https:\/\/radekmie.dev\/atom.xml","title":"@radekmie","subtitle":"@radekmie\u2019s take on IT and stuff","link":[{"@attributes":{"href":"https:\/\/radekmie.dev","rel":"alternate","type":"text\/html"}},{"@attributes":{"href":"https:\/\/radekmie.dev\/atom.xml","rel":"self","type":"application\/atom+xml"}}],"updated":"2026-10-31T00:00:00Z","author":{"name":"Rados\u0142aw Miernik"},"entry":[{"id":"https:\/\/radekmie.dev\/blog\/on-staying-sharp\/","title":"On Staying Sharp","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-staying-sharp\/","rel":"alternate","type":"text\/html"}},"updated":"2026-10-31T00:00:00Z","summary":"<p>Every once in a while, I meet some of my old friends whose jobs \u2013 at least on paper \u2013 sound extremely similar to mine. Some of them are jokingly saying that I\u2019m simply stupid for not relying on AI more, as it could save me hours. Others don\u2019t, but they are mostly on the \u201cit killed my passion\u201d side\u2026<\/p> <p>I relate to both feelings, really. If I could do less and have the same outcomes, why wouldn\u2019t I? The point is that I don\u2019t believe that statement; at least not if I include myself in the equation. Could I code faster? Maybe. Could I produce more value for the company and its stakeholders <em>(including myself)<\/em>? Probably.<\/p>"},{"id":"https:\/\/radekmie.dev\/blog\/on-automatic-type-refinements\/","title":"On Automatic Type Refinements","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-automatic-type-refinements\/","rel":"alternate","type":"text\/html"}},"updated":"2026-09-30T00:00:00Z","summary":"<p>Just two months ago, in <a href=\"https:\/\/radekmie.dev\/blog\/on-type-inference\/\">\u201cOn Type Inference\u201d<\/a>, I explained why I prefer relying on implicit (inferred) types over the explicit ones as much as possible. Just a few weeks later I realized there\u2019s one more thing: <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/www.typescriptlang.org\/docs\/handbook\/2\/narrowing.html\">type refinements<\/a>.<\/p> <p>Even today, I heard that \u201c<a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/JavaScript\/Reference\/Global_Objects\/Array\/filter\"><code>Array#filter<\/code><\/a> is not type-safe\u201d in a context of it not \u201cremoving\u201d <em>(refining!)<\/em> <code>undefined<\/code> when used as <code>.filter(Boolean)<\/code>."},{"id":"https:\/\/radekmie.dev\/blog\/on-end-to-end-tests-during-redesign\/","title":"On End-to-End Tests During Redesign","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-end-to-end-tests-during-redesign\/","rel":"alternate","type":"text\/html"}},"updated":"2026-08-31T00:00:00Z","summary":"<p>Almost a year ago, I wrote <a href=\"https:\/\/radekmie.dev\/blog\/on-how-to-handle-a-redesign\/\"><em>On How to Handle a Redesign<\/em><\/a>. During that time, we did a lot of groundwork, including a proprietary design system <em>(that\u2019s a topic for a separate post)<\/em> and applied it to a few \u201cpilot\u201d features \u2013 new ones that were already planned with the new styles in mind.<\/p> <p>Today, with a few business-critical views being worked on, we started working on the automated test setup for the transition period. The goal is simple: have a test suite for both designs simultaneously. I\u2019ll explain the secondary <del>challenges<\/del> priorities later.<\/p> <p>Even though our end-to-end test setup is rather common \u2013 a <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/playwright.dev\/\">Playwright<\/a> suite orchestrated with <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/github.com\/features\/actions\">GitHub Actions<\/a> \u2013 the idea is applicable to other test runners and environments."},{"id":"https:\/\/radekmie.dev\/blog\/on-type-inference\/","title":"On Type Inference","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-type-inference\/","rel":"alternate","type":"text\/html"}},"updated":"2026-07-31T00:00:00Z","summary":"<p>A few days ago, I started reviewing a rather simple pull request from one of my team members. I added a few comments here and there, but there was one thing that triggered me: an explicit generic type annotation was now needed in a place it wasn\u2019t before. It was but one type, but still.<\/p> <p>We started a discussion about whether it\u2019s a bug in the package we\u2019re using, or if it\u2019s something we\u2019d done incorrectly\u2026 Or at least <em>I<\/em> did, because my colleague wanted to get over it. But as it\u2019s one of the hills I <em>will<\/em> die on, we started talking.<\/p>"},{"id":"https:\/\/radekmie.dev\/blog\/on-lazy-secrets-management\/","title":"On Lazy Secrets Management","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-lazy-secrets-management\/","rel":"alternate","type":"text\/html"}},"updated":"2026-06-30T00:00:00Z","summary":"<p>If the monitor you\u2019re looking at right now has a sticky note with any of your passwords \u2013 please, get rid of it <em>(note, not monitor)<\/em> and change that password. This text can wait, don\u2019t worry.<\/p> <p>Now, how bad is doing the same in your Git repository? I bet some of you still commit a full <code>.env<\/code> file, even though you know it\u2019s not a good idea. Or maybe you don\u2019t <em>(yay!)<\/em>, but when a new team member is onboarded, you send them it via Slack or email? In the end, they have to <em>somehow<\/em> get it, right?<\/p> <p>If none of the above apply to you, congratulations, you\u2019re either doing the bare minimum\u2026 Or are paranoid enough to share passwords exclusively in-person and take time to burn the message afterward.<\/p>"},{"id":"https:\/\/radekmie.dev\/blog\/on-scenarios-that-will-not-happen\/","title":"On Scenarios That Will Not Happen","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-scenarios-that-will-not-happen\/","rel":"alternate","type":"text\/html"}},"updated":"2026-05-31T00:00:00Z","summary":"<p>While planning the data model for a new functionality, you can always hear two completely different stories. One comes from the \u201cbusiness\u201d people, who focus on happy paths and only care about the majority of the users. The second one comes from the \u201ctechnical\u201d people, who are responsible for making sure it will work for <em>all<\/em> users and every single edge case they may come up with.<\/p> <p>At some point, the decision must be made; ideally within the allocated budget. But what if there\u2019s not enough time or other resources to cover all edge cases? <em>\u201cIt won\u2019t happen!\u201d<\/em>, says the first group. <em>\u201cBut what if it will!?\u201d<\/em>, screams the other."},{"id":"https:\/\/radekmie.dev\/blog\/on-having-interns\/","title":"On Having Interns","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-having-interns\/","rel":"alternate","type":"text\/html"}},"updated":"2026-04-28T00:00:00Z","summary":"<p>I live in an \u201c<a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/en.wikipedia.org\/wiki\/Filter_bubble\">information bubble<\/a>\u201d\u2026 And I hope that we all know that so does everyone else. It\u2019s <em>bad<\/em>, though it\u2019s unavoidable nowadays, I think. What have I heard for the past couple years \u2013 both online and in person \u2013 is that the job market is <em>really<\/em> bad, especially for people with little to no experience.<\/p> <p>It\u2019s not exclusively personal, as I got the same feedback from people I met at work (interviewed) and students I worked with. The former had horror stories of being let go because some \u201ccoding machine with <del>10<\/del> 15 years of experience\u201d agreed to a salary lower than their learning budget. The latter have had to go through seven interviews just to get an unpaid (!) internship at Big Corp.<\/p> <p>I had it easier, really. Today, I\u2019m in charge of hiring for the technical positions at <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/aleno.me\/\">aleno<\/a>, and can at least try to make it better. We are a small company, so it\u2019s only a handful of people every now and then.<\/p>"},{"id":"https:\/\/radekmie.dev\/blog\/on-refactoring-with-generic-types\/","title":"On Refactoring With Generic Types","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-refactoring-with-generic-types\/","rel":"alternate","type":"text\/html"}},"updated":"2026-03-30T00:00:00Z","summary":"<p>Back in 2015, only a handful of people using JavaScript (even professionally) knew what generic types were, I believe. While both <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/github.com\/microsoft\/TypeScript\">TypeScript<\/a> and <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/github.com\/facebook\/flow\">Flow<\/a> were already around (at least since <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/github.com\/microsoft\/TypeScript\/releases\/tag\/v1.1.0.1\">October 2014<\/a> and <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/github.com\/facebook\/flow\/releases\/tag\/v0.1.2\">June 2015<\/a> respectively) and supported them (<a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/github.com\/microsoft\/TypeScript\/blob\/v1.1.0.1\/tests\/cases\/compiler\/generics0.ts\">1<\/a>, <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/github.com\/facebook\/flow\/blob\/v0.1.2\/tests\/generics\/generics.js\">2<\/a>), they were still a niche and far from being popular.<\/p> <p>Nowadays, I see undergrads applying for an internship who not only know that they exist and what the syntax looks like, but can give a reasonable example of using them as well. Sure, they may have seen that elsewhere, e.g., in statically typed languages (<a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/go.dev\/blog\/intro-generics\">even Go caught up in 2022<\/a>), including the ones most of us only used at the university and for hobby projects, like <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/www.haskell.org\">Haskell<\/a>.<\/p> <p>I think nobody considers it \u201cmagic\u201d anymore. They are considered an <em>advanced topic<\/em> (they didn\u2019t make it to TypeScript\u2019s <em><a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/www.typescriptlang.org\/docs\/handbook\/2\/everyday-types.html\">Everyday Types<\/a><\/em> section), and for a good reason \u2013 <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/en.wikipedia.org\/wiki\/Type_variance\">type variance<\/a> alone is hard to grasp. <del>And yes, it can run <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/github.com\/MichiganTypeScript\/typescript-types-only-wasm-runtime\">Doom<\/a>.<\/del><\/p> <p>Personally, I <em>love<\/em> how generics allow me to hide complexity from the public API, and that\u2019s what we\u2019re looking at today."},{"id":"https:\/\/radekmie.dev\/blog\/on-how-mailchimp-suspended-our-account\/","title":"On How Mailchimp Suspended Our Account","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-how-mailchimp-suspended-our-account\/","rel":"alternate","type":"text\/html"}},"updated":"2026-03-14T00:00:00Z","summary":"<p>How is your week going? I just finished wrapping up an internal postmortem on how we lost 29 hours\u2019 worth of emails (tens of thousands). It wasn\u2019t the first <em>(but hopefully the last)<\/em> time a 3rd party wreaked such havoc on our product, but this time I decided to share it. It\u2019s anonymized, but I hope you understand.<\/p> <p>Below you can find our story, including <em>(almost all)<\/em> the emails we exchanged with the <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/mailchimp.com\/\">Mailchimp<\/a> teams, as well as some comments on what we did wrong and what we could have done better. To some extent, I wanted to share it so the next company facing it would know what to do.<\/p> <p><strong>If you are in such a position, jump straight to <a href=\"https:\/\/radekmie.dev\/blog\/on-how-mailchimp-suspended-our-account\/#what-should-i-do\"><em>What should I do!?<\/em><\/a><\/strong><\/p> <p><strong>Update 14 March 2026:<\/strong> Case closed, it <em>were<\/em> fake emails. Some text below got <del>redacted<\/del>, some more got added."},{"id":"https:\/\/radekmie.dev\/blog\/on-massive-academic-conferences\/","title":"On Massive Academic Conferences","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-massive-academic-conferences\/","rel":"alternate","type":"text\/html"}},"updated":"2026-01-31T00:00:00Z","summary":"<p>Last week, I had the <em>pleasure<\/em> of attending <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/aaai.org\/conference\/aaai\/aaai-26\/\">the 40th Annual AAAI Conference on Artificial Intelligence<\/a> (AAAI 26) \u2013 one of the largest academic conferences in the world, and most likely the largest AI one. It reached a new record of 9562 registrations (attendees), up over 50% from last year.<\/p> <p>Now let me remind you that usually <em>(if not always)<\/em> at least one author of each paper is required to attend, as otherwise the paper won\u2019t get published. They received nearly 31000 abstracts with almost 29000 submissions to the Main Technical Track, out of which roughly 23000 papers went under review (the rest were rejected for formal reasons, e.g., were not anonymized), and only 4167 got accepted, resulting in a 17.6% acceptance rate.<\/p> <p>This time <a href=\"https:\/\/radekmie.dev\/timeline\/#Miernik2026RegularGames\">I co-authored one of these 4167<\/a> papers, one of us had to attend the conference. And since it was a good reason to finally visit Asia (Singapore), I decided to do so."},{"id":"https:\/\/radekmie.dev\/blog\/on-why-we-wont-have-nice-things\/","title":"On Why We Won\u2019t Have Nice Things","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-why-we-wont-have-nice-things\/","rel":"alternate","type":"text\/html"}},"updated":"2025-12-31T00:00:00Z","summary":"<p>Over the years, I was in a way <em>forced<\/em> to change the software (of all kinds) way too many times. The news of <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/en.wikipedia.org\/wiki\/Tupperware\">Tupperware <em>almost<\/em> closing down in last year<\/a> and <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/en.wikipedia.org\/wiki\/IRobot\">iRobot <em>actually<\/em> filing for bankruptcy this year<\/a> are, to some extent, results of a rather similar process. Obviously, the scale is much bigger, and I won\u2019t cry about a mega corporation losing money, so let\u2019s stick to the software.<\/p> <p>Here\u2019s a short story I see way too often: you\u2019re using an \u201centerprise\u201d solution that costs <em>a lot<\/em> and start looking out for alternatives. Some time later, you make a decision and migrate to the new-and-shiny product. Then, a few years later, their quality goes down, prices go up, and the whole cycle repeats.<\/p> <p><a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/en.wikipedia.org\/wiki\/Enshittification\">Enshittification<\/a> is a thing, nothing new on that front. But as someone working on open source projects for years (also professionally; see <a href=\"https:\/\/radekmie.dev\/blog\/on-getting-paid-for-open-source\/\"><em>On Getting Paid for Open Source<\/em><\/a>), I believe it can be done better.<\/p>"},{"id":"https:\/\/radekmie.dev\/blog\/on-ai-code-reviews\/","title":"On AI Code Reviews","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-ai-code-reviews\/","rel":"alternate","type":"text\/html"}},"updated":"2025-11-30T00:00:00Z","summary":"<p>For a person who\u2019s about to finish their PhD in computer science with a focus on artificial intelligence, I\u2019m extremely sceptical about using LLM for anything. You may see me as an <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/memepediadankmemes.fandom.com\/wiki\/Old_Man_Yells_at_Cloud\">old man yelling at the cloud<\/a> <em>(though I\u2019m not even thirty)<\/em>, but I\u2019ll trade certainty over quantity every single day. There\u2019s a certain level of quality I expect of myself that I just can\u2019t force myself into giving up.<\/p> <p>To this day, I never <em>willingly<\/em> used an LLM except for two things: experimenting with some local models for analyzing <abbr title=\"Simple Mail Transfer Protocol\">SMTP<\/abbr> messages, and getting my code reviewed using <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/github.com\/features\/copilot\">GitHub Copilot<\/a>. In this text, I want to discuss the latter.<\/p> <p>It may come as a surprise, but I will <strong>not<\/strong> be strictly negative about it, so if you\u2019re looking for some arguments for using it, keep reading."},{"id":"https:\/\/radekmie.dev\/blog\/on-developers-in-c-level-meetings\/","title":"On Developers in C-Level Meetings","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-developers-in-c-level-meetings\/","rel":"alternate","type":"text\/html"}},"updated":"2025-10-31T00:00:00Z","summary":"<p>As the year slowly comes to an end, many companies \u2013 <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/aleno.me\">including the one I currently work for<\/a> \u2013 are reviewing their budgets and planning the upcoming year. In my experience, such meetings happen on the so-called <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/en.wikipedia.org\/wiki\/List_of_corporate_titles\">\u201cC-Level\u201d<\/a>, i.e., among the people responsible for each department of the company.<\/p> <p>As a Head of Engineering, I\u2019m attending these, too. Of course, I\u2019m there mostly because of the personnel and operational costs of the developers (including their salaries, as well as hosting or 3rd party tools), but that\u2019s the rather boring part. (And heavily covered with an <abbr title=\"Non-Disclosure Agreement\">NDA<\/abbr>.)<\/p> <p>Today, I want to share how developers (or other strictly technical roles) can be of help in these meetings."},{"id":"https:\/\/radekmie.dev\/blog\/on-how-to-handle-a-redesign\/","title":"On How to Handle a Redesign","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-how-to-handle-a-redesign\/","rel":"alternate","type":"text\/html"}},"updated":"2025-09-30T00:00:00Z","summary":"<p>I feel like all products I\u2019ve been using daily for the past couple of years have decided to change their interface completely at least once within that time. Sometimes it\u2019s an improvement (e.g., <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/posthog.com\">PostHog<\/a>). Sometimes it\u2019s as bad as before but <em>faster<\/em> (e.g., <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/www.atlassian.com\/software\/jira\">Jira<\/a>). And sometimes it\u2019s just bad <em>(no shots fired this time)<\/em>.<\/p> <p>If you were on the other side, i.e., you were the one implementing it, you know it\u2019s not an easy task. Of course, the scope of changes matters, as it\u2019s easier to round all the buttons than change the color scheme, but such changes often take way longer than anticipated.<\/p> <p>Here are a few notes on how I\u2019m doing it. Please note that I\u2019m not a designer but a developer."},{"id":"https:\/\/radekmie.dev\/blog\/on-perfectionism-in-data\/","title":"On Perfectionism in Data","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-perfectionism-in-data\/","rel":"alternate","type":"text\/html"}},"updated":"2025-08-30T00:00:00Z","summary":"I hope it\u2019ll make it easier to discover whatever you may be interested in, while skipping <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/forums.meteor.com\/t\/99-5-fewer-oplog-notifications-with-changestream-to-redis\/63810\/7\">all of my off-topic ramblings<\/a>!"},{"id":"https:\/\/radekmie.dev\/blog\/on-optimizing-meteor-publications\/","title":"On Optimizing Meteor Publications","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-optimizing-meteor-publications\/","rel":"alternate","type":"text\/html"}},"updated":"2025-07-31T00:00:00Z","summary":"<p>Making a server do less work is often a good thing. That\u2019s why most, if not all, large-scale Meteor deployments use <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/github.com\/cult-of-coders\/redis-oplog\"><code>cultofcoders:redis-oplog<\/code><\/a>. Today, we\u2019ll focus on <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/github.com\/cult-of-coders\/redis-oplog\/blob\/master\/docs\/finetuning.md\">fine-tuning<\/a> of this package. If you want to know why, go ahead and read <a href=\"https:\/\/radekmie.dev\/blog\/on-oplog-replacement-in-meteor\/\"><em>On Oplog Replacement in Meteor<\/em><\/a> first.<\/p> <p>Our goal is to reduce the number of events a Meteor instance has to process. It can be done with <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/github.com\/cult-of-coders\/redis-oplog\/blob\/master\/docs\/finetuning.md#custom-channels\">custom channels<\/a> and <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/github.com\/cult-of-coders\/redis-oplog\/blob\/master\/docs\/finetuning.md#namespacing\">namespaces<\/a> <em>(which are based on custom channels anyway)<\/em>. The idea is simple: instead of getting notified on <em>every<\/em> change in the collection, we\u2019d like to narrow it down to the <em>published<\/em> documents only.<\/p> <p>It\u2019s perfectly doable with in-app changes only, though you\u2019d need to configure both in every single publication, which is <em>doable<\/em>\u2026 But you\u2019d need to configure it in every single <code>insert<\/code>\/<code>remove<\/code>\/<code>update<\/code>, too.<\/p>"},{"id":"https:\/\/radekmie.dev\/blog\/on-reifying-nested-closures-in-rust\/","title":"On Reifying Nested Closures in Rust","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-reifying-nested-closures-in-rust\/","rel":"alternate","type":"text\/html"}},"updated":"2025-06-30T00:00:00Z","summary":"<p>As the <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/forums.meteor.com\/t\/ddp-router-goes-open-source\/63626\">DDP Router is now open source<\/a>, let\u2019s discuss one relatively simple optimization I came up with while working on it. For those who never heard of it: it\u2019s an <em>almost<\/em> drop-in replacement for <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/github.com\/meteor\/meteor\">Meteor<\/a>\u2019s reactivity implemented as a proxy layer. If it\u2019s still unclear, don\u2019t worry \u2013 it won\u2019t be important today.<\/p> <p>The core of the DDP Router is a reimplementation of <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/github.com\/meteor\/meteor\/tree\/release\/METEOR%402.16\/packages\/minimongo\">Meteor\u2019s Minimongo<\/a>, an in-memory JavaScript <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/www.mongodb.com\">MongoDB<\/a> emulator. At its core, the <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/github.com\/meteor\/meteor\/blob\/release\/METEOR%402.16\/packages\/minimongo\/matcher.js\"><code>Matcher<\/code><\/a> class does the heavy lifting and handles all the querying logic, i.e., checking whether a document matches a query.<\/p> <p>In JavaScript, it\u2019s implemented as a cascade of nested closures, i.e., functions take some information about the query and return a function that, given a part of the document, will perform the actual match (<a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/github.com\/meteor\/meteor\/blob\/6892cd82e0ce2615eb0f5c809f5152df57b6dc3e\/packages\/minimongo\/common.js#L499-L548\">example<\/a>).<\/p> <p>Now, in Rust, we know it includes a lot of indirection and hence is a (potential) performance problem."},{"id":"https:\/\/radekmie.dev\/blog\/on-distributed-tracing\/","title":"On Distributed Tracing","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-distributed-tracing\/","rel":"alternate","type":"text\/html"}},"updated":"2025-05-28T00:00:00Z","summary":"<p>A few months back, in <a href=\"https:\/\/radekmie.dev\/blog\/on-how-we-moved-to-kubernetes\/\"><em>On How We Moved to Kubernetes<\/em><\/a>, I mentioned that we\u2019re looking into implementing distributed tracing into our app. And as we managed to do so, I\u2019d like to walk you through our setup and explain why I\u2019d recommend looking into it to everyone <em>(and as soon as possible)<\/em>.<\/p> <p>Let me hook you with the most immediate benefit: we have a much easier time while debugging API requests that involve multiple services; below, I\u2019ll explain why."},{"id":"https:\/\/radekmie.dev\/blog\/on-being-a-begginer-again\/","title":"On Being a Beginner Again","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-being-a-begginer-again\/","rel":"alternate","type":"text\/html"}},"updated":"2025-04-30T00:00:00Z","summary":"<p>This July, I\u2019ll celebrate the ten-year mark of working professionally. While I consider myself rather experienced when it comes to programming or teaching at the university <em>(less about the latter, of course)<\/em>, there are just way more things I simply have no clue about.<\/p> <p>Roughly a year and a half ago, I started my <em>gym journey<\/em>. It wasn\u2019t the first time I was \u201cconventionally\u201d active \u2013 I was really into calisthenics and gymnastics back in high school, then tried running and climbing during my studies. But this time, I started a completely new thing while being experienced elsewhere.<\/p> <p>On the one hand, I kind of <em>expected<\/em> myself to be good at it from day one. On the other hand, I loved the feeling of being a complete beginner again."},{"id":"https:\/\/radekmie.dev\/blog\/on-why-networking-matters\/","title":"On Why Networking Matters","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-why-networking-matters\/","rel":"alternate","type":"text\/html"}},"updated":"2025-03-31T00:00:00Z","summary":"<p>For years I considered networking something redundant and insincere. As a result, on a conference, I\u2019d rather talk to a few people for longer than go on a networking spree just to maximize my reach. <em>(Trust me, some people do that on purpose with various outcomes.)<\/em><\/p> <p>I still consider it at least partially true \u2013 countless interactions with people that wanted to get my contact info (or rather, my Linked In profile) and moved on immediately afterwards only prove that. Don\u2019t get me wrong, I\u2019m not asking anyone to talk to me. But if you\u2019re the one starting such a \u201cconversation\u201d just to get \u201cin contact\u201d\u2026 Thanks, I\u2019ll pass.<\/p> <p>However, recently I was the one reaching out to people I know, even the ones I met only briefly."},{"id":"https:\/\/radekmie.dev\/blog\/on-how-we-moved-to-kubernetes\/","title":"On How We Moved to Kubernetes","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-how-we-moved-to-kubernetes\/","rel":"alternate","type":"text\/html"}},"updated":"2025-02-25T00:00:00Z","summary":"<p>Have you heard of <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/kubernetes.io\">Kubernetes<\/a> (also known as k8s)? Until a few months back, I knew it existed and that it was like infrastructure\u2019s holy grail. It has to cover the basics, like auto-scaling and load balancing or automated rollbacks\u2026 And then there are <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/github.com\/tomhuang12\/awesome-k8s-resources\">millions of tools<\/a> to build on top of it.<\/p> <p>As we recently migrated our deployment from <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/aws.amazon.com\/ecs\/\">AWS Elastic Container Service<\/a> (ECS) to <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/aws.amazon.com\/eks\/\">AWS Elastic Kubernetes Service<\/a> (EKS; managed Kubernetes cluster), I wanted to share some tips. It also feels nice to do that on the 10th anniversary of <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/github.com\/meteorhacks\/meteorhacks.github.io\/blob\/master\/_posts\/2015-04-22-learn-kubernetes-the-future-of-the-cloud.md\"><em>\u201cKubernetes: The Future of Cloud Hosting\u201d<\/em><\/a> MeteorHack\u2019s blog post.<\/p> <p>Please keep in mind that a Kubernetes cluster is an extremely complex beast, and I\u2019m pretty far from being able to explain all the \u201cwhys\u201d you may have. Our <em>amazing<\/em> DevOps Engineer managed to make it work, and I\u2019m really happy with the current setup."},{"id":"https:\/\/radekmie.dev\/blog\/on-why-i-wont-be-a-researcher\/","title":"On Why I Won\u2019t Be a Researcher","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-why-i-wont-be-a-researcher\/","rel":"alternate","type":"text\/html"}},"updated":"2025-01-31T00:00:00Z","summary":"<p>Every single publication I\u2019ve worked on so far cost me much more stress than it\u2019s worth, period. It always starts with enough time and a decent plan. Then, the work goes well, and everyone\u2019s happy with the results. And then, no matter what, the last week is simply <em>tragic<\/em>.<\/p> <p>You could think that <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/scholar.google.com\/citations?user=KGhHDM4AAAAJ\">with seven publications so far<\/a> <em>(eighth is in review)<\/em>, I should have known better. I thought so as well! What went wrong, and why did I spend more than a hundred hours in the past three weeks then!?<\/p>"},{"id":"https:\/\/radekmie.dev\/blog\/on-fast-paths\/","title":"On Fast Paths","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-fast-paths\/","rel":"alternate","type":"text\/html"}},"updated":"2024-12-30T00:00:00Z","summary":"<p>Planning, testing, peer-reviewing, or even formal proofs; in a way, it all boils down to making sure whether the piece of code we just created covers <em>all<\/em> the cases we need. We often start with a simpler alternative, which covers <em>most<\/em> of them (or even only <em>some<\/em>), as it allows us to bring something to our customers earlier. Huh, that\u2019s basically how startups work.<\/p> <p>But then a flood of edge cases come from all directions \u2013 these pesky inputs that make our well-designed and efficient solution\u2026 The complete opposite. <em>\u201cIt\u2019s just one more case, it\u2019ll take a couple of hours, like the previous one, right?\u201d<\/em> Well, not this time \u2013 this one was one too many.<\/p> <p>But let\u2019s pull through this hot mess and assume you covered <em>all<\/em> of them. This unveils a new kind of issues: in some cases, this entire machinery runs <em>forever<\/em>. <em>\u201cWhy is it taking ten seconds to load this one document? It\u2019s just one document!\u201d<\/em> In such a case, <em>\u201cBecause it can load ten thousand documents at all.\u201d<\/em> is a reasonable, but not an expected answer \u2013 it makes sense for someone technical, but it isn\u2019t the best slogan for boosting sales.<\/p>"},{"id":"https:\/\/radekmie.dev\/blog\/on-histograms-in-decision-making\/","title":"On Histograms in Decision Making","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-histograms-in-decision-making\/","rel":"alternate","type":"text\/html"}},"updated":"2024-11-30T00:00:00Z","summary":"<p>While planning yet another feature, one of the designers asked, <em>\u201cHow many values do we expect to see in this dropdown?\u201d<\/em> You, the only person with database access at this meeting, run a trivial query and reply, <em>\u201cSix, on average.\u201d<\/em> Everyone\u2019s happy, everyone continues with their day.<\/p> <p>And on the first day it lands on production, you see this horror with more than a thousand options to choose from. <em>\u201cYou said it\u2019ll be six!\u201d<\/em> Well, you were right, but not <em>right right<\/em>. That\u2019s where being \u201ctechnically correct\u201d is not enough.<\/p> <p>Today, we\u2019ll talk about the alternatives and their outcomes. Sort of a statistics 101, but with little-to-zero formal language."},{"id":"https:\/\/radekmie.dev\/blog\/on-ai-in-academia\/","title":"On AI in Academia","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-ai-in-academia\/","rel":"alternate","type":"text\/html"}},"updated":"2024-10-31T00:00:00Z","summary":"<p>We all know what\u2019s happening with the AI currently. I won\u2019t bother to give any summary of the recent advancements, as they tend to change <em>at least<\/em> once a week. Instead, here are my two cents on how it impacts me at the university.<\/p> <p>For context, I\u2019m a 4th year computer science PhD student at the University of Wroc\u0142aw. Literally <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/scholar.google.com\/citations?user=KGhHDM4AAAAJ\">all of my research<\/a> is categorized under the <em>very<\/em> broad term of artificial intelligence, including my PhD thesis.<\/p>"},{"id":"https:\/\/radekmie.dev\/blog\/on-enterprise-paywalls\/","title":"On Enterprise Paywalls","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-enterprise-paywalls\/","rel":"alternate","type":"text\/html"}},"updated":"2024-09-30T00:00:00Z","summary":"<p>Living off of one\u2019s open source projects is sort of a goal for a lot of people. I was lucky enough to get paid for doing so in a multitude of ways over the years. Most of it came from my main job at the time, where it was one of my duties (see <a href=\"https:\/\/radekmie.dev\/blog\/on-getting-paid-for-open-source\/\"><em>On Getting Paid for Open Source<\/em><\/a> for details).<\/p> <p>Having said that, when it comes to open source, I only worked on <em>libraries<\/em>, not <em>products<\/em>. At the same time, most of my non-open source experiences is <abbr title=\"Software as a Service\">SaaS<\/abbr> applications, so I could say I know a thing or two about product companies, too.<\/p> <p>So what\u2019s today\u2019s rant about? About the fact that some features come with an <em>Enterprise<\/em> label and a solid price tag. And as most companies don\u2019t \u201cfeature sell\u201d, you have to buy the whole package."},{"id":"https:\/\/radekmie.dev\/blog\/on-how-our-opensearch-just-died\/","title":"On How Our OpenSearch Just Died","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-how-our-opensearch-just-died\/","rel":"alternate","type":"text\/html"}},"updated":"2024-08-28T00:00:00Z","summary":"<p>Have you ever had a chance to use a computer while it ran out of disk space? I only did a couple of times back when I was twelve years old, but I still vividly remember the crazy things happening \u2013 programs not starting or just crashing, loading states appearing out of thin air, and eventually, an inevitable shutdown. Luckily, booting from a pen drive and freeing some space worked.<\/p> <p>And what if there were no computer to plug into? That\u2019s the whole cloud most of us heavily invested in, right? It\u2019s not a problem! Managed services like <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/aws.amazon.com\/opensearch-service\/\">AWS OpenSearch<\/a> can be scaled, restarted, and reconfigured with a few clicks.<\/p>"},{"id":"https:\/\/radekmie.dev\/blog\/on-quick-and-dirty-caches\/","title":"On Quick and Dirty Caches","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-quick-and-dirty-caches\/","rel":"alternate","type":"text\/html"}},"updated":"2024-07-30T00:00:00Z","summary":"<p>While <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/engineering.fb.com\/2022\/06\/08\/core-infra\/cache-made-consistent\/\">mega corporations aim for caches consistent 99.99999999% of time<\/a>, here I am, slapping another quick and dirty one just to solve a problem at hand. \u201cBut cache invalidation is a huge problem!\u201d Well, it definitely is. That\u2019s why we should always know what we are working with and what the constraints are.<\/p> <p>When it comes to software performance, we have to know our <a href=\"https:\/\/radekmie.dev\/blog\/on-software-performance\/#performance-for-masses\">goals<\/a> as well as the possible solutions (including available technologies). As an example, if we could make <em>something<\/em> 10% faster within an hour or 30% faster in a week, I\u2019d <em>definitely<\/em> go with the former. If needed, we\u2019ll do the latter."},{"id":"https:\/\/radekmie.dev\/blog\/on-grading-students\/","title":"On Grading Students","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-grading-students\/","rel":"alternate","type":"text\/html"}},"updated":"2024-06-30T00:00:00Z","summary":"<p>As a part of my PhD studies, I have to undergo <em>(sort of)<\/em> an apprenticeship by teaching (mostly undergrad) students. I\u2019m about to wrap up my 3rd year, and that marks more than a hundred of them I worked with. That also means I had to have gradeed more than a hundred people already.<\/p> <p>On the one hand, as a person who has already <em>(sort of)<\/em> finished their studies, I don\u2019t really care about the grades cause I know they don\u2019t really matter (with a small exception for scholarships and transferring to different universities). Of course, you\u2019re all welcome to disagree, but that\u2019s my take.<\/p> <p>On the other, I really want to feel that I grade them <em>fairly<\/em>, and that\u2019s\u2026 Rather a high ask. Really, that\u2019s actually much tougher than I thought. <em>\u201cThey have X out of Y points, it should be trivial!\u201d<\/em><\/p>"},{"id":"https:\/\/radekmie.dev\/blog\/on-problem-solving-in-dreams\/","title":"On Problem Solving in Dreams","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-problem-solving-in-dreams\/","rel":"alternate","type":"text\/html"}},"updated":"2024-06-15T00:00:00Z","summary":"<p>Have you ever been stuck on a problem for hours, days or even weeks? It\u2019s infuriating, right? You start looking for similar ones, try different approaches, and maybe ask around\u2026 And then, the solution comes to you out of nowhere! Usually in a shower, while pondering which cereal box you want to grab or the moment you wake up.<\/p> <p>It feels like your brain is solving it \u201cin the background\u201d, right? I wanted to know more about this topic, but it seems like there\u2019s nothing to sustain my claims. However, it looks like <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/en.wikipedia.org\/wiki\/Thinking,_Fast_and_Slow\"><em>Thinking, Fast and Slow<\/em> by Daniel Kahneman<\/a> once again came to my attention.<\/p> <p>As a person who has had vivid dreams since <em>ever<\/em>, I kept thinking about whether I could use them to help me."},{"id":"https:\/\/radekmie.dev\/blog\/on-why-interfaces-matter\/","title":"On Why Interfaces Matter","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-why-interfaces-matter\/","rel":"alternate","type":"text\/html"}},"updated":"2024-04-29T00:00:00Z","summary":"<p>Picture this: you\u2019re presented with a rather complex task. It took you some time to conceptualize it, and now you\u2019re left with two reasonable approaches. Now, which one do you choose? If it feels familiar, it\u2019s because it happens very, <em>very<\/em> often. Today, I\u2019d like to argue that <em>\u201cBoth.\u201d<\/em> is probably the best choice.<\/p> <p>\u201cBut how both is even an answer!?\u201d you say. Well, the complete answer would be <em>\u201cWe go with A now and switch to B later, if needed.\u201d<\/em> I guess that also sounds familiar, though we often refer to it as <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/en.wikipedia.org\/wiki\/Minimum_viable_product\">MVP<\/a>, <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/en.wikipedia.org\/wiki\/Software_release_life_cycle#Alpha\">alpha version<\/a>, or just \u201cv1\u201d.<\/p> <p>Now that we know we <em>may<\/em> need to switch to another approach down the road, how do we prepare for it? How can we make sure that such a change will be safe and feasible? Or even possible?<\/p> <p>\u201cA layer of abstraction?\u201d you ask. Yeah, sure."},{"id":"https:\/\/radekmie.dev\/blog\/on-reusing-arc-and-rc-in-rust\/","title":"On Reusing <code>Arc<\/code> and <code>Rc<\/code> in Rust","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-reusing-arc-and-rc-in-rust\/","rel":"alternate","type":"text\/html"}},"updated":"2024-03-30T00:00:00Z","summary":"<p>I wrote my first non-trivial program in Rust back in late 2019. Since then, I rewrote most of my PhD\u2019s code in Rust <em>(it\u2019s not public yet)<\/em>, ported the entire Legends of Code and Magic <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/github.com\/acatai\/Strategy-Card-Game-AI-Competition\/tree\/8b72082ab0bf7b361883f900030559f77be60907\/referee-rust\">engine<\/a>, and even published a somewhat popular <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/github.com\/radekmie\/changestream-to-redis\"><code>changestream-to-redis<\/code><\/a>. It still feels fresh, but I\u2019d say I\u2019m fluent in it.<\/p> <p>The more I code in Rust, the more I look into optimizations. Partially because I finally feel confident with my code, partially because I have even more skin in the game <em>(I\u2019m getting paid to code in Rust now)<\/em>, and partially because I just <em>love<\/em> the feeling of making things go faster. <em>(Even if it\u2019s not needed.)<\/em><\/p> <p>Recently, I wanted to optimize one of the many <abbr title=\"Abstract Syntax Tree\">AST<\/abbr> passes in my PhD\u2019s code, annotating arbitrary expressions with types. The idea is fairly simple: analyze subexpressions recursively, infer the expression type, and add the annotation."},{"id":"https:\/\/radekmie.dev\/blog\/on-getting-paid-for-open-source\/","title":"On Getting Paid for Open Source","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-getting-paid-for-open-source\/","rel":"alternate","type":"text\/html"}},"updated":"2024-02-29T00:00:00Z","summary":"<p>When it comes to open source, I consider myself lucky. One, I authored a few <em>(arguably)<\/em> successful projects, e.g., <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/github.com\/vazco\/uniforms\">uniforms<\/a>. Two, I worked my way to being a recognized <em>(arguably)<\/em> community member and core contributor, e.g., in <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/github.com\/meteor\/meteor\">Meteor<\/a>. Three, I\u2019ve been getting paid to do it since July 2015.<\/p> <p>In this text, I\u2019ll go through my open source story and my view on different financing models I encountered along the way."},{"id":"https:\/\/radekmie.dev\/blog\/on-apple-shortcuts\/","title":"On Apple Shortcuts","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-apple-shortcuts\/","rel":"alternate","type":"text\/html"}},"updated":"2024-01-25T00:00:00Z","summary":"<p>Have you heard of <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/support.apple.com\/en-gb\/guide\/shortcuts\/welcome\/ios\">Apple Shortcuts<\/a>? It\u2019s an app available for all Apple devices designed to automate <em>stuff<\/em>. I\u2019d never really used it before last year, but I found it somehow\u2026 Refreshing? As a developer, I\u2019m rather used to <em>writing<\/em> code and not <em>wiring<\/em> it in <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/scratch.mit.edu\">Scratch<\/a>-like blocks."},{"id":"https:\/\/radekmie.dev\/blog\/on-breaking-the-routine\/","title":"On Breaking the Routine","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-breaking-the-routine\/","rel":"alternate","type":"text\/html"}},"updated":"2023-12-31T00:00:00Z","summary":"<p>This year was different. I don\u2019t do New Year\u2019s resolutions, but I do like to recap what happened. Not to bash myself, <em>\u201cI could have done X!\u201d<\/em> (let\u2019s leave it for the third season of <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/en.wikipedia.org\/wiki\/What_If...%3F_(TV_series)\"><em>\u201cWhat If\u2026?\u201d<\/em><\/a>), but to make sure I\u2019ll keep doing things that are good for me. Or simply more things I like.<\/p> <p>If you\u2019re reading my blog to learn about things, then feel free to skip this one. There\u2019s nothing new here, just me rambling about how happy I am with my life at the moment."},{"id":"https:\/\/radekmie.dev\/blog\/on-asynchronicity-in-blaze-again\/","title":"On Asynchronicity in Blaze (again)","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-asynchronicity-in-blaze-again\/","rel":"alternate","type":"text\/html"}},"updated":"2023-11-30T00:00:00Z","summary":"<p>Half a year ago, I left a list of a few open topics in <a href=\"https:\/\/radekmie.dev\/blog\/on-asynchronicity-in-blaze\/\"><em>On Asynchronicity in Blaze<\/em><\/a>. While some stayed where they were, suggesting that the initial ideas were <em>fine<\/em> and nobody had issues with them, we made some progress overall. In this post, I\u2019ll focus on what happened and what is being looked into.<\/p> <p>However, consider this an extension of the previous article. If you have never heard of <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/www.blazejs.org\">Blaze<\/a>, I highly recommend at least skimming through it."},{"id":"https:\/\/radekmie.dev\/blog\/on-why-resumes-are-terrible\/","title":"On Why Resumes Are Terrible","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-why-resumes-are-terrible\/","rel":"alternate","type":"text\/html"}},"updated":"2023-10-30T00:00:00Z","summary":"<p><em>\u2019Tis the season<\/em>, my friends. I once again reviewed more than two hundred resumes in less than two weeks. And no, I\u2019m not a recruiter nor doing it full-time; otherwise, it\u2019d take me less than a day or two <em>(or at least I was told so)<\/em>.<\/p> <p>Luckily for me, I\u2019m also doing the technical interviews later, sometimes also the cultural ones or negotiations. I said luckily, because I have direct feedback on whether the resume I approved turned out to be a reasonable candidate.<\/p> <p>But even though I went through more than seven hundred resumes in my life (I\u2019m not keeping count, but I have some events to estimate it), it still feels more like a hunch and not experience. Let\u2019s call it a <em>well-trained hunch<\/em> for now.<\/p>"},{"id":"https:\/\/radekmie.dev\/blog\/on-webassembly-in-meteor\/","title":"On WebAssembly in Meteor","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-webassembly-in-meteor\/","rel":"alternate","type":"text\/html"}},"updated":"2023-09-28T00:00:00Z","summary":"<p>Last month, in <a href=\"https:\/\/radekmie.dev\/blog\/on-css-modules-in-meteor\/\"><em>On CSS Modules in Meteor<\/em><\/a>, I posted a step-by-step guide on creating a <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/github.com\/meteor\/meteor\">Meteor<\/a> build plugin for <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/github.com\/css-modules\/css-modules\">CSS Modules<\/a>."},{"id":"https:\/\/radekmie.dev\/blog\/on-css-modules-in-meteor\/","title":"On CSS Modules in Meteor","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-css-modules-in-meteor\/","rel":"alternate","type":"text\/html"}},"updated":"2023-08-30T00:00:00Z","summary":"<p>We recently started working on a design system in a <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/github.com\/meteor\/meteor\">Meteor<\/a> app. One of the most important decisions we had to make was deciding on <em>how<\/em> we are going to style it. Plain CSS or <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/sass-lang.com\">SCSS<\/a>? CSS-in-JS, and if so, <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/css-tricks.com\/a-thorough-analysis-of-css-in-js\/\">which library<\/a>? Or <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/tailwindcss.com\">Tailwind CSS<\/a>? All of those options have their ups and downs, and we ended up with\u2026<\/p> <p>None of the above. We decided to go with <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/github.com\/css-modules\/css-modules\">CSS Modules<\/a>, i.e., plain CSS but with locally-scoped class names. On top of that, we decided to use the <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/--*\">CSS Custom Properties<\/a>, a.k.a. CSS variables. It all plays well with <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/www.figma.com\">Figma<\/a>, so collaboration with our designer is even easier.<\/p> <p>Great! Now let\u2019s set it up in our app\u2026 There\u2019s <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/github.com\/akanix42\/meteor-css-modules\"><code>nathantreid:css-modules<\/code><\/a>; let\u2019s give it a try. It <em>works<\/em>, though it hasn\u2019t been maintained for more than five years now. Normally, it\u2019s not a problem for me, but it depends on <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/github.com\/akanix42\/meteor-css-modules\/blob\/98e335b45f6ebd23f4dc81943e6d57af2b016021\/package.js#L19-L38\"><em>really<\/em> old npm packages<\/a>, and that\u2019s a compatibility problem with the rest of the app.<\/p>"},{"id":"https:\/\/radekmie.dev\/blog\/on-oplog-replacement-in-meteor\/","title":"On Oplog Replacement in Meteor","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-oplog-replacement-in-meteor\/","rel":"alternate","type":"text\/html"}},"updated":"2023-07-27T00:00:00Z","summary":"<p>Before I started working with <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/www.meteor.com\">Meteor<\/a> back in 2015, basically every single web app I had ever worked with was either entirely static or refreshing periodically (e.g., using <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/Guide\/AJAX\">AJAX<\/a>). Meteor was different \u2013 every database change was available in the browser <em>instantly<\/em>, moments after it happened.<\/p> <p>The best part is it takes <em>no code<\/em> to make it work. <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/docs.meteor.com\/api\/pubsub.html#Meteor-publish\">Publish<\/a> some subset of the database on the server, then <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/docs.meteor.com\/api\/pubsub.html#Meteor-subscribe\">subscribe<\/a> to them on the client, and that\u2019s it; both client and server code is as simple as a single MongoDB query. Thanks to the isomorphic (<a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/guide.meteor.com\/structure.html#meteor-structure\"><em>universal<\/em><\/a>) code, it can be the exact same query on both ends.<\/p> <p>As you may have guessed, it comes with a cost. Not a <em>problem<\/em> per se but rather a non-trivial performance penalty you must keep in mind while scaling your app. Let\u2019s dive into how it works and what we can do about it.<\/p>"},{"id":"https:\/\/radekmie.dev\/blog\/on-backup-access-rights\/","title":"On Backup Access Rights","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-backup-access-rights\/","rel":"alternate","type":"text\/html"}},"updated":"2023-07-08T00:00:00Z","summary":"What could happen if some people I work with went rogue? Not that I expect it to happen, but it\u2019s\u2026"},{"id":"https:\/\/radekmie.dev\/blog\/on-asynchronicity-in-blaze\/","title":"On Asynchronicity in Blaze","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-asynchronicity-in-blaze\/","rel":"alternate","type":"text\/html"}},"updated":"2023-05-26T00:00:00Z","summary":"<p>If I had to pinpoint a single biggest change in the way I write frontend code in recent years, I wouldn\u2019t yell <em>\u201cReact!\u201d<\/em> nor any other view library of framework in particular. Instead, I\u2019d say it\u2019s the way we handle asynchronous operations today. Whether it\u2019s <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/react.dev\/reference\/react\/Suspense\"><code>&lt;Suspense&gt;<\/code> in React<\/a> or <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/vuejs.org\/guide\/built-ins\/suspense.html\">Vue<\/a>, <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/svelte.dev\/docs#template-syntax-await\"><code>#await<\/code> in Svelte<\/a> or <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/angular.io\/api\/common\/AsyncPipe\"><code>async<\/code> pipe in Angular<\/a>, every single one is great in its own way.<\/p> <p>I\u2019m not saying we\u2019re done with them either \u2013 <a href=\"https:\/\/radekmie.dev\/blog\/on-throw-in-react\/\">React <code>throw<\/code>s <code>Promise<\/code>s around<\/a>, Svelte (in SSR mode) won\u2019t wait for them anyway, and Vue calls it experimental. A lot of effort went already in, but there\u2019s a lot more to come \u2013 both from the maintainers and the users. And beta testers, of course.<\/p> <p>But not all view layers have caught up yet. If you worked with Meteor, you\u2019ve most likely heard of <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/www.blazejs.org\">Blaze<\/a>. If you didn\u2019t, it\u2019s basically a templating system, just like <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/mustache.github.io\">Mustache<\/a>, <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/handlebarsjs.com\">Handlebars<\/a>, or <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/jinja.palletsprojects.com\">Jinja<\/a>. Its two main points are its reactivity model based on Meteor\u2019s <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/docs.meteor.com\/api\/tracker.html\">Tracker<\/a> and a direct DOM manipulation \u2013 just like Angular, React, Vue, or Svelte. <em>(In contrary to generating static HTML.)<\/em><\/p>"},{"id":"https:\/\/radekmie.dev\/blog\/on-business-intelligence\/","title":"On Business Intelligence","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-business-intelligence\/","rel":"alternate","type":"text\/html"}},"updated":"2023-04-28T00:00:00Z","summary":"<p>If there\u2019s data, there\u2019s a reason to look into it \u2013 that\u2019s a fact. Business intelligence (BI for short) is virtually everything that helps your business thrive using the data you have (or can have). And even though hiring a psychic to analyze your database is also <em>technically<\/em> a BI technique, I would rather recommend starting off with a plain old and boring chart instead.<\/p> <p>Before we dive into the topic, let\u2019s make it clear \u2013 BI tools are just tools. That is, they can help you answer questions and navigate through the toughest decisions. But it is <em>you<\/em> who use them, and it is <em>you<\/em> who ask questions. Sure, you can outsource it or hire a professional to help you with that, but they won\u2019t read your mind. <em>(That\u2019s where the psychic comes in.)<\/em><\/p>"},{"id":"https:\/\/radekmie.dev\/blog\/on-jira-for-developers\/","title":"On Jira for Developers","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-jira-for-developers\/","rel":"alternate","type":"text\/html"}},"updated":"2023-03-30T00:00:00Z","summary":"<p>Whether you\u2019re working in a small, medium, or <em>massive<\/em> company, you\u2019ve almost certainly encountered <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/www.atlassian.com\/software\/jira\">Jira<\/a> or any other \u201cissue tracker\u201d already. Many people sincerely hate them for thousands of reasons, and I was one of them for a long time. On the one hand, because it\u2019s surprisingly slow for what it\u2019s doing\u2026<\/p> <p>On the other, because it\u2019s where the problems come from. Descriptions are not in-sync with the discussions, priorities are not valid since ever, the backlog is a trash pile accumulated throughout the years, and the refactoring task you created four sprints ago is not even in the tenth sprint from now. Been there, done that.<\/p> <p>The former are apparent problems of the software itself, but the latter are not, and we should not blame it for that. No malicious Atlassian employees are messing up with our tasks for fun or profit \u2013 it\u2019s all on us. I wanted to make it better, but others didn\u2019t care. Or, to state the problem, didn\u2019t get time for that.<\/p>"},{"id":"https:\/\/radekmie.dev\/blog\/on-using-rust-in-parcel-and-vitest\/","title":"On Using Rust in Parcel and Vitest","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-using-rust-in-parcel-and-vitest\/","rel":"alternate","type":"text\/html"}},"updated":"2023-02-28T00:00:00Z","summary":"<p>While working on my PhD, I had to create a rather sizable set of tools for a new <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/en.wikipedia.org\/wiki\/General_game_playing\">general game playing<\/a> language. It includes a parser, a bunch of optimizing and validating passes, transformations to different formats, and a tree-walking interpreter. All of this was done in my primary language of choice \u2013 TypeScript.<\/p> <p>Such a project takes <em>a lot<\/em> of experimenting, and having a fully-fledged <abbr title=\"Integrated Developer's Environments\">IDE<\/abbr> with a way to visualize them is basically a must. I\u2019m not there <em>yet<\/em>, but a basic syntax highlighter, a type checker with somewhat helpful error messages, and a <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/graphviz.org\">visual representation<\/a> are enough to work with. All of that is in your browser and accessible on all devices with no setup!<\/p> <p>Then, as the games got more and more complex, it started to take <em>a while<\/em> to run all of the tests. While the small ones take less than 50ms to analyze, the more complex ones are at 3s and counting. I decided to do something about it and\u2026<\/p> <p>Started rewriting it part by part in Rust."},{"id":"https:\/\/radekmie.dev\/blog\/on-playwright-in-github-actions\/","title":"On Playwright in GitHub Actions","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-playwright-in-github-actions\/","rel":"alternate","type":"text\/html"}},"updated":"2023-01-31T00:00:00Z","summary":"<p>I was setting up end-to-end tests in a new project recently. While I have like five projects with the exact same setup around to <del>copy<\/del> <em>learn<\/em> from, I wanted a summary of <em>why<\/em> it looks like that as well (you know, for the team). As I couldn\u2019t find one within a couple of minutes, I decided to write down my own.<\/p> <p>The requirements are simple and short: we want to use <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/playwright.dev\">Playwright<\/a> and run the tests both locally (we\u2019ll need a handy <code>npm<\/code> script) as well as on <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/github.com\/features\/actions\">GitHub Actions<\/a>. While this text is rather tightly focused on the latter, it should be easy to adjust it to work with any other <abbr title=\"Continous Integration\">CI<\/abbr>.<\/p> <p>The result should run all tests in multiple browsers in parallel; bonus points for parallelizing the tests within one browser."},{"id":"https:\/\/radekmie.dev\/blog\/on-being-responsive\/","title":"On Being Responsive","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-being-responsive\/","rel":"alternate","type":"text\/html"}},"updated":"2022-12-28T00:00:00Z","summary":"That\u2019s a compliment for sure, but also something I\u2019m not really <em>doing<\/em> \u2013 it just kinda happens."},{"id":"https:\/\/radekmie.dev\/blog\/on-automata-in-rust\/","title":"On Automata in Rust","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-automata-in-rust\/","rel":"alternate","type":"text\/html"}},"updated":"2022-11-25T00:00:00Z","summary":"<p>While working on my PhD, I had to implement an interpreter of the language we\u2019re working on. At the very core of it are finite automata and finite state machines, as well as <em>tons<\/em> of operations on them. In practice, it\u2019s a directed graph with operations on the edges (assignments, comparisons, etc.).<\/p> <p>As I\u2019m most familiar with JavaScript, I implemented the first of the interpreter version in it. It allowed me to have a working version rather fast; as a bonus, it works in the browser, so it\u2019s much more accessible to other people. However, at some point, the performance was not good enough to work interactively.<\/p> <p>Because of that, I decided to implement the same interpreter in a low-level language. As the automata definition was a simple JSON object, I decided to go with Rust I was already familiar with. Thanks to <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/serde.rs\">Serde<\/a>, I had a 1-to-1 matching between the TypeScript and Rust structures within minutes.<\/p> <p>In this text, I\u2019ll focus on the performance of one operation that had problems in JavaScript \u2013 checking reachability. In the future, I plan to dive more into the whole project and what the rest of the code looks like.<\/p>"},{"id":"https:\/\/radekmie.dev\/blog\/on-hacktoberfest\/","title":"On Hacktoberfest","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-hacktoberfest\/","rel":"alternate","type":"text\/html"}},"updated":"2022-10-31T00:00:00Z","summary":"<p>Have you heard about <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/hacktoberfest.com\">Hacktoberfest<\/a>? It\u2019s a yearly initiative encouraging people to give back to open source. <em>(Or at least that\u2019s the premise.)<\/em> To do that, some companies \u2013 most importantly <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/digitalocean.com\">DigitalOcean<\/a> \u2013 lure you with some <em>swag<\/em>, e.g., a <del>branded<\/del> <em>unique<\/em> t-shirt and a bunch of stickers.<\/p> <p>Is a t-shirt enough for people to work \u201cfor free\u201d? Most open source <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/opensource.guide\/getting-paid\/\">maintainers are not getting paid in the first place<\/a>, so that\u2019s already more than usual. As for the others, well\u2026 I find it funny, but most IT people just <em>love<\/em> branded t-shirts, stickers, and socks for no good reason.<\/p>"},{"id":"https:\/\/radekmie.dev\/blog\/on-uniforms-integration-with-zod\/","title":"On uniforms Integration With Zod","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-uniforms-integration-with-zod\/","rel":"alternate","type":"text\/html"}},"updated":"2022-09-28T00:00:00Z","summary":"<p>The <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/zod.dev\">Zod<\/a> validator is getting more and more traction. Whether it\u2019s because it\u2019s easy to use or out of the box type safety \u2013 people find it really appealing. I first heard of it back in 2020, when I found <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/github.com\/sinclairzx81\/typebox\">TypeBox<\/a> \u2013 another great validator (schema) package with types in mind.<\/p> <p>The difference between these two is fundamental \u2013 the latter relies on a well-known standard of JSON Schema, while the former introduces its own. I would call myself more of a \u201cJSON Schema person\u201d, but I agree that often it\u2019s simply an overkill for some projects and implies a significant bundle size impact.<\/p> <p>For these simple cases, <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/uniforms.tools\">uniforms<\/a> could use a simple yet powerful schema with a low footprint, just like Zod. Luckily, in contrary to other similar packages, it\u2019s a pleasure. It involves <em>a lot<\/em> of <code>instanceof<\/code>s, but it\u2019s nice.<\/p>"},{"id":"https:\/\/radekmie.dev\/blog\/on-uniforms-v4\/","title":"On uniforms v4","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-uniforms-v4\/","rel":"alternate","type":"text\/html"}},"updated":"2022-08-30T00:00:00Z","summary":"<p>Have you heard of <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/uniforms.tools\">uniforms<\/a>? It\u2019s a schema-based React forms library that I\u2019ve been working on at <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/vazco.eu\">Vazco<\/a> for more than 6 years now. We released 177 versions and achieved more than 1.6 million downloads in that time. It may not be a lot for <em>you<\/em>, but it really means a lot to <em>me<\/em>.<\/p> <p>Back in January 2021, we released v3. It included migration to the new <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/github.com\/vazco\/uniforms\/commit\/1ec3b5393ad59890cadcdf96c0cf2cab90b8164f\">React Context API<\/a>, a handful of TypeScript improvements, <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/github.com\/vazco\/uniforms\/pull\/711\">simplification of the validation flow<\/a>, and\u2026 A <em>lot<\/em> of removals. Really, check out the <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/uniforms.tools\/docs\/migrating-2-to-3\/\">migration guide<\/a> yourself \u2013 there are around 15 removed methods or props.<\/p> <p>Last week, we had a meeting regarding version 4. And you know what? We are on a <del>killing<\/del> removal spree again. Everything to make both our and the users\u2019 lives easier."},{"id":"https:\/\/radekmie.dev\/blog\/on-database-migrations-in-mongodb\/","title":"On Database Migrations in MongoDB","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-database-migrations-in-mongodb\/","rel":"alternate","type":"text\/html"}},"updated":"2022-07-28T00:00:00Z","summary":"<p>The database schema is something that tends to evolve along the code. That means, it\u2019ll change rather rapidly at the beginning, then stay the same for a relatively long time, and finally get adjusted only from time to time. While some changes will be both easy and fast to implement (e.g., adding a field), some won\u2019t (e.g., extracting an array field into a separate collection).<\/p> <p>In a way, the nature of the project decides whether or not you need a proper migration workflow. Most <abbr title=\"Minimum Viable Products\">MVPs<\/abbr> don\u2019t need one, as they are most likely fine with purging the database every time even a change is made. At the same time, designing and maintaining one is a good practice, as it builds confidence for when it\u2019s actually needed.<\/p>"},{"id":"https:\/\/radekmie.dev\/blog\/on-the-road-to-fibers-free-meteor\/","title":"On the Road to Fibers-free Meteor","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-the-road-to-fibers-free-meteor\/","rel":"alternate","type":"text\/html"}},"updated":"2022-06-27T00:00:00Z","summary":"<p>If you\u2019re working with Meteor, or at least know that it exists, you are most likely aware that it has one surprising and uncommon \u201csuperpower\u201d \u2013 it can synchronously wait for a promise (<a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/github.com\/DefinitelyTyped\/DefinitelyTyped\/blob\/d77e0d179c0a34a5a915133199746cf3d05997c7\/types\/meteor\/promise.d.ts#L13-L15\">typings<\/a>, <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/github.com\/meteor\/meteor\/blob\/713e40a906edb1cc02c3eec1b961cb816a384fa8\/npm-packages\/meteor-promise\/promise_server.js#L51-L61\">source<\/a>)."},{"id":"https:\/\/radekmie.dev\/blog\/on-the-edge-of-burnout\/","title":"On the Edge of Burnout","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-the-edge-of-burnout\/","rel":"alternate","type":"text\/html"}},"updated":"2022-05-30T00:00:00Z","summary":"<p>Should programming be <em>fun<\/em>? With nearly 7 years of commercial experience, it\u2019s still a really tough question. On the one hand, I\u2019m doing what I <em>really<\/em> like. On the other, I should\u2026 Get bored already?<\/p> <p>Programming is my hobby. <em>(Actually, I wouldn\u2019t be where I am now, if it weren\u2019t.)<\/em> As I speak to others, it\u2019s not that uncommon among programmers. But what is also not uncommon, is the fact that it changes in the first few years of work. It\u2019s simple \u2013 if your work is your hobby, then your hobby <em>feels<\/em> like work.<\/p> <p>Burnout <em>is<\/em> a thing; I hope we all know that. But let\u2019s start small, just when the spark goes off. At first, there\u2019s no drive for doing side projects. Then there\u2019s no interest in new and once exciting things. At some point, it\u2019s no longer about programming; it\u2019s about <em>work<\/em>. Something got lost in the process.<\/p>"},{"id":"https:\/\/radekmie.dev\/blog\/on-unmaintained-software\/","title":"On Unmaintained Software","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-unmaintained-software\/","rel":"alternate","type":"text\/html"}},"updated":"2022-04-27T00:00:00Z","summary":"<p>The vast majority of software requires maintenance. That\u2019s normal and nothing to be scared of! Most of this maintenance comes from updating the dependencies \u2013 both on the source and the API level. The former are easy, as long as there are no breaking changes \u2013 usually, it\u2019s just a version change. However, the latter pose a great challenge.<\/p> <p>By \u201cAPI-level dependencies\u201d, I mean not only the API of a library or runtime you\u2019re using but also the <em>outgoing<\/em> dependencies. Whether we\u2019re talking about a library or an app, the users will \u2013 sooner or later \u2013 rely on every single part of the observable behavior; <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/www.hyrumslaw.com\">that\u2019s a law<\/a>.<\/p> <p>As people are updating their runtimes (systems, drivers, browsers, etc.), the unmaintained software slowly becomes unusable. Usually, it starts with a beta user asking whether the change was intended or not. The community often \u201creacts\u201d with a workaround. But at some point, there\u2019s nothing they can do.<\/p>"},{"id":"https:\/\/radekmie.dev\/blog\/on-rss\/","title":"On RSS","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-rss\/","rel":"alternate","type":"text\/html"}},"updated":"2022-03-30T00:00:00Z","summary":"<p>Hey kids, have you heard of <abbr title=\"Really Simple Syndication\">RSS<\/abbr>? Some \u201colder\u201d people laugh that \u201cyounger\u201d people nowadays are not able to use a can opener or have no idea why does a pencil combines with a cassette tape. These are two <em>extreme<\/em> generalizations.<\/p> <p>But, at the same time, I\u2019d say that RSS is one of these things. Most people have <em>heard<\/em> about it at some point, and then it kind of\u2026 died? Well, luckily for <del>me<\/del> <em>us<\/em>, that\u2019s not true. At the end of the day, aren\u2019t you fed up with the tens of apps that you have to use in order to stay up to date with <em>stuff<\/em>? I certainly am.<\/p> <p>And that\u2019s where the RSS kicks in! It lets you stay up to date with <em>stuff<\/em> but in a centralized and personalized manner. Of course, it requires some setup from the publisher, but once set, it just works!"},{"id":"https:\/\/radekmie.dev\/blog\/on-regular-expressions\/","title":"On Regular Expressions","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-regular-expressions\/","rel":"alternate","type":"text\/html"}},"updated":"2022-02-28T00:00:00Z","summary":"<p>Whenever I introduce a <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/en.wikipedia.org\/wiki\/Regular_expression\">regular expression<\/a> \u2013 \u201cregex\u201d for short \u2013 in a project, there\u2019s always someone that is not fond of this idea. I heard \u201cwrite-only\u201d and \u201cunmaintanable\u201d way too many times. But are they really?<\/p> <p>I don\u2019t think that my daily programming practice is far from a \u201cstandard\u201d one, whatever this means. And I do use regexes daily \u2013 while searching through the code, working with <code>git<\/code>, or even <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/support.google.com\/docs\/answer\/3098244?hl=en\">Google Sheets<\/a>. As I just checked, more than half of my Sublime Text search history actually contains a regex.<\/p> <p>Just like any other piece of technology, there\u2019s some theory behind it, multiple standards, and a ton of tools to make our lives easier."},{"id":"https:\/\/radekmie.dev\/blog\/on-rust-in-webdev\/","title":"On Rust in Webdev","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-rust-in-webdev\/","rel":"alternate","type":"text\/html"}},"updated":"2022-01-26T00:00:00Z","summary":"<p>I remember that a couple of years back, <del>we<\/del> everybody laughed at the idea of \u201ceverything in JavaScript\u201d. It was right after the great success of <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/emscripten.org\">Emscripten<\/a>. We imagined that literally <em>everything<\/em> will make it into a web browser: desktop applications, heavy graphics processors, or even AAA games.<\/p> <p>Today, with <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/webassembly.org\">WebAssembly<\/a>, we are a thousand steps closer to this goal. As it becomes <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/github.com\/WebAssembly\/simd\/blob\/master\/proposals\/simd\/SIMD.md\">more<\/a> and <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/github.com\/WebAssembly\/bulk-memory-operations\/blob\/master\/proposals\/bulk-memory-operations\/Overview.md\">more<\/a> powerful, it makes sense to take other languages into consideration while working on a web application. <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/twitter.com\/Adobe\/status\/1453034805004685313\">Adobe announced<\/a> that they managed to squeeze Photoshop into the browser \u2013 that\u2019s huge!<\/p> <p>I believe there\u2019s no need for an introduction of <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/www.rust-lang.org\">Rust<\/a>. According to the <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/insights.stackoverflow.com\/survey\/\">Stack Overflow\u2019s Annual Developer Survey<\/a>, it\u2019s the most loved language <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/insights.stackoverflow.com\/survey\/2021#technology-most-loved-dreaded-and-wanted\">for six years straight<\/a>. As such, it gained an enormous community, including some passionate web developers. Some of them focus on rewriting everything in Rust; others began mixing it more reasonably, under the hood, as an implementation detail.<\/p> <p>That\u2019s why we see JavaScript-centric projects being rewritten. <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/parceljs.org\">Parcel<\/a> switched to an <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/swc.rs\">swc<\/a>-based JS transformer, <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/parceljs.org\/blog\/beta3\/\">achieving 4-fold improvements<\/a>. Recently they announced their <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/parceljs.org\/blog\/parcel-css\/\">new CSS transformer<\/a> that is 100x faster. <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/rome.tools\/blog\/2021\/09\/21\/rome-will-be-rewritten-in-rust\">Rome<\/a> switched to Rust even before it got finished. All of these lead to better and faster tooling.<\/p>"},{"id":"https:\/\/radekmie.dev\/blog\/on-developer-experience\/","title":"On Developer Experience","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-developer-experience\/","rel":"alternate","type":"text\/html"}},"updated":"2021-12-31T00:00:00Z","summary":"<p>Writing concise and maintainable code is an art. It\u2019s not only important from the developers\u2019 perspective but also on a (seemingly) unrelated business level. According to this <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/stackoverflow.blog\/2021\/12\/07\/new-data-what-developers-look-for-in-future-job-opportunities\/\">Stack Overflow\u2019s Pulse Survey<\/a>, developer experience became the most crucial factor in making a company <em>appealing<\/em>.<\/p> <p>On the one hand, we see an increased amount of tooling for every (no longer necessarily major) technology. Our toolboxes are no longer limited to an <abbr title=\"Integrated Developer's Environments\">IDE<\/abbr> and a debugger\/profiler pair. We have code linters, configuration checkers, secret scanners, complexity analyzers\u2026 Tons of bugs are no longer possible, or at least are easier to find due to the automated checks.<\/p> <p>On the other hand, every programming language has its idioms. If you\u2019ve ever worked with Python, you\u2019ve most likely heard the term <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/stackoverflow.com\/a\/25011492\/1452194\">\u201cpythonic\u201d<\/a>. There\u2019s no clear definition, so let\u2019s use this: <em>\u201cfeels right for an experienced developer\u201d<\/em>. Other languages have their own versions of it, but somehow this term simply sticks better than the other \u2013 \u201cjavascriptic\u201d sounds terrible.<\/p>"},{"id":"https:\/\/radekmie.dev\/blog\/on-writing-documentation\/","title":"On Writing Documentation","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-writing-documentation\/","rel":"alternate","type":"text\/html"}},"updated":"2021-11-29T00:00:00Z","summary":"<p>Writing a <em>good<\/em> piece of documentation is a heroic task. You have to deal with tens of small nuances on each sentence \u2013 or even word \u2013 just to make sure that <em>everyone<\/em> will understand it. You may think that you won\u2019t be that <em>everyone<\/em> anytime soon, but if you\u2019ve seen <em>things<\/em>, you realize that sooner or later, you will be. Most probably sooner than you realize.<\/p> <p>If you were lucky enough to work in a well-documented project \u2013 or should I say <em>environment<\/em> (I\u2019ll get to that) \u2013 you should know that keeping it this way takes time. A <em>lot<\/em> of time. The details, like formatting, correct wording, style of the charts, or even doodles, are probably the most time-consuming.<\/p> <p>Hundreds of (mis)formatted <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/www.atlassian.com\/software\/confluence\">Confluence<\/a> pages, some <del>ancient<\/del> <em>severely outdated<\/em> <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/www.google.com\/docs\/about\/\">Google Docs<\/a>, stale-since-ever <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/www.atlassian.com\/software\/jira\">Jira<\/a> tickets, way-too-brief meeting notes on <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/slite.com\">Slite<\/a>, and a bunch of random <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/www.notion.so\">Notion<\/a> pages. If you are lucky, you have <em>people<\/em> (most probably a single person) who actually know things. And they are here since\u2026 Ever? They won\u2019t leave.<\/p> <p>They won\u2019t, right?"},{"id":"https:\/\/radekmie.dev\/blog\/on-multisynchronicity\/","title":"On Multisynchronicity","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-multisynchronicity\/","rel":"alternate","type":"text\/html"}},"updated":"2021-10-29T00:00:00Z","summary":"<p>The vast majority of the code that most programmers work with is executed synchronously. In this setting, every <em>instruction<\/em> is computed separately, one at a time, in the order defined by the language or the runtime.<\/p> <p>However, most programs operate with a database, communicate with external services, or do some sort of background computation. All of these operations have some kind of inherent <em>delay<\/em>. Classically, the program will <em>pause<\/em> and wait for the result. Yes, it\u2019ll block the UI as well.<\/p> <p>But there\u2019s another way! We could perform these operations <em>asynchronously<\/em>, i.e., schedule them as well as some code that will be executed once the result is ready. There are many ideas for implementing these APIs, with varying levels of abstractions and performance considerations.<\/p> <p>Ideally, we would abstract the waiting away, but we can\u2019t."},{"id":"https:\/\/radekmie.dev\/blog\/on-throw-in-react\/","title":"On <code>throw<\/code> in React","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-throw-in-react\/","rel":"alternate","type":"text\/html"}},"updated":"2021-09-30T00:00:00Z","summary":"<p>Library authors are doing their best to provide the cleanest APIs while being constrained by the language. The (clean) API itself is there not only to help people understand the code better without diving into implementation details but also to prevent them from <em>foot guns<\/em> of any sort.<\/p> <p>Of course, the bigger the target audience is, the more vital the API becomes. If it\u2019s not going to be \u201cgood enough\u201d, then the community won\u2019t hold itself, as new people won\u2019t settle in quickly. <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/wiki.c2.com\/?MakeItWorkMakeItRightMakeItFast\">Quality over performance<\/a>!<\/p> <p>What if we <del>abuse<\/del> use some language features in an <em>unexpected<\/em> way to achieve an excellent developer experience? On the one hand, we achieved our goal; at least partially. On the other, it may result in <em>interesting<\/em> behavior."},{"id":"https:\/\/radekmie.dev\/blog\/on-ad-hoc-mentoring\/","title":"On Ad Hoc Mentoring","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-ad-hoc-mentoring\/","rel":"alternate","type":"text\/html"}},"updated":"2021-08-23T00:00:00Z","summary":"<p>Being a mentor for more than five years assured me that every single form of mentoring is beneficial for both sides \u2013 the mentor and the mentee. In many companies, rather than a one-time event, it\u2019s a part of a bigger process, like onboarding or regular project- or company-wide pair programming sessions.<\/p> <p>But what if you suddenly have a one-time occasion with someone? It happens from time to time \u2013 someone is absent, and you are expected to make up for the missed mentoring session, there\u2019s a blocker on another project, and you are an expert in the area, or you were asked for help.<\/p> <p>How to make the most of it? I have to admit that learning from mistakes is the most effective way. It not only gives you a better understanding of the final solution but is also harder to forget. However, it\u2019s hardly applicable in one go.<\/p>"},{"id":"https:\/\/radekmie.dev\/blog\/on-cold-keyboard-optimization\/","title":"On Cold Keyboard Optimization","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-cold-keyboard-optimization\/","rel":"alternate","type":"text\/html"}},"updated":"2021-07-12T00:00:00Z","summary":"<p>If you have ever worked with a profiler, you should be aware that basically any process on your computer may affect the results. It\u2019s simple \u2013 CPUs are complex beasts, and your <abbr title=\"Operating System\">OS<\/abbr> is doing its best to keep the system responsive. The only thing you have to know is that it\u2019s actually good at it. Like, really good.<\/p> <p>As all resources of our computers are strictly limited, it\u2019s often the case that some of the processes (tasks) will not be given as much of them as needed. Or, more likely and even worse, they\u2019ll receive a different amount each time.<\/p> <p>But what\u2019s the deal with \u201ccold keyboard\u201d? Well, I work on a laptop with <em>some<\/em> Linux on it. What is important for the story (and the title!), I love its built-in keyboard, and I\u2019m not using an external one. That means, every time the CPU gets hot, I can actually feel it. And like most people (I guess?), I honestly hate it.<\/p> <p>To keep my keyboard cold, I could stop pushing the CPU <em>that<\/em> hard. However, it\u2019s not possible during profiling, as you want to run your program and another one in parallel to measure the performance."},{"id":"https:\/\/radekmie.dev\/blog\/on-recruiting-full-stacks\/","title":"On Recruiting Full Stacks","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-recruiting-full-stacks\/","rel":"alternate","type":"text\/html"}},"updated":"2021-06-01T00:00:00Z","summary":"<p>Every recruitment process starts way before there\u2019s any candidate. Most of them end as soon as someone gets hired \u2013 we go one step further, including the onboarding. This process is a result of <em>years<\/em> of gradual improvements.<\/p> <p>This time we\u2019ll look into the process I\u2019ve been part of for over five years now. No, I\u2019m not an expert, and no, I\u2019m not educated in this direction at all. However, I think I can say I\u2019m at least <em>decent<\/em> at it.<\/p> <p><em>Everything<\/em> is covered here."},{"id":"https:\/\/radekmie.dev\/blog\/on-software-performance\/","title":"On Software Performance","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-software-performance\/","rel":"alternate","type":"text\/html"}},"updated":"2021-05-19T00:00:00Z","summary":"<p>If you have ever talked with your manager or a client about the performance, you\u2019ve most probably heard the dreaded <em>\u201cIs it fast?\u201d<\/em> question. There\u2019s also the imperative variant, <em>\u201cIt has to be fast.<\/em>\u201d, although far less common. In both cases, I usually follow up with a serious face, forcing the other person to stay with me and actually define what it means for it to be <em>fast<\/em>.<\/p> <p>As you slowly get angry (because nobody knows the code better than you), you start to notice that the client is not really talking about the <em>performance<\/em> itself, but rather the <em>feeling<\/em> of it \u2013 the <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/www.smashingmagazine.com\/2015\/09\/why-performance-matters-the-perception-of-time\/\"><em>perceived performance<\/em><\/a>. That opens a whole new world of quirks of human perception. And hacks, of course.<\/p> <p>There are also other cases when something could be improved, but there are no plans nor resources for that, as it\u2019s already <em>fast enough<\/em>. How can one <em>strongly<\/em> suggest actually putting work into it?"},{"id":"https:\/\/radekmie.dev\/blog\/on-dots-and-emojis\/","title":"On Dots and Emojis","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-dots-and-emojis\/","rel":"alternate","type":"text\/html"}},"updated":"2021-04-21T00:00:00Z","summary":"<p>I. Like. Dots. Okay, not like that, but I\u2019m this kind of person who always ends their sentence with a dot. And trust me \u2013 when I say <em>always<\/em>, I mean it. I do so <em>everywhere<\/em> \u2013 not only in the \u201cofficial channels\u201d like work-related emails or chats with a client \u2013 <em>everywhere<\/em>, including private text messages and every instant messaging app, like Messenger or Slack.<\/p> <p>The weird part is that I have no idea <em>why<\/em>. I\u2019m simply used to do so, at least as far as I can remember. It feels normal and more natural \u2013 somehow required by the form of a \u201cproper sentence\u201d. I know, it\u2019s obvious for a linguist, but not so much for <del>an average internet user<\/del> the standards of online communication.<\/p> <p>But hey, we have emojis. Maybe we all could agree to use them\u2026 instead? For some people, emojis are far more expressive and better suited than <del>punchlines<\/del> dots."},{"id":"https:\/\/radekmie.dev\/blog\/on-side-projects\/","title":"On Side Projects","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-side-projects\/","rel":"alternate","type":"text\/html"}},"updated":"2021-04-12T00:00:00Z","summary":"<p>Side projects are important. And while not everyone has the time or mental capacity to have one, I think we could do better at working with them. Mine were always strictly code-related \u2013 small scripts or <abbr title=\"Proofs of Concept\">PoCs<\/abbr> of some functionality.<\/p> <p>But the code shouldn\u2019t be a limitation. Whether you need to solve an actual problem, verify a start-up idea, want to <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/github.com\/karan\/Projects\">start with new technology<\/a>, or spend some time \u2013 pet projects are often the way to go. As long as the goal is there and you <em>want<\/em> to, basically everything can grow and evolve into bigger <em>things<\/em>. And these tend to have a need for maintenance.<\/p> <p>That\u2019s where it gets (usually) far less interesting. Code ages on several levels, often faster than we\u2019d expect and want it to. You do it almost automatically at first \u2013 covering corner cases, ironing bugs, and optimizing usual workload is <em>technically<\/em> a part of the implementation, right? But suddenly you feel the urge to throw it out of the window\u2026"},{"id":"https:\/\/radekmie.dev\/blog\/on-javascript-ecosystem\/","title":"On JavaScript Ecosystem","link":{"@attributes":{"href":"https:\/\/radekmie.dev\/blog\/on-javascript-ecosystem\/","rel":"alternate","type":"text\/html"}},"updated":"2021-03-25T00:00:00Z","summary":"<p>A colleague of mine recently asked whether we consider the current state of the JavaScript ecosystem <em>stable<\/em>. As you may know, the problem of \u201cJavaScript Fatigue\u201d is real. If you haven\u2019t heard about it \u2013 or you like nice drawings \u2013 consider reading <a rel=\"noopener nofollow external\" target=\"_blank\" href=\"https:\/\/auth0.com\/blog\/how-to-manage-javascript-fatigue\/\">this article on Auth0 blog<\/a> as a primer.<\/p> <p>A lot have changed within the last few years. That includes the number of things I experienced and my level of expertise. Keep that in mind, as both have a strong influence on my point of view.<\/p> <p>As usual, the answer is: <em>it depends<\/em>. While plenty of positive things has happened \u2013 we\u2019ll get to that in a minute \u2013 there is a bunch of new problems too."}]}