Home Blog Engineering notes — Page 7 | Prarit Sidana Home Blog Projects Blog Thoughts, tutorials, and insights on development, technology, and more.
Media engineering React and TypeScript AI and retrieval Django backend Python automation DevOps and reliability Review React modal focus from opening through keyboard navigation and closing, including missing triggers and browser close events.
Connect form errors to React inputs with labels and descriptions, then review summary focus, keyboard recovery and server failures.
Plan optimistic task updates with scoped rollback, pending feedback and server reconciliation, including overlapping saves and timeouts.
Organize TanStack Query keys by workspace, list and detail so a successful mutation invalidates the cache entries it actually affects.
Model asynchronous UI with a TypeScript discriminated union, handle empty success, and distinguish runtime validation from static types.
Keep local row state attached to the right record when React lists reorder, and test stable IDs with sorting and deletion.
Use a stable record key to reset a React editor deliberately, while keeping unsaved-draft and background-refresh policies explicit.
Prevent stale React search responses with Effect cleanup and AbortController, then reproduce out-of-order results using a delayed local stub.
Compute a filtered React list during render, remove redundant state, and check how the list responds to new messages and filter changes.
A queued task disappears and the intended work is never revisited. Query overdue synthetic publish records and enqueue missing work using idempotent task handling.
Producers enqueue faster than available workers can finish. Use bounded synthetic batches and show a producer pausing when an explicit backlog threshold is reached.
Every job keeps calling a provider during a known outage. Demonstrate closed, open and half-open states against a local failing service.
1 2 3 4 5 6 7 8 9 10 11