• 当 GB18030 解码 UTF-8 时,你看到的可能不是乱码

    #TypeScript#Engineering#Encoding
    Chinese

    深入剖析 UTF-8 与 GB18030 编码空间的字节碰撞,揭示编码检测中“合法乱码”的迷局,并提出确定性门控 + 启发式确认的工程化方案。

  • Flutter Desktop Input Design — Where Does the Enter Key Actually Go?

    #Flutter#Dart#State Management#Design System

    From "pressing Enter does nothing" to "the numpad Enter still inserts a newline" — all these desktop input field pitfalls trace back to the same root cause: the Focus Chain. A deep dive into LogicalKeyboardKey, Shift+Enter semantics, and input history lifecycle.

  • Flutter Streaming UI: How the Typewriter Experience of AI Replies Is Built

    #Flutter#Dart#LLM#Performance#State Management

    The typewriter effect looks simple — characters appear one by one. But behind "skip without truncation" and "no data loss" lies a full set of engineering decisions. From SSE buffering to skip semantics to testing strategies.

  • Three Attempts to Refactor a Large Flutter State Class — and the Final Solution

    #Flutter#Dart#State Management#Refactoring#Engineering

    When an 800-line State class mixes contract trees, stage operations, and navigation — how do you safely split it? A complete refactoring journey from Mixin and part to Widget Composition.

  • Brand Ecosystem: Design Philosophy & Visual Contract

    #Design System#Theme#Engineering

    Elevate your theme into a design system with design philosophy, a visual contract, and a brand ecosystem.

  • Design System: DTCG Three-Layer Architecture & Dark/Light Variants

    #Design System#Theme#Engineering

    Use the DTCG design token standard to manage colors and build dark/light variants with visual weight parity.

  • Theme Engineering: From a Monolithic JSON to Modular YAML

    #VSCode#Theme#Engineering

    Refactor your monolithic theme JSON into modular YAML with a build script, and automate theme generation.

  • LLM Narrative Engines, Part 6: Runtime Loop and Branching

    #Go#LLM#Engineering

    You have a contract — now how do you bring it to life? Five-layer sandwich prompt, streaming full-width indentation, Mother-Child branching, memory extraction — building a complete runtime loop.

  • LLM Narrative Engines, Part 4: Parsing Rules and Interpolation

    #Go#DSL#LLM#Engineering

    How do you parse condition-action expressions? How does the {variable} interpolation syntax work? This post covers the last two pieces of the parsing layer — turning rules from text into executable structures.

  • LLM Narrative Engines, Part 3: Block Scanner and Line Numbers

    #Go#DSL#Engineering

    From format design to parser implementation — a handwritten block scanner that reports "line 12" instead of "position 246." Precise line number binding is the core value of a custom parser.

  • Per page
    itemsFound 24 documents