Dev.to WebDev 🛠 Dev 👁 2 📖 1 min read

Building a tiny currency converter that stays out of the way

Most currency converters online are heavier than the job they do: three ad slots, a cookie wall and a signup form for something a single multiplication could solve. I keep coming back to a small Danish converter, Valuta

Most currency converters online are heavier than the job they do: three ad slots, a cookie wall and a signup form for something a single multiplication could solve.

I keep coming back to a small Danish converter, ValutaTjek.dk, as a good example of the opposite approach. The whole flow is: pick the amount, pick two currencies, read the result. No account, no cookie maze, and it works the same on a phone as on a desktop.

A few things worth copying if you build something similar:

  • Show the answer immediately. Recalculate on input instead of waiting for a submit button. Users type a number and expect the result in the same breath.
  • Cache the popular pairs. A handful of currencies cover almost every visit. Shortcut buttons beat a 150-entry dropdown.
  • Say what the number is. A reference rate is not the rate a bank gives you. One short sentence about spread and fees avoids a lot of confusion.
  • Keep the payload small. A converter should load in one request and work on a slow mobile connection.

None of this is novel, and that is the point: the interesting engineering decision is usually what you leave out.

You can try the result at https://valutatjek.dk.

📰 Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.