Example Library

Good Code Bad Code

Study code review patterns through curated side-by-side examples.

HTML

10

Review structure, semantics, forms, and accessible document foundations.

CSS

10

Review layout, responsive styling, contrast, and maintainable selectors.

JavaScript

10

Review control flow, async behavior, naming, and side effects.

TypeScript

10

Review type narrowing, API boundaries, unions, and safer function shapes.

React

10

Review component boundaries, state, effects, and rendering decisions.

Next.js

10

Review App Router structure, server boundaries, data fetching, and route APIs.

Node.js

10

Review runtime boundaries, async I/O, HTTP lifecycle, logging, and process safety.

Express

10

Review app factories, routers, middleware order, validation, auth, and error handling.

SQL

10

Review schemas, queries, joins, indexes, transactions, migrations, and data safety.

Python

10

Review readable functions, data shapes, exceptions, typing, testability, and async boundaries.

PHP

10

Review strict types, request validation, output escaping, PDO queries, passwords, sessions, configuration, and template boundaries.

Java

10

Review null boundaries, immutability, value objects, exceptions, resources, generics, streams, concurrency, records, and service boundaries.

Git

10

Review status checks, staging, commits, branches, sync workflows, diffs, conflicts, history safety, ignores, and release tags.

FastAPI

10

Review routes, Pydantic models, dependencies, auth, async handlers, database sessions, and API tests.

Django

10

Review URL patterns, models, QuerySets, forms, views, CSRF, settings, transactions, and tests.

Go

10

Review packages, exported APIs, errors, context, interfaces, goroutines, cleanup, tests, and HTTP handlers.

Docker

10

Review build contexts, base images, cache layers, multi-stage builds, secrets, users, healthchecks, and Compose files.

Tailwind CSS

10

Review utility composition, responsive variants, states, theme tokens, dark mode, reuse boundaries, accessibility, and class conflicts.