Good UX is not decoration — it's the difference between software people use and software they avoid. As a developer, knowing these principles makes you significantly more effective.
Hick's Law — reduce choices
More options create more friction. When a user has to choose between 12 options, they take longer and feel less satisfied than when they choose between 3.
Apply it: Reduce form fields to the minimum. Use sensible defaults. Hide advanced options behind a toggle.
Fitts's Law — size and distance matter
The time to click a target depends on its size and how far away it is. Small, distant buttons are hard to click — especially on mobile.
Apply it: Make primary actions large and easy to reach. On mobile, primary buttons should be in the bottom half of the screen, within thumb reach.
Feedback for every action
Users need to know their action worked. A form that submits silently feels broken even if it worked perfectly.
Apply it: Show loading states, success messages, and error messages for every user action. Never leave the user guessing.
Progressive disclosure
Show the most important information first. Reveal complexity only when the user needs it.
Apply it: Start with a simple form. Add an "Advanced options" toggle for power users.
Consistency is trust
Inconsistent interfaces make users feel uncertain. When a button looks different on every page, users cannot build a mental model.
Apply it: Use a design system or component library and stick to it.
Great UX comes from empathy — imagining the experience of a user who is in a hurry, on a phone, and doing three things at once.
Back to Blog