Notes
Notes on engineering, project work and business decisions, including lessons from practice and questions worth exploring.
Technical notes
Engineering practice, principles and design explorations.
An asynchronous request can hold a connection while waiting on something else. Short, independent read sessions help only when their transaction boundaries are correct.
- Python
- SQLAlchemy
- Async requests
- Connection pools
Separate viewport, logical canvas, model and bitmap coordinates to explain why a visible shape can become difficult to select after scrolling or scaling.
- Canvas
- Coordinate transforms
- Hit testing
- Cross-platform UI
One technical problem: deciding which asynchronous result still owns the UI. Handle repeated selections, refreshes, stale failures and teardown with request generations.
- Vue
- Async races
- AbortController
- State management
Analyze stable scroll anchors for chat history, including delayed images, concurrent incoming messages and the moment automatic correction should yield to the user.
- Chat UI
- Scroll anchors
- Dynamic height
- Interaction state
A focused approach to fixed-total editing: state invariants, neighboring compensation, invalid input and integer precision, illustrated with dimensions and applicable to allocations and layouts.
- TypeScript
- State modeling
- Invariants
- Numeric precision
A focused concurrency problem: replace local loading flags with atomic lease acquisition, ownership-aware renewal and safe release across devices.
- PostgreSQL
- Concurrency
- Leases
- AI agents
Analyze immutable assets, release manifests and old-page lifetimes when independently delivered components are loaded by a host application.
- Component libraries
- Static assets
- Releases
- Caching
A focused look at external dependencies: what external and peerDependencies mean, how ES and UMD resolve runtimes, and how to verify the intended Vue boundary.
- Vue 3
- Vite
- Component libraries
- Build tooling
Separate byte decoding, event framing and application updates when reading streamed AI responses. Chunk boundaries must not decide message meaning.
- SSE
- Streaming
- UTF-8
- Protocol parsing
Explore stable row identity and persistent drafts when editable rows are unmounted or recycled during scrolling, sorting and data refreshes.
- Virtualization
- Table editing
- State management
- Stable identity
A focused compatibility investigation: separate syntax, runtime APIs and Worker loading, then verify the same production assets in the actual host.
- WebView
- Compatibility
- PDF.js
- Worker
Separate page visibility, data synchronization and workflow advancement to reason about delayed messages, duplicate callbacks and stale actions in Mini Programs.
- uni-app
- Mini Programs
- WebView
- Lifecycle
A focused content-consistency problem: use Astro collections to share project facts across the homepage, archive, detail pages and A4 résumé without duplicating text.
- Astro
- Content modeling
- Static sites
- Print CSS
Business reflections
Notes on workflows, business rules and product decisions.
Examine the business agreement connecting a configuration, its price and order confirmation, without inventing industry-specific pricing rules.
- Business rules
- Quotations
- Change management
Distinguish work completion, customer confirmation, closure and reopening in a communication platform without assuming that a status button proves a service outcome.
- Support workflows
- Ticketing
- Business state
Explore the relationship between configuration access and delivery scope, and explain usable boundaries before users invest time in an unfinished flow.
- Business analysis
- Multi-step flows
- Feature availability