Programming
12 pages tagged across the site.
>> Blog
A bidirectional relationship (users know their rooms, rooms know their users) has to be updated under a single lock, or readers will catch it half-done.
Endpoint maps over hand-rolled methodsWhen a client library wraps ~25 near-identical HTTP endpoints, describing them as data instead of writing 25 methods pays off, with one real trade-off.
>> Opinions
A single catch-all exception forces every call site to over-handle. Two types in a hierarchy let each caller pick its own granularity.
Generic returns can be the right call for a library you maintain aloneTyped response structs are the default advice. For a one-person library wrapping a churny upstream API, `(any, error)` was the cheaper long-term choice.
>> Projects
A CLI that generates word-timed subtitles for any video and translates them into any language, using Whisper for transcription and a choice of GPT or Google Translate.
GoroomlibA thread-safe Go library providing a reusable Room-User architecture for real-time systems like chat and multiplayer games.
WazirX Go ConnectorAn open-source unofficial REST API client for the WazirX crypto exchange in Go, acknowledged by WazirX's co-founder.
WazirX Java ConnectorAn open-source unofficial REST/WebSocket client for the WazirX crypto exchange in Java, acknowledged by WazirX's co-founder.
Video TranslatorA local pipeline that dubs a video into another language in each speaker's own cloned voice: transcribe, translate, clone, fit the result to the original timing, and remux, all from one command.
TTS Study AssistantA Chrome extension for saving, organizing, and listening to notes from any webpage, backed by a Go/Fiber API and a React admin panel.
>> Open Source
Turned bugs found while hand-filing a real ITR-3 return into a reusable validator module and test suite for the project's e-filing JSON generator.
Patched OpenVoice for short-clip cloning and CPU inferenceRelaxed the minimum-segment-length check in se_extractor.py so sub-1.5s lines can be cloned, and made the pipeline run on CPU (Apple M1).