Slashdot Mirror


Judge to Oracle: A High Schooler Could Write rangeCheck

mikejuk writes with an update on the Oracle vs Google Trial. From the article: "One month into the Oracle v Google trial, Judge William Alsup has revealed that he has, and still does, write code. Will this affect the outcome? I think so! After trying to establish that the nine lines in rangeCheck that were copied saved Google time in getting Android to market the lawyer making the case is interrupted by the judge which indicates he at least does understand how straightforward it would be to program rangeCheck from scratch: 'rangeCheck! All it does is make sure the numbers you're inputting are within a range, and gives them some sort of exceptional treatment. That witness, when he said a high school student could do it — ' And the lawyer reveals he doesn't: 'I'm not an expert on Java — this is my second case on Java, but I'm not an expert, and I probably couldn't program that in six months.' Perhaps every judge should be a coding judge — it must make the law seem a lot simpler..." From yesterday; the Oracle lawyer was attempting to argue that Google profited by stealing rangeCheck since it allowed them to get to market faster than they would have had they wrote it from scratch. Groklaw, continuing its detailed coverage as always, has the motions filed today.

40 of 478 comments (clear)

  1. 5 Seconds by Githaron · · Score: 5, Funny

    From yesterday; the Oracle lawyer was attempting to argue that Google profited by stealing rangeCheck since it allowed them to get to market faster than they would have had they wrote it from scratch.

    Because 5 seconds make all the difference.

    1. Re:5 Seconds by SailorOrion · · Score: 5, Funny

      Well, if you are flying at orbital speeds because you have the nose up there, it's about 40km of difference...

    2. Re:5 Seconds by Anonymous Coward · · Score: 5, Funny

      5 seconds? I'd say 5-10 minutes. Searching for that algorithm probably would take a lot longer than coding it...

      ...you ARE aware who the defendant in this case is, right?

    3. Re:5 Seconds by shutdown+-p+now · · Score: 4, Informative

      More 7 minutes tryiung to figure out why the comparasion operators fucked up a block of what should be a plain text block. X-(

      You've used <tt> - it's not a "plain text block", it's a "monospaced span". It can still contain HTML formatting inside.

      Slashdot actually gives you the ability to conveniently format pieces of code and such - that's <ecode>. This treats any < and > as verbatim characters inside the element, except for those that make up its closing tag.

  2. Mistrial! by Hatta · · Score: 4, Insightful

    Obviously this competent, experienced jurist should have recused himself because of this conflict of interest.

    --
    Give me Classic Slashdot or give me death!
    1. Re:Mistrial! by gstoddart · · Score: 4, Insightful

      Knowing facts is a conflict of interest?

      If you're Oracle, and you're claiming that "checking if an integer is within a range is your super top secret IP that Google stole" it is. Their lawyer was outright saying this would be difficult to write.

      A judge with a working BS meter is never a good thing for the plaintiff -- I believe you missed the inherent sarcasm.

      --
      Lost at C:>. Found at C.
  3. 6 Months for Range Check?!?!?! by Gr33nJ3ll0 · · Score: 4, Insightful

    I think I'm beginning to understand why Oracle has chosen to sue, rather than innovate, they're idiots and lazy to boot! :)

    1. Re:6 Months for Range Check?!?!?! by medv4380 · · Score: 4, Funny

      So they have 1 of the Virtues of truly great programmers.

  4. Re:A high schooler? by Soilworker · · Score: 5, Insightful

    For those interested: (from http://news.ycombinator.com/item?id=3940683)

    From OpenJDK:
    private static void rangeCheck(int arrayLen, int fromIndex, int toIndex) {
                    if (fromIndex > toIndex)

                            throw new IllegalArgumentException("fromIndex(" + fromIndex +
                                                  ") > toIndex(" + toIndex+")");

                    if (fromIndex arrayLen)
                            throw new ArrayIndexOutOfBoundsException(toIndex);

            }
    From Google:
    private static void rangeCheck(int arrayLen, int fromIndex, int toIndex) {
                    if (fromIndex > toIndex)
                            throw new IllegalArgumentException("fromIndex(" + fromIndex +
                                                  ") > toIndex(" + toIndex+")");

                    if (fromIndex arrayLen)
                            throw new ArrayIndexOutOfBoundsException(toIndex);

            }
    }

  5. Re:A high schooler? by tpstigers · · Score: 4, Informative

    Here's a news flash for you: complete idiots can (and do) program. The ability to code is a piss poor measurement of intelligence.

  6. English as a second language summary? by Anonymous Coward · · Score: 5, Insightful

    Reading that summary made me feel like I was taking crazy pills. So many mixed tenses. Could someone clean that shit up for readability?

  7. Re:A high schooler? by MightyMartian · · Score: 5, Insightful

    Fore chrissakes, anyone who has been writing any degree of code for more than a few years has implemented a range check function, and whatever the language C, C++, Java, C#, BASIC, 80x86 assembler, they all basically look the same. If this is truly what Oracle's case boils down to, then they literally have nothing, and this comes out looking no different than what SCO's claims against Linux ended up being. It's fucking ludicrous. To claim that somehow a nine line range check function gave Google some vast market edge to my mind breaks credibility. I'm guessing this is pointing pretty heavily towards Oracle being handed their balls on a platter over this.

    --
    The world's burning. Moped Jesus spotted on I50. Details at 11.
  8. Re:A high schooler? by chill · · Score: 4, Funny

    And you wrote that comment without once referring to PHP. Bravo!

    --
    Learning HOW to think is more important than learning WHAT to think.
  9. Re:A high schooler? by Barbara,+not+Barbie · · Score: 5, Informative

    It is an exact 1:1 copy. Google is screwed.

    Of course it's an exact 1:1 copy - the guy who wrote it gave it to both Sun AND Android. And if you've been following the trial, Sun never registered a copyright on that specific function.

    Oracle is *SO* screwed.

    --
    Let's call it what it is, Anti-Social Media.
  10. Contest by Chemisor · · Score: 5, Funny

    Ok, let's have a contest. Gather a bunch of high schoolers who have some idea how to program in Java, give them the spec for rangeCheck, and see how long it takes them to write it. The winner takes the prize equal to the damages Oracle is asking for. Bonus points if completed in less than 15 minutes.

  11. Re:A high schooler? by bistromath007 · · Score: 5, Insightful

    No. Not even a little.

    If the judge's statement is even a half-truth, the code in question checks a number, and passes it somewhere if it's a good number.

    That is what all goddamn code does. A dumb American high schooler could accomplish that in about twenty minutes if you refused to let them leave until they did, because if you aren't doing that, you haven't written a program! A seven year old could probably do it faster; they haven't "learned" yet that they're dumb.

    The lawyer is a disingenuous jackass who assumed that the judge, like him, would see a piece of code and assume it's an arcane fucking ritual without even trying to parse it. He deserves derision.

  12. Re:A high schooler? by Anonymous Coward · · Score: 4, Funny

    You idiot! You just caused $2.6bn of harm to Oracle!

  13. Re:A high schooler? by Anonymous Coward · · Score: 5, Insightful

    Not being able to write code doesn't mean you're stupid.

    However, equating them means you're ignorant and arrogant.

  14. Re:A high schooler? by betterunixthanunix · · Score: 4, Insightful

    The issue of whether or not an API can be copyrighted has nothing to do with whether or not the judge is a programmer. APIs can be complex, and a lot of design may go into an API (what patterns to expose to programmers, etc.). Some programmers would not even object to APIs being copyrightable; many people use proprietary languages that are implemented by a single vendor, and would not even be affected by such a ruling (unless they also use Java).

    --
    Palm trees and 8
  15. Misleading title -- Judge didn't say that! by mattdm · · Score: 4, Interesting

    Title says implies that the judge made the statement about the code being trivial. The judge makes no such claim -- instead, he says that a previous Google witness made that claim. This is a world of difference!

  16. Quite right by gweihir · · Score: 4, Insightful

    There is zero inventive value in that function. It is a completely standard approach that everybody writing containers has used hundreds of times.

    This Judge seems to get it.

    --
    Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
  17. "I probably couldn't program that in six months." by ibic00 · · Score: 5, Funny

    A truly exceptional lawyer.

  18. The juicy bits by RemyBR · · Score: 5, Informative

    For those of you who don't want to read all the transcript, this is what the judge said:

    Oracle: I think the law with respect to infringer's profits, rather than damages, only requires us to show that there was a product that contained infringing material and that the product produced revenue, and then the burden shifts to the other side. If I'm wrong about that, I still think it's possible to demonstrate a nexus by showing that speed was very important to Google in getting Android out, and by copying they accelerated that.

    Judge: We heard the testimony of Mr. Bloch. I couldn't have told you the first thing about Java before this problem. I have done, and still do, a significant amount of programming in other languages. I've written blocks of code like rangeCheck a hundred times before. I could do it, you could do it. The idea that someone would copy that when they could do it themselves just as fast, it was an accident. There's no way you could say that was speeding them along to the marketplace. You're one of the best lawyers in America, how could you even make that kind of argument?

    Oracle: I want to come back to rangeCheck.

    Judge: rangeCheck! All it does is make sure the numbers you're inputting are within a range, and gives them some sort of exceptional treatment. That witness, when he said a high school student could do it--

  19. Re:A high schooler? by CrimsonAvenger · · Score: 4, Informative

    Google did say that they copied it, but really, how else might one write it?

    Espically when you consider that the programmer who "copied it" for Google is the programmer who originally wrote it for Sun....

    --

    "I do not agree with what you say, but I will defend to the death your right to say it"
  20. Re:A high schooler? by WaywardGeek · · Score: 5, Insightful

    Oracle's lawyers are being brilliant at what most lawyers do well: make insanely stupid arguments in order to run their clock as long as possible. It's not about justice. It's about that new yacht Oracle's head lawyer is saving up for. Those nine lines of code might be worth only $20, but the lawyers are making a killing.

    --
    Celebrate failure, and then learn from it - Nolan Bushnell
  21. Re:A high schooler? by daniel78 · · Score: 5, Informative

    Google pretty much admitted it was copied - claiming it was accidental (the same guy wrote it for Oracle and later, Google). It has since been replaced. The jury - completely reasonably - found that it infringed. This is no longer in debate

    The question is whether it is worth anything.

    Google says no. Oracle's own expert witnesses said no. The judge - who has apparently revealed he is a programmer - says no. Oracle are arguing it's worth millions.

    Someone is desperate here, and its not Google

  22. No wonder Gore lost by srussia · · Score: 4, Funny

    That "Oracle lawyer" is none other than David Boies.

    --
    Set your phasers on "funky"!
  23. Re:A high schooler? by dan828 · · Score: 4, Insightful

    Having lived in a lot of places in the world, I can assure you that Americans are no stupider than people anywhere else.

  24. Re:then why didn't they write it by AngryDeuce · · Score: 5, Insightful

    Because to do it differently would be to make the code worse. Go to your local hardware store, and look at the hammers. Despite many different manufacturers, they all look and function basically the same. The reason why is because mankind worked out the most efficient hammer design a long time ago and there is nothing left to innovate there.

    Imagine how retarded competitor's hammers would have to be designed to get around a patent like the one Oracle is asserting here. This is why there is so much folly in patenting something so elementary, like 'slide to unlock', or a range check.

  25. that was far too kind by sribe · · Score: 4, Insightful

    It's well within the grasp of most middle schoolers, and it wouldn't take long to find an elementary school child who could write it ;-)

  26. Re:A high schooler? by Mike+Buddha · · Score: 4, Funny

    You sir, are incorrect. By copying this software that would have taken a lawyer 6 months to write, they were able to gain an unfair 32 seconds on the rightful coder Oracle.

    --
    by Mike Buddha -- Someday the mountain might get him, but the law never will.
  27. Re:A high schooler? by MightyMartian · · Score: 4, Informative

    J2ME is a pretty feature-limited version of Java. It certainly was never going to be suitable on the mid to high end smartphones. Pretty much every smartphone out there now is perfectly capable of running the full-blown JRE out of the box. In other words, with or without Dalvek, mobile Java editions are a fading proposition.

    --
    The world's burning. Moped Jesus spotted on I50. Details at 11.
  28. Re:A high schooler? by jbengt · · Score: 5, Informative

    SCO had the same lawyer.

  29. Re:A high schooler? by secret_squirrel_99 · · Score: 4, Interesting

    To tell you the true, this gives us a clear hint about Oracle's future.

    SCO did exactly the same thing in the past - but, honestly, I think SCO's lawyers did a better job.

    In what way? Oracle is the 2nd biggest software house on the planet, the clear leader in several verticals and makes and/or sells literally hundreds of products. Which of these things in even a remote way, describes SCO?

    --
    If privacy had a tombstone it would read "We did it for your own good" . -- John Twelve Hawks
  30. Re:Oracle is abusing the courts by spacepimp · · Score: 4, Insightful

    This case is about how Oracle can monetize Java. They spent 6 billion dollars on Sun and what Google is doing without direct compensation to Oracle devalues Java. This is the first step of many by Oracle to force profits from their purchase. Ellison is fairly adept at making money, and doesn't seem concerned about whether or not he is liked. This first case of making the Sun purchase pay for itself is not going in his favor currently.

  31. Oracle surrenders? by DragonWriter · · Score: 4, Informative

    Google pretty much admitted it was copied - claiming it was accidental (the same guy wrote it for Oracle and later, Google).

    Actually, its not the "the same guy wrote it for Oracle and later, Google". It wasn't written twice.

    Its that the Google employee who wrote it on his own time both included it in the Android source tree and contributed to to the OpenJDK (including the required copyright assignment.)

    The question is whether it is worth anything. Google says no. Oracle's own expert witnesses said no. The judge - who has apparently revealed he is a programmer - says no. Oracle are arguing it's worth millions.

    Actually, Oracle's pretty much given up on that, too. In a joint stipulation filed today, Oracle has agreed to waive both jury trial and its claim for actual damages and infringers profits on the copyright claims for which liability has already been found if the API SSO issue isn't resolved in its favor, and accept statutory damages for rangeCheck and the decompiled files.

  32. Re:A high schooler? by uncqual · · Score: 4, Funny

    Oracle being handed their balls on a platter over this.

    I have the feeling that the judge may even order them run though a meat grinder before returning them to Oracle on said platter.

    --
    Why is there an "insightful" mod and why isn't it "-1"? If I wanted insight, I wouldn't be reading /.
  33. Re:A high schooler? by hey! · · Score: 5, Interesting

    J2ME is a pretty feature-limited version of Java

    Well, having spent a number of years watching J2ME, I'd say the problem wasn't that J2ME was feature limited. I had things I could do even in MIDP that were quite useful, to say nothing of the Personal Basis Profile.

    As an early app developer, we had two concerns with J2ME: how to get our app in our users' hands, not getting tied to a particular carrier (and thus losing access to corporate customers who used different carriers) or even handset. You got your J2ME SDK from the handset vendor and the handset vendors were the mobile carriers' slaves. The same phone would have different capabilities on different carriers because they deleted features the carriers didn't want (for price positioning or because the features conflicted with the carriers' laughable ambitions to become content companies).

    When Apple came along with the iPhone, they did three important things. First, they didn't take any crap from the carrier (AT&T), they defined the product themselves. Second, they made it possible to run an app on any iOS device (originally just the iPhone, but later the iPod Touch too). Third, they had a simple mechanism for getting your app into the customer's hands. That made it possible to create a successful product for iOS in a way it had never been possible in J2ME.

    I believe the fact that it Apple made it easy to sell apps for iOS is what is responsible for the success of attracting developers to the platform early on. It wasn't some kind of Apple UI secret sauce, although touch screens standard was a big advance. J2ME could have been an entrenched mobile standard years before the iPhone came out, if Sun had only taken steps to create a market (not necessarily an app store) for developers to target.

    Then Android came along, and it was everything I'd ever hoped for: well thought out, robust, open source, feature-rich, vendor independent, even *app store* independent. But by then I was out of the business.

    --
    Post may contain irony: discontinue use if experiencing mood swings, nausea or elevated blood pressure.
  34. Re:The eight decompiled files by DragonWriter · · Score: 4, Funny

    So this guy's never heard of a the subtroutine concept?

    I've never heard of the subtroutine concept! What's that, when a bigger fish calls a smaller fish to perform a function required by the bigger fish?

  35. Doh! by ikedasquid · · Score: 4, Funny

    ummm...I wouldn't submit this for peer review just yet.