Menu

A tide app is a correctness problem wearing a UI problem as a disguise
📰

A tide app is a correctness problem wearing a UI problem as a disguise

DEV Community: flutter·INNERLUXES·11 days ago
#J8ojWEU3
#devtoflutter#devto#dev#station#time
Long article (909 words) — no AI summary yet.
Reading 0:00
15s threshold

A tide prediction app presents about as little as an app can. A location, a date range, the height and time of high and low water, and the sun and moon events for the same dates. Nobody has ever been impressed by the screens. The interface is the least of it.

The predictions are not a forecast

This is the part that surprises people who have not built one. Tide heights are not fetched from a weather service. They are computed from harmonic constituents published for each station, which means the calculation is deterministic and can run entirely on the device with no network involved.

That sounds like a gift. Offline by default, no API bill, no rate limit. It is also the whole problem, because a deterministic calculation does not fail. It produces an answer. If the inputs or the frame of reference are wrong, it produces a wrong answer with total confidence and nothing in the log.

Two inputs decide whether the answer means anything

The vertical datum. A height of 1.4 metres is 1.4 metres above something.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.