DEV Community

zhihu wu profile picture

zhihu wu

404 bio not found

Joined Joined on 
Your Escape Function Is Correct. Your HTML Is Still Broken.

Your Escape Function Is Correct. Your HTML Is Still Broken.

Comments
2 min read
Your Backup Codes Are Weaker Than Your Passwords: Three Randomness Bugs You Can Measure

Your Backup Codes Are Weaker Than Your Passwords: Three Randomness Bugs You Can Measure

Comments
2 min read
A 9-Word Page Counts as 26: Where Your Word Count Actually Comes From

A 9-Word Page Counts as 26: Where Your Word Count Actually Comes From

Comments
2 min read
Case Conversion Is Not a Round Trip: ß, İ, and Strings That Change Length

Case Conversion Is Not a Round Trip: ß, İ, and Strings That Change Length

Comments
2 min read
Your Hex Converter Is Off by 4,095: Five Base-Conversion Traps

Your Hex Converter Is Off by 4,095: Five Base-Conversion Traps

Comments
2 min read
Your Image Compression Made the File 2.5x Bigger: 5 Numbers From One 6016px Photo

Your Image Compression Made the File 2.5x Bigger: 5 Numbers From One 6016px Photo

Comments
3 min read
The __proto__ Key in an API Response Is a Merge Bug Waiting to Happen

The __proto__ Key in an API Response Is a Merge Bug Waiting to Happen

Comments 1
2 min read
chmod 755 Is Not 'Read, Write, Execute': 5 Permission Traps

chmod 755 Is Not 'Read, Write, Execute': 5 Permission Traps

Comments
2 min read
btoa() Is Lying to You: Base64, Unicode, and the Mojibake in Your JWT

btoa() Is Lying to You: Base64, Unicode, and the Mojibake in Your JWT

Comments
2 min read
A 28-Character String Freezes Your Regex for 3.6 Seconds

A 28-Character String Freezes Your Regex for 3.6 Seconds

Comments
2 min read
Your Cache Key Has a Collision You Designed Yourself

Your Cache Key Has a Collision You Designed Yourself

Comments
2 min read
Four Decisions Your CSV Parser Makes Without Asking

Four Decisions Your CSV Parser Makes Without Asking

Comments
2 min read
Three Hex Color Bugs That Survive Code Review

Three Hex Color Bugs That Survive Code Review

Comments
2 min read
Your UUID Column Is 9x Bigger Than It Needs to Be

Your UUID Column Is 9x Bigger Than It Needs to Be

Comments
2 min read
Your String Length Is a Lie: Four Unicode Traps in Everyday Code

Your String Length Is a Lie: Four Unicode Traps in Everyday Code

Comments
2 min read
Your Amortization Loop Never Reaches Zero: 4 Bugs in Loan Math Code

Your Amortization Loop Never Reaches Zero: 4 Bugs in Loan Math Code

Comments
2 min read
Your Placeholder Text Is Lying to You: 4 Layout Bugs Lorem Ipsum Hides

Your Placeholder Text Is Lying to You: 4 Layout Bugs Lorem Ipsum Hides

Comments
2 min read
Four Ways a Git Diff Lies to You (and How to Catch Each)

Four Ways a Git Diff Lies to You (and How to Catch Each)

1
Comments
2 min read
Your Cron Job Runs at the Wrong Time (or Twice): Four Traps in Five Fields

Your Cron Job Runs at the Wrong Time (or Twice): Four Traps in Five Fields

Comments
2 min read
UUIDs That Look Identical Aren't: The Case, Braces, and Hyphen Trap

UUIDs That Look Identical Aren't: The Case, Braces, and Hyphen Trap

Comments
2 min read
Your Base64 Decoding Failed Because of Whitespace (and 3 Other Silent Traps)

Your Base64 Decoding Failed Because of Whitespace (and 3 Other Silent Traps)

Comments
2 min read
Your JWT Works Locally but 401s in Production - Check These 5 Things First

Your JWT Works Locally but 401s in Production - Check These 5 Things First

Comments
2 min read
Your Regex Works in Python but Breaks in JavaScript - Here's Why

Your Regex Works in Python but Breaks in JavaScript - Here's Why

Comments
2 min read
camelCase vs snake_case: The Naming Bug That Survives Code Review

camelCase vs snake_case: The Naming Bug That Survives Code Review

