Slashdot Mirror


Draft Review of Java 7 "Measures and Units"

Jean-Marie Dautelle writes to inform us that the public review period ends on July 8 for JSR-275, "Measures and Units" Early Draft. The JSR-275 will be a major enhancement for Java 7 by providing "strong" typing (through class parameterization) and easy internationalization of Java programs, preventing conversion errors. The latest version 0.8 is available as a PDF. The reference implementation is provided by the JScience project under a BSD license."

3 of 220 comments (clear)

  1. Ugh... by Anonymous Coward · · Score: -1, Troll

    ...more bloat-ware "functionality".

    This sounds like something that was put in as a request by someone dealing with offshore work and who got shoddy code back...

    "Java developers who work with physical quantities (such as developers in the scientific, engineering, medical, and manufacturing domains) need to be able to handle measurements of these quantities in their programs."

    Really? No kidding? It's called a requirement.
    So we are adding functionality to give poor developers yet another crutch to lean on, catering to the stupid?

    "Inadequate models of physical measurements can lead to significant programmatic errors. In particular, the practice of modeling a measure as a simple number with no regard to the units it represents creates fragile code. Another developer or another part of the code may misinterpret the number as representing a different unit of measurement. For example, it may be unclear whether a person?s weight is expressed in pounds, kilograms, or stones."

    And it's Java's responsiblity to "fix" this problem?

    "Developers must either use inadequate models of measurements, or must create their own solutions. It is less than ideal for every developer to solve this problem. A common solution can be safer and can save development time for domain-specific work."

    So it's one-size-fits all? B.S.
    What happens when I have to interface Java with something else, a database, another language?

    If I've already solved these problems within my system, will I have to go back and change everything because someone changes a runtime setting?

  2. Re:i like this a lot by Anonymous Coward · · Score: -1, Troll
    Hi there, you might be wondering why your post is +0 Insightful. Let me break it down for you:

    seriously, how come this is the first that i've heard of this kind of idea? it's one of those where i wish i would have thought of it first. +5, insightful. Astute note that you've added to the conversation.

    i suspect MS will rip off this idea soon enough, so i will never have to go back to java programming ever again. at least, i hope so. -4, you work with Microsoft technologies. You've added nothing to the conversation except reveal that you are further propagating a terrible proprietary technology.

    it seems so obvious now. -1, hindsight is 20/20. Everything is obvious once you understand it.

    So you see, you could have easily scored a +4 insightful for the last two sentences. In any event, that evidence you are using C# and enjoy it is the final nail on your comment's coffin and it will come to rest at a +0 or even -1 shallow grave.
  3. How Cute by Anonymous Coward · · Score: -1, Troll

    How cute, the toy programming language edges slowly towards some sort of 'standardization' just after it released (partial) source code.

    Java is a great 'learning' language for kids / computer science students, teaching them the basics of OOP.

    Java is also great for making applets (read crapplets), and of course javascript based web pages.

    There may be MORE java jobs out there, but look at the salaries they are 'commanding', better to be a waiter.