Bar chart: one 46-minute CI job above five parallel shards that finish in about 11 minutes

Where Your Flutter CI Time Goes: How We Cut a 47-Minute Pipeline to 12

AI is speeding up how fast we write code, but are your PRs still stuck in the slow lane? Our Flutter project’s pipeline took 47 minutes per pull request (PR) to turn green. We brought it down to 12 minutes and cut the monthly cost by 36%. I’ll show how we found the bottlenecks in our pipeline and which fixes saved the most time. This post is for engineers who maintain a Flutter pipeline, on any CI provider, and want faster feedback on their PRs. You’ll need a working pipeline that already runs analysis, tests, and builds. ...

November 18, 2026 · 13 min · Mohamed Shalan
Two rows of blocks: cached teal blocks with locks reused from the first request, and new amber blocks computed fresh

Decoding Prompt Caching

The question Have you ever noticed inconsistent response times during a Claude coding session? Or wondered why some API requests drain your credits much faster than others? You’ve come to the right place. If Claude is part of your daily workflow, let’s explore some common habits that might be driving up your token usage and slowing down response time. The mental model If you are a video game player (especially in open-world video games), you are already familiar with checkpoints (save points). You are not starting the game from the very beginning every time you boot your console. When your checkpoint (save point) is not available anymore on your console (for example, it got deleted), you are going to start the game from the very beginning. In the same way, prompt caching works. ...

November 4, 2026 · 6 min · Mohamed Shalan
Five Reviewers Approved It. None of Them Were Wrong.

Five Reviewers Approved It. None of Them Were Wrong.

By the time I finished reading the pull request, it had already been merged. The author had asked me to review it. I was maybe forty minutes in, doing the slow thing: opening the files it touched, then opening the files it didn’t touch, trying to build a picture of what this change actually did to the app. Somewhere in the middle of that, two other engineers approved it, auto-merge fired, and eight commits squashed themselves onto master. ...

August 12, 2026 · 13 min · Mohamed Shalan
I Built My Own AI News Feed Because I Kept Missing What Mattered

I Built My Own AI News Feed Because I Kept Missing What Mattered

I spent an hour every morning trying to keep up with AI tooling — and I was still behind. Not behind in the casual, “oh I haven’t read that yet” sense. Behind in the way that matters at work. A colleague would mention an MCP update that shipped last week and I’d nod along, quietly Googling it under the table. Someone would demo a workflow pattern I should have known about, and I’d realize I’d scrolled past the announcement three days ago without registering it. ...

March 16, 2026 · 9 min · Mohamed Shalan
When Less Is More: Rebuilding Easy Analytics v2.0.0

When Less Is More: Rebuilding Easy Analytics v2.0.0

I spent three days debugging a bug I found in 20 minutes. The bug was simple: Fragment tracking wasn’t firing correctly in ViewPagers. The fix was obvious once I located it—a timing issue with bytecode injection. But between finding it and feeling confident enough to fix it? Three days of reading through a monolithic file where everything depended on everything else. That file was the core of our analytics library. It did everything: scanned for annotations, detected class types, chose instrumentation strategies, injected bytecode, logged debug info, handled errors. All in one tangled mess. Touch one section, verify five others don’t break. ...

November 11, 2025 · 7 min · Mohamed Shalan
When Your Test Coverage Lies to You: A Bytecode Murder Mystery

When Your Test Coverage Lies to You: A Bytecode Murder Mystery

The pull request was routine—merging some changes I’d already tested thoroughly. Then Codacy’s coverage gate blocked me: “Insufficient coverage on modified paths.” I stared at the failure message. Those paths were covered. I’d written the tests myself. Watched them pass. Green checkmarks everywhere except this one gate, claiming I’d forgotten to test code that I knew I’d tested. Fine. I’ll prove it. I ran the coverage report locally. ./gradlew jacocoTestReport and waited for the HTML output, already composing my “actually, the CI is wrong” Slack message in my head. ...

October 13, 2025 · 7 min · Mohamed Shalan
Stop Writing Boilerplate Analytics Code (Your Future Self Will Thank You)

Stop Writing Boilerplate Analytics Code (Your Future Self Will Thank You)

We’ve all been there. You’re deep in the flow, building that perfect user experience, when suddenly you remember: “Oh right, I need to track this screen.” Then comes the familiar ritual—add the analytics call, remember the lifecycle method, serialize the parameters, and pray you didn’t miss any edge cases. Rinse and repeat for every single screen and action in your app. What if I told you there was a better way? ...

September 24, 2025 · 4 min · Mohamed Shalan