Load Balancing: The Intuition Behind the Power of Two Random Choices
Image generated by OpenAI’s DALL-E 2In dynamic resource allocations and load balancing, one of the most well-known and fascinating algorithms is the so-called “power of two random choices,” which proposes a very simple change to the random allocations that yields exponential improvement. I was lucky enough to have implemented this very
Read moreComposing Accessibility Identifiers for SwiftUI Components
Learn how to compose Accessibility Identifiers with the same ergonomics as modifying View with padding, background or foreground colorsImage created by author using ProcreateWhat Are Accessibility Identifiers, and What Are They For?Accessibility identifiers can be used to reliably distinguish an element (XCUIElement) in UI automated tests (XCUITests). The alternatives either have
Read moreTextInputLayout Censoring With Password-Like Method
Photo by Anja Bauermann on UnsplashEver wonder, how to make the text inside TextInputLayout censored and/or partially censored? But the plot twist is, how can you censor the text without putting a “password” property on its inputType to accomplish this task?How about setting it as a censored text first, then putting it
Read moreHow I Conduct an Accessibility Audit
Screen reader testing, keyboard-only navigation, and moreContinue reading on Better Programming »
Read morePlatform engineering is just DevOps with a product mindset
Since it was introduced in 2009, the DevOps mindset has encouraged organizations to put resources behind improving metrics like lead time, deployment frequency, change failure rate, and mean time to recovery (MTTR). This approach worked for many leading engineering organizations to develop, deliver, and ship software faster and more efficiently
Read moreJaccard index and jazz albums
Jaccard index is a way of measuring the similarity of sets. The Jaccard index, or Jaccard similarity coefficient, of two sets A and B is the number of elements in their intersection, A ∩ B, divided by the number of elements in their union, A ∪ B. Jaccard similarity is
Read moreA Hitchhiker’s Guide to ChatGPT
Understanding AI’s talkative cousinImage generated using MidjourneyWished lately that you had a buddy who could answer your deepest, most random questions at the right time, make up a captivating story on the spot, or maybe even keep you company during an insomnia-ridden night? Well, in comes ChatGPT, the charismatic AI
Read moreHow Can You Unit Test as a Game Dev
In part one of this article, let’s dig a little deeper because anecdotally, the answer I’ve received has always been one-sidedPhoto by Javier Martínez on Unsplash“Games can’t be unit tested.” — EveryoneBut coming from a decade of software engineering experience before entering the world of game development, this statement baffles me. I would
Read moreHow to Use CSS aspect-ratio
Learn how to use the CSS aspect-ratio property, with practical examples, alternatives for older browsers, and other useful things to know. Continue reading How to Use CSS aspect-ratio on SitePoint.
Read moreWhy Tailwind CSS Became So Popular: A Developer’s Guide
Exploring the rise of the utility-first CSS framework that’s changed the gameContinue reading on Better Programming »
Read more