惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

月光博客
月光博客
Martin Fowler
Martin Fowler
博客园_首页
量子位
T
Tailwind CSS Blog
博客园 - Franky
G
Google Developers Blog
D
DataBreaches.Net
Vercel News
Vercel News
B
Blog
Recent Announcements
Recent Announcements
S
SegmentFault 最新的问题
M
MIT News - Artificial intelligence
爱范儿
爱范儿
博客园 - 【当耐特】
The Cloudflare Blog
H
Help Net Security
云风的 BLOG
云风的 BLOG
P
Proofpoint News Feed
C
Check Point Blog
有赞技术团队
有赞技术团队
Microsoft Security Blog
Microsoft Security Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
2026. Week 24: mobile as a test for backend honesty
Sergey Shkuratov · 2026-06-19 · via DEV Community

This week I wanted to “just start mobile development” for my checklist service: build a straightforward mobile client and cover the basic scenarios. The first questions looked practical: do I need a full editor on the phone, is the current API enough, and which stack and working setup should I choose?

But very quickly it became clear that this was not really a story about one more client. Mobile became a useful spotlight: it showed the places where I had not fully described the system as a contract, and where it still depended on browser defaults.

1) Product framing: a phone is not a second “full editor”

The request for a “full mobile editor” sounds logical until you break it down into real situations. In practice, it mixes two different user scenarios:

  • edits on the go: quickly fix text, mark a step, replace one item, continue a checklist in the field;
  • full editing: structural changes, bulk edits, careful work with formatting and visibility rules.

Once I separated these, the frame for the first version became much more realistic: the mobile client should first of all run checklists and support light edits, not fully copy the web editor.

This matters not because of “laziness”, but because of the cost of the tail. If you aim for full feature parity, you almost immediately pull in topics like offline sync, change conflicts, versioning, and complex UX for large edits. On a phone, these things are more expensive both to build and to use.

2) The API is “mostly enough”, but the bottleneck was not in the business methods

Then came the good news: a quick audit showed that for the first online version of the mobile client, the business contract was already mostly there. Auth, templates, checklists, instances, invitations — all of this exists. There is OpenAPI and there are types, so I do not have to guess from loose documentation.

At this point it would be easy to stop and say: “we can start building the app.”

But the real knot was not there.

The problem was that the current auth flow and session lifecycle in my project are tightly tied to the browser: cookies and expectations about how a client behaves inside a browser session.

For the web this is natural and convenient. For mobile it is not “impossible”, but it is a boundary that quickly turns into architecture debt: a mobile client should not have to adapt itself to the browser habits of the system.

So the paradox of the week sounds like this: the business API already looks mature, but the system as a whole is still not fully ready to honestly serve the same contract in different client environments.

3) The main shift: the question is not “how do I adapt this for mobile?”, but “how do I describe session behavior independently from transport?”

After several iterations, it became clear that mobile is not a demanding client that needs exceptions. It simply forces me to name what should already be defined:

  • what a session means in the system (in domain terms, not browser terms),
  • how the client gets and refreshes the right to make requests,
  • which errors are expected and what the client should do in response,
  • how all of this should be tested.

As a result, the frame became stronger: not “two kinds of auth”, but one shared session model and two ways to deliver that model depending on the environment:

  • cookies — natural for web;
  • bearer token — natural for a native mobile client.

This is no longer just cosmetics and not only “preparation for the future”. It is a way to bring the contract to a state where it does not depend on implicit assumptions about transport.

And this is where something unpleasant but useful came up: before that, I had not separated the layers clearly enough. I had “it works on the web” in my head, and that was enough. But as soon as a second class of client appears, it becomes obvious that some decisions are not really decisions at all, but fog.

To clear that fog, I had to lift and define several system-level artifacts independently of the auth transport:

  • a description of login and session refresh flows (what the client does, what the server does);
  • behavior rules for common failures (network error, expired session, invalid token, repeated request);
  • a test matrix: which combinations of environments, clients, and scenarios must be tested for this to count as “real readiness”, not just a feeling of readiness.

4) An episode about the editor and the boundary of “where an agent is useful”

Against that background, there was also a revealing local episode inside the web checklist editor. For a long time I could not catch a bug: the menu behaved badly in a situation where there was not enough space below it to open normally. The problem was clearly somewhere in low-level JS/DOM/layout mechanics — a layer I know less well than the product and architecture side.

At some point I stopped pretending I should do “manual debugging until victory” and asked an agent to bring up Playwright and run the loop on its own: reproduce, measure, and test hypotheses.

This turned out to be useful not only for the specific bug, but also as a process calibration. If the task is mostly instrumental work — reproduction, changing conditions, collecting facts — it makes sense to give the machine the role of executor in the research loop. The human still holds the frame: formulates what exactly we are looking for and prevents the process from drifting into random fixes.

Weekly result

The week started as an attempt to get into mobile development, and ended with a more important result: I saw the foundations of the system more clearly.

First, I narrowed the product frame of the mobile client to something viable: launch + light edits, without pretending it should do everything the web version does. Then it became clear that business API readiness is only half of the story. Real readiness starts where auth and session behavior are described as a contract that lives honestly both in the browser and in a native app.

And maybe the main conclusion is this: new client environments are valuable not because they require a different UI or stack. They are valuable because they bring implicit assumptions into the light — especially around security, session behavior, and invariants, where “it works on the web” is not enough.