3 ms·
There are heaps of libraries for all languages because it is a fairly fun and straight forward project. I personally created this one because I was frustrated w
by dktoao 6y ago
There are heaps of libraries for all languages because it is a fairly fun and straight forward project. I personally created this one because I was frustrated with how slow and clunky the existing javascript libraries were:
https://github.com/GhostWrench/pqm https://github.com/GhostWrench/pqm
Also, I open sourced just the unit database (in JSON format) for anyone interested in making their own version:
https://github.com/GhostWrench/unitdb https://github.com/GhostWrench/unitdb
- maxnoe 6y ago> straight forward project. Assuming this is straightforward is as wrong as with calendars / time Systems.
- dktoao 6y agoWhat makes you say that? I suppose you could add as much complexity as you want with differentiating units from different standards and adding uncertainty in the unit definitions and on and on. But for 99% percent of users, just conversion factors and basic arithmetic operations are all that is needed. What application do you have in mind where this would fall short? In 15 years as an engineer I have not run into one.
- mmphosis 6y agoWhat day is it? Be conservative in what you send, be liberal in what you accept. leap years, leap seconds, julian dates, pre-gregorian dates, years beyond 9999, yyyy-mm-dd vs d/m/y vs month day year vs ..., zero padding, 12 hour vs 24 hour, 32 bit time stamps, DOS time accurate to every two seconds, why does excel need the date time in a specific format, I dual boot between Windows10 and Linux and every-time I boot up Windows10 the first thing I need to do is adjust the date time, pico-second granularity, time zones, daylight savings time, ... Today is Stability (4), Flint (Tijaax * Etznab) It's a good day to: Spend time in reflection and introspection.
- majewsky 6y agoWhat are you talking about? The topic is unit conversion, not datetime libraries.
- dktoao 6y agoDon't disagree that datetime libraries that are used to control computer networking are immensely complex. Never said they weren't. However: 1) That is not what we are talking about 2) Sometimes you just need a stopwatch, timing applications _can_ be simple
- dktoao 6y agoCommenting on my own thread because the window to edit has passed. What is up with the haters today? I share a useful open-source library with everyone that I spent a ton of time working on only to get crapped on by the know-it-all crew? Did you even click the link and read the github readme? This library is tested against NIST data! It also has 100% test coverage and support for corner cases like non-linear unit conversions like temperature. How does anyone enjoy participating in this community?
- yorwba 6y agoHN has a huge number of users, most of whom don't comment on any given topic. So I think it's best to not care too much what the handful of individuals who interact with you happen to think. I went to search through dang's comment history to see whether he's posted any statistics to make that "huge number of users" more precise, but instead I found this comment which explains it better than any statistics: https://news.ycombinator.com/item?id=18523361 https://news.ycombinator.com/item?id=18523361