Comments
2 min read
Why Your Diff Shows Every Line Changed (And It's Not Your Code)

Why Your Diff Shows Every Line Changed (And It's Not Your Code)

2
Comments 1
2 min read
A Day Is Not 86400 Seconds: The DST Bug in Your Date Math

A Day Is Not 86400 Seconds: The DST Bug in Your Date Math

Comments
2 min read
Why the Same Markdown Renders Differently on GitHub, Dev.to, and Notion

Why the Same Markdown Renders Differently on GitHub, Dev.to, and Notion

Comments
2 min read
Your JWT Is Not Encrypted - Here's What's Actually Inside It

Your JWT Is Not Encrypted - Here's What's Actually Inside It

Comments
2 min read
Why Your Regex Returns true Then false on the Same Input

Why Your Regex Returns true Then false on the Same Input

Comments
2 min read
How Fast Can a GPU Crack Your Password? Let's Do the Math

How Fast Can a GPU Crack Your Password? Let's Do the Math

Comments
2 min read
The Contrast Ratio Bug Hiding in Your Color Palette

The Contrast Ratio Bug Hiding in Your Color Palette

Comments
2 min read
Unix Timestamps: The Seconds-vs-Milliseconds Bug That Wastes Hours

Unix Timestamps: The Seconds-vs-Milliseconds Bug That Wastes Hours

Comments
2 min read
5 Cron Gotchas That Silently Break Your Jobs (and How to Fix Them)

5 Cron Gotchas That Silently Break Your Jobs (and How to Fix Them)

Comments
2 min read
UUIDv7 vs UUIDv4: Why Time-Sortable IDs Are Winning (and When v4 Is Still Right)

UUIDv7 vs UUIDv4: Why Time-Sortable IDs Are Winning (and When v4 Is Still Right)

Comments
2 min read
Why Your JSON Won't Parse: 6 Invisible Character Traps (and How to Fix Them)

Why Your JSON Won't Parse: 6 Invisible Character Traps (and How to Fix Them)

Comments
2 min read
How to Compress Images for the Web Without Losing Quality

How to Compress Images for the Web Without Losing Quality

Comments
2 min read
Hashing vs Encryption vs Encoding: The Difference Every Developer Gets Wrong

Hashing vs Encryption vs Encoding: The Difference Every Developer Gets Wrong

Comments
2 min read
URL Encoding 101: Why %20 Isn't a Space (and When to Use encodeURIComponent)

URL Encoding 101: Why %20 Isn't a Space (and When to Use encodeURIComponent)

Comments
2 min read
How Many Pages Is 1000 Words? The 500/250 Rule Every Writer Should Know

How Many Pages Is 1000 Words? The 500/250 Rule Every Writer Should Know

Comments
2 min read
How Much House Can You Actually Afford? The 28/36 Rule, Explained

How Much House Can You Actually Afford? The 28/36 Rule, Explained

Comments
2 min read
How to Read a Diff Like a Developer (and Catch Bugs Before They Merge)

How to Read a Diff Like a Developer (and Catch Bugs Before They Merge)

Comments
2 min read
JSON vs XML in 2026: Why JSON Won (and Where XML Still Matters)

JSON vs XML in 2026: Why JSON Won (and Where XML Still Matters)

Comments
2 min read
Base64 Data URIs: When They Help and When They Hurt

Base64 Data URIs: When They Help and When They Hurt

Comments
2 min read
Password Entropy, Explained: Why Length Beats Complexity

Password Entropy, Explained: Why Length Beats Complexity

Comments
2 min read
15-Year vs 30-Year Mortgage: Do the Math Before You Sign

15-Year vs 30-Year Mortgage: Do the Math Before You Sign

Comments
2 min read
The 70% Rule: Finding the Sweet Spot for Web Image Compression

The 70% Rule: Finding the Sweet Spot for Web Image Compression

Comments
2 min read
HSL vs HEX: Why I Moved My Design Tokens to HSL

HSL vs HEX: Why I Moved My Design Tokens to HSL

Comments 1
2 min read
3 Markdown Mistakes I Fixed After Previewing My Drafts

3 Markdown Mistakes I Fixed After Previewing My Drafts

Comments
2 min read
5 Developer Writing Tasks That Need More Than Just a Word Count

5 Developer Writing Tasks That Need More Than Just a Word Count

Comments 1
2 min read
URL Encoding Demystified: encodeURIComponent vs encodeURI

URL Encoding Demystified: encodeURIComponent vs encodeURI

1
Comments 1
2 min read
Base64 Decoded: What Actually Happens When You Hit 'Encode'

Base64 Decoded: What Actually Happens When You Hit 'Encode'

Comments
2 min read
Cron Jobs in 2026: Docker, CI/CD, and Why Your Old crontab Tricks Still Work

Cron Jobs in 2026: Docker, CI/CD, and Why Your Old crontab Tricks Still Work

Comments
2 min read
3 Regex Patterns That Save Hours of Debugging

3 Regex Patterns That Save Hours of Debugging

Comments
2 min read
Stop Using 'password123': A Developer's Guide to Strong Passwords

Stop Using 'password123': A Developer's Guide to Strong Passwords

Comments
2 min read
5 Signs Your Regex Is Wrong (and How to Spot Them in Seconds)

5 Signs Your Regex Is Wrong (and How to Spot Them in Seconds)

1
Comments
3 min read
Stop Uploading Your Images to Random Servers: Compress Locally Instead

Stop Uploading Your Images to Random Servers: Compress Locally Instead

1
Comments
2 min read
Why UUIDs Belong in Every Developer's Toolbelt (Not Just Your Database)

Why UUIDs Belong in Every Developer's Toolbelt (Not Just Your Database)

Comments
2 min read
5 Markdown Tricks That Make Your README Stand Out

5 Markdown Tricks That Make Your README Stand Out

Comments
2 min read
3 Times You Need Base64 (and One Time You Definitely Don't)

3 Times You Need Base64 (and One Time You Definitely Don't)

Comments
2 min read
Your JSON Is Valid... Until It's Not: Common Parse Errors and How to Fix Them

Your JSON Is Valid... Until It's Not: Common Parse Errors and How to Fix Them

1
Comments
2 min read
loading...