Sarah Hoffman
22 posts
Sentinel Diary #3: From Information to Action — When the Dashboard Learned to Think
Sentinel Diary #3: From Information to Action — When the Dashboard Learned to Think A vibe coding journey:…
Time-Series Databases vs. Relational Databases, What is the Difference
Introduction Many teams default to relational databases because they are familiar and versatile. For business systems, that choice…
Google Antigravity + MCP Servers: How to Connect GitHub and Push Code with Just a Prompt (Part…
Google Antigravity + MCP Servers: How to Connect GitHub and Push Code with Just a Prompt (Part 2)step…
Bridging the Gap — From Theory to Reality
Every phase of learning teaches us something new — but one realization keeps repeating itself: What we learn…
Zed – dubuggler not showing value on hover
I recently switched from vscode to zed code editor. it’s fantastic but there is one problem with it’s…
Readiness probe
Readiness probe ** — это **проверка “готово ли приложение принимать трафик”. Проще говоря: “Ты уже готов работать с…
COLORS: SABRI – Sold Myself For Love | A COLORS SHOW
SABRI – “Sold Myself For Love” on A COLORS SHOW Dutch-born singer-songwriter SABRI brings raw emotion and soulful…
KEXP: Waxahatchee – Evil Spawn (Live on KEXP)
Waxahatchee Rocks KEXP with “Evil Spawn” Live On August 11, 2025, Katie Crutchfield and her bandmates—Eliana Athayde, Liam…
From Prototype to Production: How Promptfoo and Vitest Made podcast-it Reliable
Introduction In my previous article, From Idea to Audio: Building the podcast-it Cloudflare Worker, I detailed how I…
ArkUI-X平台差异化
跨平台使用场景是一套ArkTS代码运行在多个终端设备上,如Android、iOS、OpenHarmony(含基于OpenHarmony发行的商业版,如HarmonyOS Next)。当不同平台业务逻辑不同,或使用了不支持跨平台的API,就需要根据平台不同进行一定代码差异化适配。当前仅支持在代码运行态进行差异化,接下来详细介绍场景及如何差异化适配。 使用场景 平台差异化适用于以下两种典型场景: 1.自身业务逻辑不同平台本来就有差异; 2.在OpenHarmony上调用了不支持跨平台的API,这就需要在OpenHarmony上仍然调用对应API,其他平台通过Bridge桥接机制进行差异化处理; 判断平台类型 可以通过let osName: string = deviceInfo.osFullName;获取对应OS名字,该接口已支持跨平台,不同平台上其返回值如下: OpenHarmony上,osName等于OpenHarmony-XXX Android上,osName等于Android XXX iOS上,osName等于iOS XXX 示例如下:…