Lurker News
Hi HN

It also supports percentages, dates and variables.
I've been working on this alone for a few years now, so would love to get some feedback.

Comments (239) 97 threads

Show all comments

Showing thread 2 of 97

defrost3 replies#
Nice - I'll give it props for:

> 1 metre + 8 chain = 161.9344 m
> 1 tonne + 1 short ton = 1.90718474 t
> 1 tonne + 1 long ton = 2.0160469 t
and give it a pass for not supporting pre 1963 UK | US historic weights and measures .. that's getting into a pretty specific use case where Standards nerds like to have a clear display of what conversion factors are in play and what provenance those factors have.
Time Zone support (on your About ToDo) will be interesting, historic computations with daytime savings support will be a quagmnire :-)
The SHARE DOC URLs seem a bit long - something like "base64 full text of doc as an URL" I guess.
Will this hit a URL length limit if widespread use becomes a thing?
jq play : https://jqplay.org/s/f1r-BZ5xYd2
regex101 : https://regex101.com/r/OqojJl/1
do server side storage and doc hash .. which has issues of its own.

tonyonodi1 reply#
Well, I love this comment. And yes, time zone support terrifies me an order of magnitude more than anything else on the list.
defrost#
On the gnarly scale dealing with with pre-WGS84 paper maps from about the globe is arguably worse ..

there are so many reference ellipsoids and datums used in different parts of the world at different times .. and then there are the many variations on curved surface to flat map projections to deal with.
But yes - Time and date is an iceberg domain :-)

tonyonodi2 replies#
You're right, I'm using lz-string to compress the text before shoving it in the URL. This is definitely a necessary evil for the time being so I don't need a back end component to the app. But eventually I do want prettier URLs and collaborative editing if I can make that work without it bankrupting me or driving me insane.
simonz05#
Be aware URL field in browsers have a maximum number of characters they accept.
dunham#
For what it's worth, the typescript playground takes the exact same approach as you, placing a compressed (lz-string) copy of the text after the #code/ in a sharing url.
tonyonodi#
I am truly sorry
hcrisp1 reply#
I was disappointed it couldn't convert "1 furlong / 1 fortnight in mph", but this was successful:

> 14 furlongs / 2 weeks in mph [0.0052083333 mph]

tonyonodi#
That's a very enjoyable calculation!