<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Angus Tse on Medium]]></title>
        <description><![CDATA[Stories by Angus Tse on Medium]]></description>
        <link>https://medium.com/@angus_t?source=rss-421384f4fc18------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*up690WnWFisMOMsI2yb4Eg.jpeg</url>
            <title>Stories by Angus Tse on Medium</title>
            <link>https://medium.com/@angus_t?source=rss-421384f4fc18------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 12:06:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@angus_t/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Building a Production Mobile App with 5 AI Agents — Part 3: QA and Release]]></title>
            <link>https://medium.com/@angus_t/building-a-production-mobile-app-with-5-ai-agents-part-3-qa-and-release-9e8d8c472404?source=rss-421384f4fc18------2</link>
            <guid isPermaLink="false">https://medium.com/p/9e8d8c472404</guid>
            <category><![CDATA[llm-applications]]></category>
            <category><![CDATA[llm-agent]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[claude-code]]></category>
            <category><![CDATA[react-native]]></category>
            <dc:creator><![CDATA[Angus Tse]]></dc:creator>
            <pubDate>Mon, 11 May 2026 01:40:42 GMT</pubDate>
            <atom:updated>2026-05-11T01:40:42.832Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://medium.com/@angus_t/building-a-production-mobile-app-with-5-ai-agents-part-1-the-architecture-e33a90dd3315"><em>Parts 1</em></a><em> and </em><a href="https://medium.com/@angus_t/building-a-production-mobile-app-with-5-ai-agents-part-2-the-question-bank-0f12e53c4d51"><em>2</em></a><em> covered the 5-agent architecture and the data pipeline. This part covers what happened when we tried to ship.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I3h5Nxy3c9WxbXP9Z2YpQg.png" /></figure><h3><strong>Four failures before one success</strong></h3><p>The production Android build succeeded on the fifth attempt. Here is what failed first, in order:</p><p>1. `eas-cli` version constraint not satisfied</p><p>2. App slug mismatch between `app.json` and the EAS project</p><p>3. `react`/`react-dom` peer dependency conflict</p><p>4. Missing `react-native-nitro-modules` peer dependency</p><p>None of these were logic errors. None showed up in local development. All four were environment and configuration issues that only surface when a cloud build system runs `npm ci` against your exact `package.json` from scratch, without your local `node_modules` cache papering over the gaps.</p><p>That pattern — local works, cloud fails — is the most consistent property of release pipelines, AI-assisted or otherwise. The agents didn’t cause these failures. They also didn’t prevent them. That’s an important distinction to make honestly.</p><h3><strong>What the QA agent actually did</strong></h3><p>Before any of this, the QA agent ran a full sign-off pass on the app. Its scope:</p><p><strong>Automated UI flows via Appium:</strong></p><ul><li>Complete 20-question test from start to results screen</li><li>Pass scenario: score ≥15 with all values questions correct</li><li>Fail scenario: score ≥15 but one values question wrong — verifies the gate triggers correctly</li><li>Timer expiry: test auto-submits at 0:00, all answers recorded</li><li>Mid-test interstitial ad fires at question 10 (free tier)</li><li>Resume after backgrounding mid-test</li></ul><p><strong>Question bank validation via `citizenship-qa-validate` skill:</strong></p><ul><li>400+ questions cross-referenced against the official PDF</li><li>Confidence scored per question; low-confidence items flagged for human review</li><li>Caught the `is_values_question` tagging error described in <a href="https://medium.com/@angus_t/building-a-production-mobile-app-with-5-ai-agents-part-2-the-question-bank-0f12e53c4d51">Part 2</a></li></ul><p><strong>IAP flows:</strong></p><ul><li>Sandbox purchase of the AU$9.99 premium product</li><li>Restore purchases on fresh install</li><li>Premium feature unlock (Study Mode, Progress screen, ad removal)</li></ul><p>The QA agent produced `docs/qa-report.md` with a sign-off checklist. The release engineer doesn’t submit anything until that file exists and is complete. This is enforced by convention, not code — but it meant there was a clear gate between “built” and “shipped.”</p><p><strong>The IAP library that broke on Android</strong></p><p>This failure happened earlier in the project, during implementation, but it belongs in this section because it was a release-blocking problem.</p><p>The original IAP integration used `expo-in-app-purchases`. On iOS it worked correctly throughout development. When Android build support was added, the build failed immediately:</p><pre>error: cannot find symbol<br>import expo.modules.interfaces.moduleapi.ExportedModule;</pre><p>`expo-in-app-purchases` depends on an internal Expo module API that was removed in SDK 54. The library hadn’t been updated to match. It builds fine on iOS because the broken code path is Android-only; the failure is silent until you actually compile for Android.</p><p>The fix was a full migration to `react-native-iap` v14. This meant rewriting the entire settings screen IAP logic: different imports, different connection lifecycle, different purchase listener API, different error codes. The implementation agent handled the migration, then ran the iOS flow again before committing to verify no regression — because the risk of breaking a working iOS integration while fixing Android is real, and worth explicitly checking.</p><p>The new `react-native-iap` v14 API surface:</p><pre>// Connection<br>await initConnection();<br>// Products<br>const products = await fetchProducts({ skus: [PRODUCT_ID] });<br>// Purchase<br>await requestPurchase({<br>  type: &#39;in-app&#39;,<br>  request: {<br>    apple: { sku: PRODUCT_ID },<br>    google: { skus: [PRODUCT_ID] },<br>  },<br>});<br>// Listener<br>purchaseUpdatedListener(async (purchase) =&gt; {<br>  if (purchase.transactionId) {<br>    await finishTransaction({ purchase });<br>    setPremium(true);<br>  }<br>});</pre><p>The lesson: library compatibility with your SDK version is not something you can verify from the README. It only becomes visible when you try to build for both platforms. If you’re building cross-platform, test the Android build early — not after you’ve built the whole app on iOS.</p><h3><strong>The four build failures, dissected</strong></h3><p><strong>Failure 1: eas-cli version</strong></p><pre>You are on eas-cli@16.32.0 which does not satisfy the CLI version<br>constraint defined in eas.json (&gt;= 18.5.0).</pre><p>The globally installed `eas-cli` was outdated. Also, the Node version in use (18) caused a preflight check to fail — `Array.prototype.toReversed()` is not available until Node 20, and Expo’s Metro config calls it during EAS’s local validation step.</p><p>Fix: `npm install -g eas-cli@latest`, then `nvm use 20` before every EAS command.</p><p><strong>Failure 2: App slug mismatch</strong></p><pre>Slug for project identified by &quot;extra.eas.projectId&quot; (aus-citizenship-practice)<br>does not match the &quot;slug&quot; field (au-citizenship).</pre><p>The EAS project was created with one slug; `app.json` had a different one. The EAS project is the source of truth. Fix: update `app.json` to match.</p><p>This is the kind of error that happens when a project evolves — the slug in `app.json` was set early, then the EAS project was created later with a slightly different name. It’s a one-line fix, but it stops your build completely until you find it.</p><p><strong>Failure 3: Peer dependency conflict</strong></p><pre>npm error ERESOLVE could not resolve<br>npm error peer react@&quot;¹⁹.2.4&quot; from react-dom@19.2.4<br>npm error Found: react@19.1.0</pre><p>`npm ci` (which EAS uses) is stricter than `npm install`. Locally, npm had resolved the conflict silently. On the clean cloud environment, it refused.</p><p>Fix: add `.npmrc` to the project root:</p><pre>legacy-peer-deps=true</pre><p>EAS Build picks this up automatically. The `.npmrc` file is committed to the repo so it travels with the project.</p><p><strong>Failure 4: Missing peer dependency</strong></p><pre>Unable to resolve module react-native-nitro-modules from<br>node_modules/react-native-iap/lib/module/index.js</pre><p>`react-native-iap` v14 requires `react-native-nitro-modules` as a peer dependency. It was not listed in `package.json`. Locally, it happened to be present as a transitive dependency of something else. On the cloud build, it wasn’t.</p><p>Fix: `npm install react-native-nitro-modules`.</p><h3><strong>The honest verdict</strong></h3><p><strong>Where the agents saved real time:</strong></p><ul><li>The research phase found the values gate insight that shaped the entire product — that’s work I would have either skipped or done poorly by skimming App Store reviews for 20 minutes</li><li>The data pipeline produced 431 structured questions from a 144-page PDF in a fraction of the time it would take to write them manually, and the validation skill gave a repeatable QA process for the content</li><li>The IAP migration was handled cleanly because the implementation agent had full codebase context — no grepping around trying to understand what needed changing</li><li>The release engineer produced App Store Optimised listing copy for both platforms as a side effect of the release process, using a custom skill</li></ul><p><strong>Where humans were still essential:</strong></p><ul><li>Every architectural decision: which library, which monetization model, whether to split into a series or one post</li><li>Approving each phase transition — the agents produced outputs, but a human checked them before the next agent ran</li><li>The four build failures were diagnosed and fixed by a human reading error logs. Agents contributed the fixes once the error was understood, but the triage was manual</li><li>Screenshot retakes, store listing review, Apple Developer account setup, Google Play Console registration — anything that touches a human-facing external system</li></ul><p><strong>The total:</strong></p><p>Roughly 40–60 hours of agent execution time across all five phases. Roughly 15 hours of human time: decisions, approvals, reviews, and the half-dozen things that required actually logging into a website.</p><p>Is that a good ratio? It depends what you compare it to. Solo developer building this from scratch: probably 200–300 hours. Agency building it: a budget conversation I’m not having. The question isn’t whether AI agents are faster — they clearly are. The question is whether the workflow is structured enough that the agents produce something you’d actually ship.</p><p>In this case: yes. The production builds for both iOS and Android are complete and submitted to their respective stores — currently in review, expected live within the week. The question bank has 431 accurate questions. The values gate works correctly. The IAP and ads are wired to real production IDs.</p><p>The<strong> five-agent pipeline</strong> produced a shippable product. The file-based handoffs meant every phase was auditable. The custom skills meant the hard domain problems — question validation, store listing copy — had repeatable solutions rather than one-off prompts.</p><p>The build failures were real. The IAP migration was disruptive. The `is_values_question` bug made it past two agents before QA caught it. None of that is a reason to avoid structured multi-agent workflows. It’s a reason to have a QA agent, a validation skill, and a release phase that treats the build pipeline as adversarial until proven otherwise.</p><p><a href="https://medium.com/@angus_t/building-a-production-mobile-app-with-5-ai-agents-part-1-the-architecture-e33a90dd3315"><em>Part 1: The Architecture — why 5 agents, file-based handoffs, the values gate insight</em></a></p><p><a href="https://medium.com/@angus_t/building-a-production-mobile-app-with-5-ai-agents-part-2-the-question-bank-0f12e53c4d51"><em>Part 2: The Question Bank — LLM-as-ETL, the provenance schema, the tagging bug</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9e8d8c472404" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Production Mobile App with 5 AI Agents — Part 2: The Question Bank]]></title>
            <link>https://medium.com/@angus_t/building-a-production-mobile-app-with-5-ai-agents-part-2-the-question-bank-0f12e53c4d51?source=rss-421384f4fc18------2</link>
            <guid isPermaLink="false">https://medium.com/p/0f12e53c4d51</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[data-pipeline]]></category>
            <category><![CDATA[ai-qa-agent]]></category>
            <category><![CDATA[anthropic-claude]]></category>
            <dc:creator><![CDATA[Angus Tse]]></dc:creator>
            <pubDate>Mon, 27 Apr 2026 22:31:01 GMT</pubDate>
            <atom:updated>2026-04-27T22:31:01.548Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://medium.com/@angus_t/building-a-production-mobile-app-with-5-ai-agents-part-1-the-architecture-e33a90dd3315"><strong>Part 1</strong> covered the 5-agent architecture and why file-based handoffs matter. This part goes deep on the data pipeline.</a></p><h3><strong>The hard part isn’t the UI</strong></h3><p>Most tutorials about building exam apps spend 90% of their words on React components and routing. The question bank is treated as a given — a JSON file that appears from somewhere, with a hand-wave in the direction of “you’d populate this with real content.”</p><p>For a citizenship practice app, “real content” means questions that are accurate against an official government document, tagged correctly across four legal categories, balanced in difficulty, and — critically — correctly identifying which questions fall under the Australian Values threshold.</p><p>Get the content wrong and the app fails its core purpose, regardless of how polished the UI is. This is why the data agent runs before the implementation agent, and why it gets the most complex toolset of any agent in the system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rrqlyf_f3uG1lbB-gXt5uA.png" /></figure><h3><strong>What the data agent was given</strong></h3><p><strong>One input:</strong> the official <em>*Australian Citizenship: Our Common Bond*</em> testable resource — a publicly available government PDF covering everything the citizenship test can draw from.</p><p><strong>One output:</strong> `data/questions.json`, a structured question bank conforming to a schema the implementation agent would use directly.</p><pre>{<br>  &quot;id&quot;: &quot;q001&quot;,<br>  &quot;category&quot;: &quot;australian_values&quot;,<br>  &quot;is_values_question&quot;: true,<br>  &quot;question&quot;: &quot;Which of the following best describes a core Australian value?&quot;,<br>  &quot;options&quot;: [<br>    &quot;Respect for the equal worth of all individuals&quot;,<br>    &quot;Loyalty to a single political party&quot;,<br>    &quot;Obedience to religious authority in civic life&quot;,<br>    &quot;Preference for one cultural background over others&quot;<br>  ],<br>  &quot;correct&quot;: 0,<br>  &quot;explanation&quot;: &quot;Respect for the equal worth of all individuals is a core Australian value, as outlined in Our Common Bond.&quot;,<br>  &quot;source_type&quot;: &quot;generated&quot;,<br>  &quot;source_page&quot;: 12<br>}</pre><p>Every field has a purpose:</p><ul><li>`is_values_question` drives the dual-threshold pass/fail logic — the app checks this separately from the overall score</li><li>`source_type` tracks provenance across three different pipelines</li><li>`source_page` and `source_url` provide an audit trail back to the original material</li><li>`explanation` is shown in the Review screen after the test — so it needs to be accurate, not just plausible</li></ul><h3><strong>Three pipelines, one schema</strong></h3><p>The question bank was built from three sources. Each required a different ingestion strategy.</p><p><strong>Pipeline 1: PDF generation</strong></p><p>The official PDF is 144 pages of testable content. The data agent read it in full, then generated multiple-choice questions from the material — each with four options, a correct answer, a plain-English explanation, and the source page number.</p><p>This is not retrieval. The PDF doesn’t contain questions in MCQ format. The agent reads a passage like:</p><blockquote><em>Australia’s system of government is based on the principle of the separation of powers. This means the power to make and manage laws is divided between the Parliament, the Executive and the Judiciary.</em></blockquote><p>…and generates a question from it, writes three plausible distractors, grounds the explanation in the same passage, and tags it with the right category and page number.</p><p>The output: 225 questions, `source_type: “generated”`, `source_page` set for every one.</p><p><strong>Pipeline 2: Official sample questions</strong></p><p>The government publishes a small set of sample questions on its citizenship test preparation page. These are the only questions that are definitively “official” — exact wording from the source.</p><p>The data agent extracted these, enriched each one to the full 4-option schema (the official samples only show the correct answer, not distractors), and grounded the explanations in the PDF. Output: 20 questions, `source_type: “official_sample”`.</p><p><strong>Pipeline 3: Web crawl + enrichment</strong></p><p>Publicly available citizenship practice sites exist — not official, but widely used by test-takers. The data agent crawled a selection of these, extracted question-answer pairs, and enriched each one: adding a 4th option where only 3 existed, rewriting explanations to be grounded in the official PDF rather than paraphrased from memory, and validating the correct answer against the source document.</p><p>This pipeline required the most human review. Crawled content has inconsistent formatting, occasional factual drift from the official material, and sometimes outdated questions (the citizenship test content is periodically updated). Every question from this pipeline was cross-referenced against the PDF before inclusion.</p><p>Output: 186 questions, `source_type: “crawled”`, `source_url` set for each.</p><p><strong>Combined total: 431 questions.</strong></p><p><strong>The bug that slipped through</strong></p><p>The data agent introduced a tagging error that wasn’t caught until QA.</p><p>Of the 431 questions, 77 fall under the Australian Values category and require `is_values_question: true`. This field is what the app checks when applying the dual-threshold rule — the entire “values gate” feature depends on it being correct.</p><p>Twenty of those 77 questions came through with `is_values_question: false`.</p><p>The implementation agent built the values gate logic against this data and it appeared to work correctly in development — because the 57 correctly tagged values questions were enough to trigger the gate during most test runs. The 20 incorrectly tagged questions quietly slipped into the pool as ordinary questions.</p><p>The QA agent found it. Its `citizenship-qa-validate` skill cross-referenced every question tagged `australian_values` against the `is_values_question` field and flagged the mismatch.</p><p>The fix was a Python script to update the JSON, combined with a change to the database seed strategy: `INSERT OR REPLACE` instead of `INSERT OR IGNORE`, with an auto-reseed trigger when the question count changes. That meant the fix deployed on next app launch without any manual intervention.</p><p>But the lesson is more important than the fix: <strong>the agent that generates data will not catch its own tagging errors.</strong> That’s not a failure of the agent — it’s a structural property of any pipeline where the producer and the validator are the same process. The only reliable way to catch it is a separate validation step with a separate agent.</p><p><strong>The citizenship-qa-validate skill</strong></p><p>Generic prompts don’t scale for quality assurance. “Check these questions are accurate” is not a repeatable, auditable process.</p><p>The `citizenship-qa-validate` skill is a custom Claude Code skill that takes `questions.json` as input and produces a structured validation report. For each question it:</p><p>1. Locates the relevant section in the official PDF</p><p>2. Verifies the correct answer against that section</p><p>3. Checks that the explanation is grounded in the source (not hallucinated)</p><p>4. Assigns a confidence score: `high`, `medium`, or `low`</p><p>5. Flags `low` confidence items for human review</p><p>Output is a markdown report at `data/qa-validation-report.md` with a per-question breakdown and a summary of flagged items.</p><p>The difference between this and a one-shot prompt: it’s repeatable across question bank updates, the output format is consistent, and the confidence scoring gives a clear signal for where human review is needed rather than requiring someone to read every line.</p><p>When the question bank was expanded from 200 to 431 questions, the skill ran again automatically and produced a new validation report. No prompt engineering required; the skill handles it.</p><p><strong>What this buys you</strong></p><p>A question bank built this way has properties that a manually assembled one often doesn’t:</p><ul><li>Every question has a traceable source (PDF page or URL)</li><li>Every explanation is grounded in the official document, not paraphrased from memory</li><li>The tagging schema is machine-readable — the app logic depends on `is_values_question`, not a human reading the category name</li><li>The validation skill can re-run on any update, catching regressions before they reach users</li></ul><p>It also has an honest limitation: generated questions from a PDF are not the same as questions written by test designers. Some questions are easier than the real test; some phrasings are slightly unnatural. The goal was accuracy and coverage, not perfect test simulation.</p><p><a href="https://medium.com/@angus_t/building-a-production-mobile-app-with-5-ai-agents-part-1-the-architecture-e33a90dd3315"><strong>Part 1</strong> The Architecture — why 5 agents, file-based handoffs, the values gate insight</a></p><p><strong>Part 3</strong> QA and Release — build failures, IAP migration, honest verdict covers what happened when we tried to ship it: four consecutive EAS build failures, a mid-project IAP library migration, and the honest answer to whether the agents saved more time than they cost.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0f12e53c4d51" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Production Mobile App with 5 AI Agents — Part 1: The Architecture]]></title>
            <link>https://medium.com/@angus_t/building-a-production-mobile-app-with-5-ai-agents-part-1-the-architecture-e33a90dd3315?source=rss-421384f4fc18------2</link>
            <guid isPermaLink="false">https://medium.com/p/e33a90dd3315</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[claude-code]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[anthropic-claude]]></category>
            <category><![CDATA[ai-test-automation]]></category>
            <dc:creator><![CDATA[Angus Tse]]></dc:creator>
            <pubDate>Wed, 22 Apr 2026 13:36:18 GMT</pubDate>
            <atom:updated>2026-04-23T07:46:03.536Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Building a Production Mobile App with 5 AI Agents — Part 1: The Architecture</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iDf_FT0kaC3FgKud2jCH3g.png" /><figcaption>Building Mobile App with 5 AI Agents</figcaption></figure><h3><strong>The insight no competitor noticed</strong></h3><p>I was building a practice app for the Australian Citizenship Test. Before writing a single line of code, I had a research agent crawl App Store listings, read reviews, and test every competing app.</p><p>It came back with something I didn’t expect: <strong>every competitor app gets the pass/fail rule wrong.</strong></p><p>The Australian Citizenship Test has a dual threshold: you need 75% overall (15 out of 20 questions) AND you need to answer all 5 Australian Values questions correctly. Fail any single values question and you fail the test — even with an overall score of 18/20.</p><p>Most competitor apps don’t enforce this at all — the most popular ones either ignore the rule entirely or mention it in their store description without building it into the mock test scoring. Even apps that describe the rule in their listing are documented by their own reviewers as being weak on values content in practice.</p><p>That gap — surfaced by an AI research agent, not by me reading the legislation — became the app’s core differentiator. It’s also the best argument I have for treating research as a dedicated phase, not something you squeeze in at the start of an implementation session.</p><h3><strong>What we built</strong></h3><p><strong>AU Citizenship </strong>is a free iOS and Android practice app for the Australian Citizenship Test:</p><ul><li>431 practice questions across 4 categories</li><li>77 Australian Values questions with the correct dual-threshold pass/fail rule enforced</li><li>7 screens: Home, Test, Results, Review, Study Mode, Progress, Settings</li><li>Free tier with AdMob ads, plus AU$9.99 one-time Premium IAP</li><li>Built with Expo React Native, SQLite, react-native-google-mobile-ads, react-native-iap</li></ul><p>The whole thing was built by 5 specialist AI agents using Claude Code.</p><h3><strong>Why 5 agents instead of one</strong></h3><p>The obvious approach: open a single Claude Code session and say “build me a citizenship practice app.” I’ve done that before. You get something that looks like an app — but with shallow research, a thin content layer, and no release automation.</p><p>The problem with one agent doing everything is the same problem with one developer doing everything: context collapse. The more a session knows about implementation details, the less it focuses on getting the data right. The more it’s optimising iOS build settings, the less it’s thinking about QA coverage.</p><p>Specialist agents fix this. Each agent has a single job, a defined toolset, and a clear output contract. It doesn’t know what the other agents are doing. It reads its input files and produces its output files.</p><p>Here are the five:</p><pre>Research Agent  ──────────────────────────────┐<br>                                               │<br>Data Agent  ──────────────────────────────────┤──▶  Implementation Agent<br>                                                              │<br>                                                              ▼<br>                                                        QA Agent<br>                                                              │<br>                                                              ▼<br>                                                   Release Engineer</pre><p><strong>Research Agent</strong></p><p><strong>Input:</strong> web search, App Store, competitor apps</p><p><strong>Output:</strong> `docs/product-strategy.md`</p><p>Runs first, before any code exists. Its job is context: what are competitors building, what are users complaining about in reviews, what does the exam actually require, what’s the right monetization model for this category.</p><p>This is where the values gate finding came from. The agent found it across App Store reviews — users frustrated that they failed the real test despite high practice scores. The actual rule was in the legislation. The agent connected the dots. That finding directly shaped the product: the values badge on every test question, the dedicated fail state, the “Australian Values” focus in store listings.</p><p><strong>Data Agent</strong></p><p><strong>Input:</strong> official “Our Common Bond” PDF, government practice test page, publicly available citizenship practice sites</p><p><strong>Output:</strong> `data/questions.json` (431 questions)</p><p>The hardest agent to get right. It ingests the official government PDF, generates multiple-choice questions from it, crawls supplementary sources for additional questions, enriches everything to a consistent 4-option format, and validates each answer back against the PDF.</p><p>Each question carries its provenance:</p><pre>{<br>  &quot;id&quot;: &quot;q001&quot;,<br>  &quot;category&quot;: &quot;australian_values&quot;,<br>  &quot;is_values_question&quot;: true,<br>  &quot;question&quot;: &quot;…&quot;,<br>  &quot;options&quot;: [&quot;…&quot;, &quot;…&quot;, &quot;…&quot;, &quot;…&quot;],<br>  &quot;correct&quot;: 0,<br>  &quot;explanation&quot;: &quot;…&quot;,<br>  &quot;source_type&quot;: &quot;generated&quot;,<br>  &quot;source_page&quot;: 14<br>}</pre><p>More on the data pipeline in Part 2.</p><p><strong>Implementation Agent</strong></p><p><strong>Input:</strong> `docs/product-strategy.md`, `data/questions.json`</p><p><strong>Output:</strong> full Expo React Native app</p><p>Builds the app. Owns the full codebase. Makes architecture decisions, runs the iOS Simulator via XcodeBuildMCP, inspects the SQLite database directly to verify question seeding, commits at each milestone.</p><p>Importantly: it doesn’t revisit the research or question bank. It trusts those input files as settled contracts.</p><p><strong>QA Agent</strong></p><p><strong>Input:</strong> built app, `data/questions.json`</p><p><strong>Output:</strong> `docs/qa-report.md` with sign-off checklist</p><p>Does not write code. Only reviews and tests. Runs automated UI test flows for the complete test experience — including deliberately failing the values gate while passing overall — validates question bank accuracy using a custom `citizenship-qa-validate` skill, and checks IAP sandbox flows.</p><p>The “agent that writes the code never reviews it” rule matters here. The QA agent caught a tagging error that the data agent introduced: 20 values questions were flagged `is_values_question: false`. The implementation agent had built and shipped around that bug without noticing. The QA agent found it on first pass.</p><p><strong>Release Engineer</strong></p><p><strong>Input:</strong> `docs/qa-report.md` (signed off), built app</p><p><strong>Output:</strong> production `.ipa` and `.aab`, store submissions</p><p>Handles EAS Build, generates App Store Optimised listing copy via a custom `app-store-aso` skill, and submits to both platforms. It doesn’t touch the codebase; it ships what QA signed off on.</p><h3><strong>The design rule that makes it work</strong></h3><p>Agents in this system don’t call each other. They write files. The next agent reads files.</p><p>This sounds simple, but it’s the most important architectural decision in the whole project. File-based handoffs mean:</p><p><strong>Auditable.</strong> You can read `data/questions.json` and know exactly what the data agent produced before the implementation agent touched it. You can read `docs/qa-report.md` and know what QA approved before the release engineer ran `eas submit`.</p><p><strong>Restartable.</strong> If the implementation agent fails halfway through, you restart it with the same input files. No state is lost, no partial work is ambiguous.</p><p><strong>Clear contracts.</strong> Each agent’s input and output schema is defined upfront. The data agent doesn’t need to know how the app renders questions — it just needs to produce valid JSON. The release engineer doesn’t need to understand the codebase — it just needs the QA sign-off file to exist.</p><p>Compare this to chaining agents via function calls or shared memory: you get faster iteration but lose the audit trail and make failure recovery much harder. For a project with real IAP, real AdMob IDs, and App Store submissions, the audit trail was worth it.</p><h3><strong>What’s next</strong></h3><p><strong>Part 2</strong> covers the data pipeline: how the data agent turned an official government PDF and supplementary sources into a 431-question bank, the schema decisions that made the dual-threshold logic work, and the bug that slipped through an agent handoff — and why a specialist QA agent caught what the implementation agent missed.</p><p><strong>Part 3</strong> covers the release phase: four consecutive EAS build failures before the production Android build succeeded, an IAP library migration mid-project, and an honest accounting of where agents saved time versus where humans were still essential.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e33a90dd3315" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Three ways to aggregate microservices data for HK01 Newsfeed]]></title>
            <link>https://medium.com/hk01-tech/three-ways-to-aggregate-microservices-data-for-hk01-newsfeed-e9013ad81dde?source=rss-421384f4fc18------2</link>
            <guid isPermaLink="false">https://medium.com/p/e9013ad81dde</guid>
            <category><![CDATA[system-architecture]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[event-driven-architecture]]></category>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[aggregates]]></category>
            <dc:creator><![CDATA[Angus Tse]]></dc:creator>
            <pubDate>Mon, 23 Aug 2021 04:39:21 GMT</pubDate>
            <atom:updated>2021-08-23T04:39:21.979Z</atom:updated>
            <content:encoded><![CDATA[<h4><a href="https://medium.com/@angus_t">Angus Tse</a>, Director of Engineering at HK01</h4><p>HK01 is a fast-growing Hong Kong digital media. It is the most popular Hong Kong digital media with five million monthly unique users, although the HK population is eight million. HK01 would like to extend the impacts in Hong Kong, transforming to Media+, providing lifestyles services to Hongkongers. We are introducing Lifestyles Services (Event Ticking, E-commerce .etc) to the AI-powered newsfeed, driving exposure to users. Since this newsfeed is the landing screen of the mobile App, a high scalability and reliability architecture are the primary concern.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/1*BQrRaspC-GHSSCjUJAY5wA.gif" /><figcaption>Lifestyle service 01Space on recommendation feed</figcaption></figure><h3>Option 1: Pull data from lifestyles services via API call.</h3><p>Using API calls to pull data from Lifestyles Services is the most straightforward method to achieve the integration. However, this solution may have scaling issues when spike traffic arrived. It is hard to guarantee downstream services scaling out/up on time. Lifestyles Services might be overloaded when requests spike came. Furthermore, a slow downstream lifestyles service may drag the throughput of the whole newsfeed. It is a so-called backpressure issue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*2LYohxuVX7NHP37LBchqiw.png" /><figcaption>Pull data from downstream via API calls</figcaption></figure><p>In this example, the Feed Service received 1000 requests per second (rps), but the downstream Service A response rate was just 800 rps, which means there is a 200 rps deficit. This deficit affects the user experience directly. End-users feel the mobile app loading speed is slow. It might drag the newsfeed throughput and cause the Feed Service (partial) outage in the worst case.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*k9QOzlUBa2mF6xDLdyutHw.png" /><figcaption>Backpressure drag the upstream throughput</figcaption></figure><p>Control, Buffering, and Dropping are general solutions for backpressure issues [<a href="https://medium.com/@jayphelps/backpressure-explained-the-flow-of-data-through-software-2350b3e77ce7">@jayphelps post</a>]. However, these are not good options in the HK01 recommendation feed since this will significantly affect the user experience. Instead, a separation of concerns (SoC) architecture for isolating the peak traffic should be a more desirable direction.</p><h3>Option 2: Push items to Feed service thru API</h3><p>Lifestyles Services push new item/item update to feed inbound API. The inbound API performs data validation and then enqueues the item. The feed item processor handles items from the queue and stores the data eventually. Moreover, the outbound API is responsible for the 1,000 requests per second independently.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YQ8_OrfuXMdpMvL3QiYaBw.png" /></figure><p>This approach isolated the traffic peak from other Lifestyles Services since there is no immediate dependency on them. Only the feed boundary needs to take care of the scaling and reliability issue for the peak traffic. Another upside is the standard inbound API facilitates new lifestyles integration, has a minimum dependency, and reduces development overheads. Alternatively, replacing the API call with a message queue also has the same advantages, but it isn’t easy to validate data with simple implementation.</p><h3>Option 3: Push + Pull approach with Event Notification</h3><p>The <a href="https://medium.com/hk01-tech/a-real-story-shifting-from-api-calls-to-event-notifications-f16ec06e4860">previous blog post </a>mentioned we had applied the Event Notification pattern for decoupling our services. The Push + Pull approach, the Event Notification pattern, broadcasts something that happened in services. Similar to Option 2, This approach isolated incoming requests, but it required Feed Service to subscribe to Lifestyles Services event and call their API. Development and test effort are needed on both sides when a new service would like to appear in the Media+ feed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hq7Mm9e7Ddbh7cY8JsvIUg.png" /></figure><p>Finally, we adopted Option 2, pushing items thru API for our Media+ newsfeed. This approach is separating the concerns and isolating the traffic. Simple integration thru standard restful API is a great advantage that reduces communication and development overhead.</p><p>Mostly, we don’t need rocket science or a tech stack to make stuff scalable. Rethinking the dependency, pull/push pattern, and eventual consistency are always your good friend.</p><p>Thanks for reading. If you enjoyed reading this article, feel free to support us by hitting the clap button 👏 and to help others finding this article. We are hiring, job descriptions can be found <a href="https://engineering-recruit.hk01.com/?utm_source=hk01techblog&amp;utm_medium=article_footer&amp;utm_campaign=eks-2-year">HERE</a>. You are welcome to drop me a message if further questions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e9013ad81dde" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hk01-tech/three-ways-to-aggregate-microservices-data-for-hk01-newsfeed-e9013ad81dde">Three ways to aggregate microservices data for HK01 Newsfeed</a> was originally published in <a href="https://medium.com/hk01-tech">HK01 Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A real story: shifting from API calls to Event Notifications]]></title>
            <link>https://medium.com/hk01-tech/a-real-story-shifting-from-api-calls-to-event-notifications-f16ec06e4860?source=rss-421384f4fc18------2</link>
            <guid isPermaLink="false">https://medium.com/p/f16ec06e4860</guid>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[hk01]]></category>
            <category><![CDATA[system-architecture]]></category>
            <category><![CDATA[event-notification]]></category>
            <dc:creator><![CDATA[Angus Tse]]></dc:creator>
            <pubDate>Tue, 12 Mar 2019 16:44:29 GMT</pubDate>
            <atom:updated>2019-03-12T16:44:29.671Z</atom:updated>
            <content:encoded><![CDATA[<p>Microservices system architectural pattern has been applied to HK01 two years ago since transforming HK01 from a media to a life platform. A number of businesses have been launch like user-generated content(撐場), Event Management, Ticketing Service, Payment Service, Eatojoy (e肚仔), Charity (01心意), membership point (會員積分）, coupon, running reward program (01齊跑). This architectural pattern is good for HK01 use cases, making business domains separated, loosely coupled so that to facilitate better scalability and maintainability. It enables automated build, test, and continuous delivery with minimal impact to other business domain.</p><p>“Rome wasn’t built in a day”. We haven’t tried to build ALL microservices foundation from day-1, but improving it gradually depends on our real needs. API callbacks (a.k.a webhook) had been used to handle system side effects previously. There was a big challenge that the dependency became more and more when adding new systems. Both implementation and maintenance effort grow exponentially. We found that it is extremely painful when we want to implement a membership point service.</p><blockquote>Use case: The service will grant certain points/coupon to a user if</blockquote><blockquote>A customer purchases an item from the eCommerce service.</blockquote><blockquote>or, she attends an event via our Event Management.</blockquote><blockquote>or she donates $n to a specific Charity.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/618/1*LlmreDrJV6jwz45PCkqvng.png" /><figcaption>Restful callback approach</figcaption></figure><p>There are drawbacks to using this approach,</p><ol><li>Both upstream and downstream required code changes.</li><li>Upstream and downstream systems with high deployment dependency</li><li>Upstream system performance will be affected if downstream systems response slow, or upstream required additional work to avoid backpressure issue.</li></ol><p>Thus, we found that migrating to an <strong>Event Notification </strong>architecture is more suitable as our business grew<strong>.</strong></p><h3>Event Notification</h3><blockquote>A system sends event messages to notify other systems of a change in its domain. [<a href="https://martinfowler.com/articles/201701-event-driven.html">Martin Fowler, What do you mean by “Event-Driven”?</a>]</blockquote><p>Event Notification allows a system to “announce” something happened in its business domain and other systems handle side effects by itself. This is a great idea to reduce systems coupling, the upstream system without any knowledge to downstream systems that means no webhook needed in this design. It required an Event Stream / Message broker for :</p><ul><li>upstream services to publish an event message</li><li>downstream systems to subscribe/consume the event message</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1014/1*NPiNxLnpZsEn6lekWDN15w.png" /><figcaption>Use case of event notification in HK01</figcaption></figure><p>With Event Notification, upstream services without any knowledge of Membership Point Services so that they can <strong>fire and forget</strong>. Downstream service, Point Service eventually grants points to end-consumer depends on its rules, logic, and loading. Downstream service throughputs and availability will not affect upstream services. Upstream services are not required any code change if stakeholders want to add a new grant point rules based on existing events. In HK01, we picked RabbitMQ and make use of the <a href="https://www.rabbitmq.com/tutorials/amqp-concepts.html#exchange-topic">Topic Exchange</a> model for Event stream and <a href="https://developers.google.com/protocol-buffers/docs/overview">Google ProtocolBuffers</a> for message schema.</p><h4>Summary</h4><p>Event Notification is good for handling side effects if eventual consistency is acceptable in your use case. Developers should confirm this with the product owner before applying this architectural pattern.</p><p>Thanks for reading. If you enjoyed reading this article, feel free to support us by hitting the clap button 👏 and to help others finding this article. We are hiring, job descriptions can be found <a href="https://engineering-recruit.hk01.com/?utm_source=hk01techblog&amp;utm_medium=article_footer&amp;utm_campaign=api-to-event-noti">HERE</a>. You are welcome to drop me a message if further questions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f16ec06e4860" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hk01-tech/a-real-story-shifting-from-api-calls-to-event-notifications-f16ec06e4860">A real story: shifting from API calls to Event Notifications</a> was originally published in <a href="https://medium.com/hk01-tech">HK01 Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HK01 Software Engineer Team Culture]]></title>
            <link>https://medium.com/hk01-tech/hk01-software-engineer-team-culture-da6e8db8d056?source=rss-421384f4fc18------2</link>
            <guid isPermaLink="false">https://medium.com/p/da6e8db8d056</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[hk-tech-companies]]></category>
            <category><![CDATA[team-culture]]></category>
            <dc:creator><![CDATA[Angus Tse]]></dc:creator>
            <pubDate>Tue, 01 Jan 2019 17:16:53 GMT</pubDate>
            <atom:updated>2019-01-03T08:28:37.309Z</atom:updated>
            <content:encoded><![CDATA[<h4>by Angus Tse, Director of Engineering</h4><p>“How’s HK01 Software Engineering team culture” is one of most frequently asked from interview candidates. It is hard to explain using simple words like “very agile”, “very flat hierarchy” and these descriptions are meaningless. I hope that this article is able to help you as well as all potential candidates to understand what HK01 engineering team culture is.</p><h4>Disciplinary and Autonomy</h4><p>We are growing from 10 to 60+ software engineers, and they are working in various domains &amp; teams including, but not limited to: Media, Advertising, eCommerce, Event Ticketing, Membership, Wallet, etc. Operating at such a scale, we need a clear and simple structure to make our work efficient and aligned.</p><p>Each team has a tech lead to ensure the team aligns with a set of general practices, for instance, holding daily stand/slack-up on time, reviewing SOP (standard operating procedures), upholding coding as well as git practices. Among ourselves, there is an internal community (i.e., a group of talents) which discusses and sets up a set of general practices. Teams may set up their own practices and contributes suggestions to the community. Of course, those suggestions may become a new practice. On top of the above, the tech leader is also responsible for making technical decisions, push products’ quality as well as the timeline, etc.</p><h4>Open minded and willing to help</h4><p>Coding &amp; reviewing pull requests (PR for short) are must in the development process. We believe that a rigid code review process not only can uphold good coding quality but can also cultivate an open-minded, helpful atmosphere. PR reviewers can be your team leaders, as well as your peers. The team leader only plays the role of the gatekeepers. Majority of the review process is on the peers. We believe that peer-coding review can facilitate team members to learn among themselves. This, in turns, improves everyone’s system design skills, aligns our code practices, and, last but not least, trains one’s coaching skills. Moreover, it improves the code maintainability and ownership.</p><p>On the other hand, we cultivate open communication through the use of public Slack channels. All engineers, or even managers, can jump in any conversations whenever an engineer raised any question in Slack channels. We believe an open mindset can make us growing fast.</p><h4>Learning and sharing</h4><p>“Having a learning mindset” is one of the core characters leading to a successful software engineer career, and we are a strong supporter of such a belief! Internal sharing is a good opportunity to reinforce one’s learning. Before a sharing session, the presenter has to self-challenge and to drill deep while preparing for the presentation. Volunteers are invited to have any discussion over the topic or even to develop a POC (proof-of-concept) after the sharing so as to reinforce your learning, and in turns put those newly-developed skills into the production environment. We have 50+ internal sharing sessions so far. Besides internal sharing, we actively contribute to local communities, including <a href="https://aws.amazon.com/summits/hongkong/">AWS summit HK</a>, <a href="https://www.gdghk.org/2018/10/01/gdg-devfest-hong-kong-2018/">GDGHK DevFest</a>, <a href="https://hkoscon.org/2018/">HKOSCon</a>, and <a href="http://pycon.hk/">PyConHK</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7yA0vaHyx4GCVCljgw0ndA@2x.jpeg" /></figure><h4>Continuous delivery with high quality</h4><p>We build an automated pipeline to run the tests and build process for each pull request. The specific slack channel will receive an alert if failed. Building a mobile app also automated with slack so that we can build and test smoothly. We keep pushing new features/improvements to production every two weeks so that making our consumer happy. As of now, HK01 App rating is 4.4+ stars on both iOS and Android app store.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JDMDo5XttgohwCYxnfBnqQ@2x.jpeg" /></figure><h4>Measure and learn from mistakes</h4><p>“We are human. We are not perfect”. We make mistakes from time to time no matter how carefully we planned our developments. We use incident reports, retrospectives, and transform the collected experiences into TODO items in order to mitigate the chances of having similar mistakes in the future. Tools such as Datadog, PagerDuty, ELK stack (or similar logging services) are applied to our production environment so as to facilitate software engineer to:</p><ul><li>analyze and spot potential issues ahead,</li><li>be notified when an incident happens, and</li><li>review the incident with adequate traces and to improve.</li></ul><p>Thanks for reading. If you enjoyed reading this article, feel free to support us by hitting the clap button 👏 and to help others finding this article. We are hiring, job descriptions can be found <a href="https://engineering-recruit.hk01.com/?utm_source=hk01techblog&amp;utm_medium=article_footer&amp;utm_campaign=hk01_sw_culture">HERE</a>. You are welcome to drop me an email at angustse@hk01.com if further questions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=da6e8db8d056" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hk01-tech/hk01-software-engineer-team-culture-da6e8db8d056">HK01 Software Engineer Team Culture</a> was originally published in <a href="https://medium.com/hk01-tech">HK01 Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[從哲學抽象到電腦程式設計]]></title>
            <link>https://medium.com/@angus_t/%E4%B8%8D%E8%A6%81%E5%B0%87%E4%B8%BB%E8%A7%80%E5%8D%B0%E8%B1%A1%E5%A5%97%E7%94%A8%E5%88%B0%E9%9B%BB%E8%85%A6%E7%A8%8B%E5%BC%8F%E8%A8%AD%E8%A8%88-fbe3de803c41?source=rss-421384f4fc18------2</link>
            <guid isPermaLink="false">https://medium.com/p/fbe3de803c41</guid>
            <category><![CDATA[系統設計]]></category>
            <category><![CDATA[抽象]]></category>
            <category><![CDATA[philosophy]]></category>
            <category><![CDATA[design-systems]]></category>
            <category><![CDATA[software-en]]></category>
            <dc:creator><![CDATA[Angus Tse]]></dc:creator>
            <pubDate>Sun, 16 Sep 2018 10:45:54 GMT</pubDate>
            <atom:updated>2018-09-21T02:21:46.963Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ofcmRm7rN0yO8cGq" /><figcaption>“programming language codes” by <a href="https://unsplash.com/@markusspiske?utm_source=medium&amp;utm_medium=referral">Markus Spiske</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>抽象化是哲學中常用的思考過程，使複雜度降低。抽象化往往將具體的細節保留成含糊、曖昧或無定義的樣子。哲學中，抽象化是一抽離客體的思考過程，而抽離的過程往往是需要不段的推演而不單靠物件的主觀印象。</p><blockquote>單純利用主觀印象把要處理問題抽象化，套用到電腦程式設計上，好可能會產生災難性後果。</blockquote><p>圖1：Tesla Model S 及 圖2：Land Rover Defender 為例，如果在以主觀印象把它們都「抽象化」為「汽車」可以嗎？</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/889/1*HKQI3n3F9O90lYSZTBBh4w.jpeg" /><figcaption>圖1：Tesla Model S (source: <a href="https://www.extremetech.com/extreme/148233-tesla-accuses-nyt-of-faking-a-model-s-road-test-big-oil-dollars-at-work">extremetech.com</a>)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BVEiENPB_74O9HC-gbpV_Q.jpeg" /><figcaption>圖2：Land Rover Defender (source:<a href="http://landrover.com/"> landrover.com</a>)</figcaption></figure><p>假設要處理的問題是「接載兩位朋友從香港市區A點到B點」，以上抽象是可以的。因為問題在某程度上被簡化了。如果問題變成「駕駛者只有類別1香港駕駛執照（私家車) 接載兩位朋友從香港市區A點到B點」 以上抽象化就不行了，因為 Defender 是柴油車，需要類別2的駕駛執照才可。</p><p>假如要處理的問題變成「接載兩位朋友從四川成都走318 國道川藏線到拉薩」這個「汽車」的 「抽象化」更加不可行了。318 國道崎嶇，沿路沒有太多充電，要找 supercharger 幾乎沒有可能。</p><p>Model S 和 Defender 這兩部雖然都是「汽車」，但它們有極多不同之處，它們能解決的問題各有不同。例如：Model S 是電驅、Defender 需要類別2香港駕駛執照、Model S可以全自動駕駛，Defender 是爛路能手等等。</p><p>抽象化思考雖然能使問題簡單化，但是利用主觀印象把問題抽象化，然後套用到電腦程式設計上是適得其反。在沒有該問題領域專家(Domain Expert) ，在沒有條理地分析具體細節及作出產品取捨決定前作出「系統抽象化」「系統共用」等論述實屬危險。</p><blockquote>要先了解要處理問題具體細節才能找出比較好及可擴展的系統設計。</blockquote><p>注：作者並非哲學和汽車專家，本文只想利想較貼近生活的例子指出對電腦系統抽象化設計時要注意的事項，歡迎指正。</p><p>參考：</p><ul><li><a href="https://books.google.com.hk/books?id=RKZCDwAAQBAJ&amp;lpg=PT85&amp;ots=H-oLyp_s95&amp;dq=%E5%93%B2%E5%AD%B8%20%E6%8A%BD%E8%B1%A1%E5%8C%96%20%E7%B3%BB%E7%B5%B1&amp;hl=zh-TW&amp;pg=PT83#v=onepage&amp;q=%E5%93%B2%E5%AD%B8%20%E6%8A%BD%E8%B1%A1%E5%8C%96%20%E7%B3%BB%E7%B5%B1&amp;f=false">馬克思主義哲學基本原理</a></li><li><a href="https://zh.m.wikipedia.org/zh-hk/%E6%8A%BD%E8%B1%A1%E5%8C%96">抽象化</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fbe3de803c41" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>