Skip to content

Category

software development

Practical software engineering from a team lead: clean code, SOLID, refactoring, debugging, backend design and system architecture with Laravel and React.

Next.js Hydration Error: Causes and How to Fix It

10/20/2026

Next.js Hydration Error: Causes and How to Fix It

Seeing "Hydration failed because the initial UI does not match"? Learn why a Next.js hydration error happens and how to fix Date, window, localStorage, invalid HTML nesting and extension mismatches.

By Muhammad Wilayat Shah

Read
How to Get Structured JSON Output From an LLM Reliably

10/20/2026

How to Get Structured JSON Output From an LLM Reliably

Asking an LLM for JSON works in demos and breaks in production. Learn a four-layer approach with JSON schema mode, Zod or Laravel validation, a bounded repair retry and content checks that stop invented values.

By Muhammad Wilayat Shah

Read
How to Design Database Tables Before Writing Your Backend

10/19/2026

How to Design Database Tables Before Writing Your Backend

Your tables will outlive your controllers and your frontend. Learn a practical way to design database tables before writing backend code: start from entities and queries, then add keys, constraints, the right types and indexes.

By Muhammad Wilayat Shah

Read