Articles by Hugo Tanaka
Checklist before opening a PR: review your own diff
Reading your own diff before the pull request catches leftover debug code, out-of-scope files and unreviewed AI code. A checklist and the git commands to do it.
Unformatted SQL Is Technical Debt You Pay at Code Review
Poorly formatted SQL doesn't break anything — but it hides bugs, increases review time, and becomes a bad template. How to standardize without ceremony.
How to decode a JWT in JavaScript without a library
Read a JWT's header and payload with atob and TextDecoder, no dependencies. See why decoding in the browser is safe and why validating there is not.
Ready-to-use regex: email, phone, date, slug and hex color
Ready-to-use regular expressions for email, E.164 phone numbers, dates, ZIP codes, slugs and hex colors, with inputs that match, inputs that fail, and tests.
Base64 vs Hex: Difference, Size and When to Use Each
Hex doubles the size of your bytes; Base64 adds about 33%. See the difference, a size table for tokens and when to use each in logs, databases and URLs.
Large CSV in JavaScript: Convert to JSON Without Freezing
How to read a CSV of hundreds of MB in the browser with streams, a Web Worker or Papa Parse, without freezing the tab or splitting rows between chunks.
Hashing for Those Who Never Read the RFC: MD5, SHA-1, SHA-256
Each algorithm, its historical flaws, and when it still makes sense to use — without the heavy math.
How Much to Invest per Month to Reach $200,000 in 10 Years
The monthly amount needed for $200,000 in 10 years at 4%, 7% and 10% a year, with the formula, the right monthly rate and the effect of tax and inflation.
Advanced Markdown: tables, footnotes, and alerts
Aligned tables, footnotes, [!NOTE] alerts, task lists, details, and Mermaid on GitHub: syntax, examples, and where each feature actually works.