QR codes are everywhere — menus, business cards, product packaging, conference badges. They're fast, readable by any smartphone, and carry a surprising amount of data. Here's how they actually work, and how to generate one without installing anything...
Splitting a bill at a restaurant sounds simple until you're tired, distracted, or just bad at mental arithmetic. A tip calculator removes the friction — and gets the math right every time.
The Basics: What You're Actually Calculating
A tip is a per...
Password security is often misunderstood. This guide covers what actually determines password strength, how entropy works, and best practices for both users and developers.
What makes a password strong?
Two factors dominate: length and randomness.
...
JSON Web Tokens JWTs are everywhere in modern authentication — but they're often used without a clear understanding of what they contain and what security guarantees they provide. Here's a practical breakdown.
What is a JWT?
A JWT is a compact, URL...
The ability to compare two versions of text and see exactly what changed is fundamental to software development. Here's how diff algorithms work, how to use them in code, and when a browser-based tool beats the command line.
What is a diff?
A diff ...
HTML entity encoding is one of the fundamental security practices in web development. It also solves practical problems with displaying special characters correctly. Here's a complete reference.
What is HTML entity encoding?
HTML entities are textu...
Word count and character count are two numbers writers track constantly — but for different reasons. Word count measures how much you've written; character count determines whether it fits. Here's a practical look at both, with the platform limits th...
Every language and platform has its own naming conventions. Getting them right matters for readability, tooling compatibility, and fitting in with existing codebases. Here's a complete reference.
The naming formats
camelCase: First word lowercase, ...
JavaScript minification reduces file size by removing unnecessary characters while preserving functionality. Here's how it works, what tools to use, and common misconceptions.
What minification does
Before:
javascript
// Calculate the factorial of ...
JSON Schema is the standard for describing and validating the structure of JSON data. It's used for API documentation, request/response validation, config file validation, and form validation. Here's a practical guide.
Why JSON Schema matters
Witho...
Embedding images as Base64 data URIs is one of those techniques that sounds complex but has straightforward use cases. Here's when it's the right approach, how to do it, and when to use regular image files instead.
What is a Base64 image?
A Base64 ...
Markdown is the closest thing to a universal documentation format. READMEs, wikis, blog posts, technical documentation — Markdown is the default choice. Here's a comprehensive reference for syntax, extensions, and conversion.
Core syntax quick refer...
Lorem ipsum is ubiquitous in web design and print. Every developer and designer has copied it countless times. Here's where it came from, why it's still used, and when you should use something else instead.
Where "Lorem ipsum" came from
The passage...
CSV and JSON are the two most common formats for structured data interchange. Here's how to convert between them correctly, with practical code for every language.
Why the conversion is needed
CSV Comma-Separated Values is the universal format for ...
Keyword density is one of the oldest SEO concepts, and also one of the most misunderstood. Here's what it actually measures, what the research says about optimal values, and how to use it as a diagnostic rather than a target.
What is keyword density...
If you have ever wondered whether your writing is too complex, or whether your documentation is actually readable, the Flesch-Kincaid readability formula has the answer. Here is what it measures, how to interpret the score, and what to do about it.
...
CSS gives you at least five ways to write the same colour. That is genuinely useful — each format fits a different workflow. Here is a practical breakdown of when to use HEX, RGB, HSL, and the newer formats, with real examples.
HEX #RRGGBB
The most...
CSS gradients let you create smooth colour transitions without a single image file. They're resolution-independent, fast to render, and configurable entirely in CSS. Here's a complete reference covering all three gradient types, common patterns, and ...
Text diffing is one of those tools you don't fully appreciate until you need it at 2am before a deployment. Then you need it desperately.
A diff shows you exactly what changed between two versions of text — nothing more, nothing less. Sounds simple....
Most SQL problems aren't about syntax. They're about habits. The same bad patterns show up in every codebase, written by developers who knew better but were in a hurry. Here are five to stop immediately.
1. Single-line queries
sql
SELECT u.id, u.na...