---
title: "Comment by Tarun Sharma on \"How I Built a Fintech Front End from Scratch and What I’d Change Today\" | Hashnode"
description: "the discriminated-union transfer state is the right instinct, and the honest framing on near-real-time polling over pretending it's a stream is exactly the kind"
url: "https://hashnode.com/posts/built-a-fintech-front-end-from-scratch/6aa4f7ca97838e2fe715be7f/comment/6aa518cbe6859bf866b79eb7"
---

[Discussion](https://hashnode.com/posts/built-a-fintech-front-end-from-scratch/6aa4f7ca97838e2fe715be7f)

Comment [How I Built a Fintech Front End from Scratch and What I’d Change Today](https://hashnode.com/posts/built-a-fintech-front-end-from-scratch/6aa4f7ca97838e2fe715be7f)

[Sep 12](https://hashnode.com/posts/built-a-fintech-front-end-from-scratch/6aa4f7ca97838e2fe715be7f/comment/6aa518cbe6859bf866b79eb7)

the discriminated-union transfer state is the right instinct, and the honest framing on near-real-time polling over pretending it's a stream is exactly the kind of clarity that avoids a whole class of confused bug reports later. one thing I'd add to the money-as-floating-point section: even after moving to minor-unit integers, currency conversion/display formatting still needs its own decimal library at the boundary, Intl.NumberFormat is fine for display but silently reintroduces float rounding if you feed it a computed value instead of a stored one.
