Skip to content
16 articles

Code

16 technical articles and tutorials in the Code category

Code2026-10-21

px, rem, em: What Each CSS Unit Actually Answers, and How to Convert Without Surprises

The boundary between px, rem, and em (root-relative vs parent-relative), the px-to-rem formula and size table, the 62.5% trick's hidden costs, the Safari media-query rem trap, and browser minimum font size — with an online converter.

Read more
Code2026-10-10

Online CSS Minifier: Reduce CSS File Size for Better Performance

Learn how to minify CSS safely: whitespace, comments, hex shortening, zero-unit elision, calc protection, and UTF-8 byte savings — with an online tool you can use locally.

Read more
Code2026-09-13

Regex Not Matching? 6 Causes and Fixes (With Examples)

Regex not matching when it looks correct? Fix the 6 most common causes — greedy quantifiers, missing /g /i /m flags, unescaped special characters, lookaround direction, newline handling, and Unicode /u — with wrong-vs-right examples and a free online tester.

Read more
Code2026-09-07

How to Fix 'Hydration failed / Text content does not match' in Next.js

The complete guide to Next.js/React SSR hydration errors: why server and client renders diverge, the three usual suspects (timestamps, random values, localStorage), correct suppressHydrationWarning usage, and a ClientOnly pattern for browser-only widgets.

Read more
Code2026-09-07

How to Fix 'Cannot read properties of undefined (reading map)'

A complete debugging guide for the most common React runtime error: why undefined.map throws, handling async data correctly, optional chaining and default guards, empty-state rendering, and using our JSON tools to inspect the real payload.

Read more
Code2026-08-28

How to Convert JSON to Java Entity Class (with annotations and List nesting)

Got JSON API data and want the matching Java POJO? Learn JSON-to-Java type mapping and common annotations, and step-by-step how to generate serializable classes locally.

Read more
Code2026-08-28

How to Convert JSON to Go struct (with json tags and nested types)

Have a JSON API response and want the matching Go struct? Learn the JSON-to-Go type mapping rules and step-by-step how to generate code with json tags locally.

Read more
Code2026-07-26

HTML to JSX Guide: Attributes, Styles, Events, and Comments

Walk through HTML vs JSX differences—className, style objects, camelCase props, events, and comments—and migrate design/legacy snippets into React with an online converter.

Read more
Code2026-07-11

Online Regex Explainer: Visualize and Understand Regular Expressions

Learn how to parse and understand regular expressions — lazy quantifiers, lookarounds, named groups, Unicode properties, and how to pair an explainer with a tester.

Read more
Code2026-07-07

Online CSS Gradient Generator: Create Beautiful Background Gradients

Build linear, radial, and conic CSS gradients visually—custom angle, stop positions, opacity, and one-click copy of the background rule—plus syntax, palettes, and accessibility notes.

Read more
Code2026-06-25

Why Your Regex Isn't Matching: 6 Common Mistakes and How to Fix Them

Fix regex not matching issues fast. Covers greedy vs lazy, missing flags, unescaped chars, and 3 more common regular expression errors with code examples.

Read more
Code2026-06-01

Regex Cheat Sheet: 30 Most Common Patterns with Examples

Regex cheat sheet with 30 most common patterns. Covers character classes, anchors, quantifiers, lookaround, plus email, URL, phone, IP, date, and password validation with match and non-match examples.

Read more
Code2026-05-25

Online JavaScript Minifier: Reduce JS File Size for Faster Page Loads

Learn how to minify JavaScript to cut file size. Cover minification basics, this site's options (comments, console, size compare), and how they differ from Terser/esbuild in a build pipeline.

Read more
Code2026-05-18

Online HTML Minifier: Reduce HTML File Size for Faster Loading

Learn how to compress HTML to cut file size. Cover minification strategies, optional comment stripping and IE conditional comments, script/style/textarea boundaries, and char vs UTF-8 byte savings in an online tool.

Read more
Code2026-05-14

Online SQL Formatter: Beautify and Minify SQL Queries

Format and minify SQL by dialect (MySQL, PostgreSQL, SQLite, BigQuery). Diff-conscious layout, ORM log cleanup, and what a formatter will not fix. Pairs with CSV→SQL.

Read more
Code2026-05-07

Online Code Formatter: Beautify JavaScript, HTML, CSS, and SQL

Use a browser-local code formatter for JavaScript, HTML, CSS, and SQL — indent options, parse error line numbers, Format vs Minify size deltas, and how it splits work with IDE Prettier.

Read more