Skip to content

Design

UI/UX Design Before Code: Flows, Wireframes and Prototypes So You Only Build It Once

When a business asks me for a website or an app, the temptation is to start coding straight away: it feels like the fastest route. In my experience it is the other way round, because every idea that changes after development costs days of work. In this article I explain how I design flows, wireframes and a clickable prototype before writing a single line, how I test it with a few people and what I hand over to whoever builds it.

  • Giuseppe Pinto
  • Published on
  • 7 min read

Why design before you code

A website or an app is a series of decisions: which pages you need, in what order people visit them, what happens when someone gets a field wrong, what they see while they wait. If those decisions are made while coding, every change of mind means taking things apart and rebuilding them.

Nielsen Norman Group, one of the most respected names in usability, puts it plainly: changing a prototype costs far less than changing code that already exists, and ripping up code is very expensive. The same article calls testing only the finished product a risky choice.

For a small business this matters even more: the budget is limited and so is the owner's time. It is better to find out on a sketch that the call button is hard to spot than to find out once the site is live and the phone stays quiet.

Hand-drawn wireframe on paper, with boxes for images and text

The design stages, from flow to prototype

Not every stage needs the same depth every time: for a brochure site with a few pages some take an afternoon, for an app with a members' area they take longer. Here is what you get from each one and which problems it saves you from.

  • User flows: a map of the main journeys, such as calling, booking, asking for a quote. Saves you from pointless pages and steps that lead nowhere.
  • Wireframes: the layout of each screen, without final colours or images. Saves you from arguing about looks before content and hierarchy are settled.
  • Clickable prototype: linked screens you can try like a real site. Saves you from finding navigation problems after development.
  • Components and states: buttons, forms and messages in every state (default, error, loading, empty). Saves you from forgotten cases the developer has to improvise at the last minute.

The clickable prototype and testing with a few users

A clickable prototype is a set of linked screens: you tap a button and move to the next screen, just like on the finished site, but with no code behind it. In Figma, the tool I use, screens are linked with connections and you can share a link to a single flow, which is handy for testing.

You do not need a lab. Nielsen Norman Group explains that 5 people uncover about 85% of usability problems, and recommends several small tests rather than one big one: three rounds of 5 people, fixing the design between rounds, beat a single test with 15. If your site serves very different audiences, such as private customers and companies, test 3 or 4 people per group.

In practice I ask a few real customers, or people like them, to complete a specific task, such as finding the opening hours or sending a request, and I watch without helping. Wherever they get stuck is what needs fixing.

Fidelity matters too. According to the same group, a low-fidelity prototype is quick to build and change, and people feel freer to criticise it; a high-fidelity one is more realistic and lets you test complete workflows. I usually start simple and add detail as decisions settle.

What a good design handoff contains

The handoff is the moment design passes to development. Done well, the developer has nothing to guess; done badly, every doubt turns into a question, a delay or a random choice. Even when I do both the design and the development, I prepare the handoff with the same care, because it becomes the project's documentation.

Figma has a mode built for developers, Dev Mode: it shows measurements, properties and code snippets, lets you add notes and mark screens as ready for development. The tool helps, but the designer decides what goes in. This is what should never be missing.

  • The prototype with the main flows, so it is clear how one screen leads to the next.
  • Screens for smartphone and desktop, with rules for the sizes in between.
  • Components in every state: default, hover, active, disabled, error, loading.
  • Colours, fonts, spacing and icons collected in one place, with clear names.
  • Final copy, including error and confirmation messages, in every planned language.
  • Notes on behaviour a drawing cannot show: what happens if sending fails, how many characters a field accepts, what someone sees before there is any data.
Hand sketching an interface on paper

Accessibility and design systems: think about them early

The W3C, the organisation that sets web standards, recommends considering accessibility from the earliest stages of a project and involving people with disabilities and older users. The benefits it lists include more effective solutions, better usability for everyone and more efficient development, with fewer rounds of rework. It also points out that involving users does not replace the WCAG guidelines; it works alongside them.

In design this means choosing readable contrast, text at a sensible size, tap targets that are big enough and forms with clear labels, before they become code that needs fixing.

With design systems, proportion matters. Nielsen Norman Group defines one as a complete set of standards with reusable components and patterns, but notes that with only a few screens the payoff looks small and that building a full system is not always worth it. For a small business website, a lean library is enough: a few colours, two fonts, buttons and form fields, always used the same way.

How I can help

I design interfaces before building them: flows, wireframes, a clickable prototype, components and states, then the code. For Tecnico Specialista I designed the site from scratch, with a sticky bar to call or message on WhatsApp always within thumb's reach, because the goal was to bring in requests from phones. For Studio Traccanella I created a digital identity from scratch, with brass tones on a dark background and the Literata and Manrope typefaces, settled in the design before development began.

If you are planning a new website or app and want to avoid building it twice, let's start from a prototype you can try with your own customers. Write to me from the banner below or from the contact form on the site.

Sources

References consulted for this article. Always check official sources before making decisions.

Desk with a laptop showing code

Development and design

A website, an app or an idea to bring to life?

Websites, apps, UI/UX design, automations and AI, code review, support and technical consulting.

Message me

Frequently asked questions

A wireframe is the static layout of a screen: where the heading, text, images and buttons go, without final visuals. A prototype links several screens and can be clicked, so you can try the journey as you would on a real site. You usually start with wireframes and then build the prototype.
Fewer than you might think. Nielsen Norman Group says 5 people uncover about 85% of problems and recommends several small tests, with fixes between rounds, instead of one large test. If you have very different audiences, test 3 or 4 people per group.
It adds a few days at the start, but usually gives them back with interest: decisions are already made, development runs without second thoughts, and problems found in testing are fixed on a drawing rather than in code.
A full design system, usually not. What it does need is a small, consistent library: colours, fonts, buttons and form fields defined once and always used the same way. It keeps the site tidy and easier to grow.

More articles you might like