ENGINEERING 55 upvotes 2022

How I built currency conversion tooltips

55 pts
Hacker News Signal
2022 · Shared by @nicbou
How I built currency conversion tooltips by @nicbou

Retrospective Overview & Key Insights

Distilled reflections, business mechanics, and tactical takeaways:

In this technical retrospective (2022), @nicbou shares practical architectural lessons learned from running, scaling, or migrating production software under lean constraints.

Core Principles for Independent Builders:
1
Defaulting to simpler architectures (such as monolithic frameworks, SQLite, or managed VPS) prevents early engineering bankruptcy.
2
Evaluating true compute and egress costs reveals that high cloud bills can often be slashed by 80%+ through judicious re-platforming.
3
Code you write at 2 AM as a solo engineer must be easy to debug six months later without complex microservice dependencies.
Community Debate Themes:

HN engineers debated the tradeoffs between cloud convenience and raw server economics, database indexing strategies, and resisting premature architectural complexity.

Community Discussions & Critical Reviews

Key perspectives, counter-arguments, and peer founder insights debated on Hacker News (13 total discussions):

NE @netsharc Peer Contributor
GC @gchq-7703 Peer Contributor
I want to cache a guide until it changes, but update the exchange rates every few hours.

We've found that NextJS's Incremental Static Regeneration[0] hits the sweet spot for when we have needed to do this. Specifying a regeneration time allows us to say 'this data can be at most X seconds old' but if thousands of users hit a URL at once only one request is made.

[0] https://nextjs.org/docs/basic-features/data-fetching/incremental-static-regeneration ↗

PH @philw_ Peer Contributor
I often have an unreliable internet connection on the U-Bahn, in hotels, in developing countries, and in Brandenburg

:D

It'd be nice to add a `tabindex` value and add a `:focus` part to the tooltip CSS to make it appear for users navigating via their keyboard rather than mouse. If you look up 'accessible tooltips' there might be a few other tips.

MA @MauranKilom Peer Contributor
I often have an unreliable internet connection on the U-Bahn, in hotels, in developing countries, and in Brandenburg.

Ouch, Brandenburg felt that one!

(Brandenburg is a federal state that is "known" for being quite rural and lacking all sorts of infrastructure...)

HISTORICAL ERA Pandemic Bubble (2020–2022)
COMMUNITY SCORE 55 points
TOTAL DISCUSSIONS 13 comments
TOPICS & TECH STACK: