Find the Distance Value Between Two Arrays Easy Solution
Problem Description The problem asks us to count how many elements in arr1 are far enough from every element in arr2. For an element x in arr1, we must check t...
Problem Description The problem asks us to count how many elements in arr1 are far enough from every element in arr2. For an element x in arr1, we must check t...
Why do we add indexes to our SQL fields? To make the search faster, right? But do you know it has a massive downside? Writes become slower, forcing developers t...
We’ve all been there. You’re reading a brilliant, massive piece of content, you hit the bottom, and suddenly you have to manually scroll all the way back up lik...
Cache latencies - L1 cache reference: 1 ns - L2 cache reference: 4 ns - Branch mispredict: 3 ns Memory latency - Main memory reference: 100 ns - Read 1 000 000...
Introduction OpenAI says “Context is a scarce resource.” Treat it like one. A giant instruction file may feel safe and thorough, but it crowds out the actual t...
Introduction A single block passed to .any? can silently load thousands of records into memory—no warnings, no errors, just unnecessary objects. Most Rails dev...
The Tale of 50 000 QR Codes Sometimes the simplest tasks can become the biggest headaches. I set out to generate 50 000 unique QR codes and bundle them into a...
The Problem Running Xcode, Android emulator, local AI models, and a dozen browser tabs simultaneously on Apple Silicon is brutal on RAM. My M1 Pro was constant...
In this article I share my journey with ActiveRecord. When I first started with Rails, I thought ActiveRecord was just “magic” to save data to the database. Aft...
The Problem With Using sort Just to Verify Order A common mistake and one I’ve made myself: python def is_sorted_badlst: return lst == sortedlst Python’s Timso...
Solving complex problems requires continuous effort in developing theory and practice to cope with larger, more difficult scenarios. Working with surrogates is ...
Introduction As a Frontend Software Engineer, I’ve worked on a range of challenging projects, and one area I focus on constantly is frontend performance. A fas...