The Artima Developer Community
Sponsored Link

Java Answers Forum
JSR 385 and Units of Measure - Unit or unitless code?

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Hans Weber

Posts: 1
Nickname: sikatuna
Registered: Apr, 2019

JSR 385 and Units of Measure - Unit or unitless code? Posted: Apr 15, 2019 3:30 AM
Reply to this message Reply
Advertisement
Hey people! Do you find yourself doing this in Java? Ever thought of a Units of Measure library like indriya?



static final double c = 1079252849;

static final double SPEED_OF_LIGHT = 1079252849;

static final double SPEED_OF_LIGHT_IN_KM_PER_H = 1079252849;



So there are about 3700 Unit of Measure (UoM) libraries on Github with around 586 of them active from previous research. I'm trying to figure out why the lack of adoption of these UoM libraries are a thing by interviewing scientists and developers.



Now I know surveys aren't allowed here but if you're willing to take one please message me to figure out why you would prefer to build your own UoM solution instead of using one available from the web.



I did however post this survey on other subreddits and a few perspectives were that some of these libraries suffer from being overcomplicated/unusable with too much templatized baggage and restrictive with their types (such as forcing quantities to be doubles, leading to possible loss of precision), costly to adopt with so much existing code/overhead to getting started, lack of social push for these libraries. And even laziness and unawareness of these libraries!



If you have any reasons why people don't usually consider UoM libraries in their solutions, feel free to post here or message me on the philosophy on having unit or unitless code.

Topic: to work in design view in netbeans Previous Topic   Next Topic Topic: Java OpenCV GetPixel SetPixel

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use