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.

478 comments

  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 ByOhTek · · Score: 3, Insightful

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

      --
      Self proclaimed typo king, and inventor of the bear destroying coffee table (patent not pending).
    3. Re:5 Seconds by Soilworker · · Score: 1, Redundant

      5 Seconds sound like the real thing: 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);

                      }
      }

    4. Re:5 Seconds by Githaron · · Score: 0

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

      That is a different problem domain which uses a different scale of time intensity.

    5. Re:5 Seconds by Githaron · · Score: 1

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

      True. Although, I was making the generous assumption that the "infringed" code was already pulled up.

    6. Re:5 Seconds by LiENUS · · Score: 1

      It looks like the lawyer is arguing it saved them a day or two and that since google is making $3 million a day on android that that is $6 million google wouldn't have had if they didn't steal rangeCheck. The judge then points out that as you say... it saved 5 seconds.

    7. Re:5 Seconds by Anonymous Coward · · Score: 0

      Because 5 seconds make all the difference.

      Try telling my girlfriend that

    8. 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?

    9. Re:5 Seconds by Anonymous Coward · · Score: 0

      4-5 = -1

      Poor, poor girl.

    10. Re:5 Seconds by Anonymous Coward · · Score: 1

      Thanks for the killing the joke, Githaron.

    11. Re:5 Seconds by idontgno · · Score: 1

      Wolfram Alpha tells me that $3 million a day is $34.72 per second. So, Google's copyright malfeasance scored them a market-leading edge of at least $173.60.

      Oracle's unjust loss must be made right! Oracle must be made whole!

      Too bad it's too small for a Kickstarter or something. Maybe an PayPal donation site?

      --
      Welcome to the Panopticon. Used to be a prison, now it's your home.
    12. Re:5 Seconds by 19thNervousBreakdown · · Score: 2

      Testing it on the other hand--that's the expensive part.

      --
      <xml><I><am><so><damn>Web 2.0</damn></so></am></I></xml>
    13. Re:5 Seconds by Lisias · · Score: 1

      5-10 minutes, including the bureaucratic work of doing it on a CMMI level process.


      boolean function rangeCheck(
                          const int value,
                          const int min,
                          const int max)
      {
                          return ( (min

      MARK. I took me less than a minute! ;-)

      --
      Lisias@Earth.SolarSystem.OrionArm.MilkyWay.Local.Virgo.Universe.org
    14. Re:5 Seconds by Lisias · · Score: 2


      boolean function rangeCheck(
                                              const int value,
                                              const int min,
                                              const int max)
      {
                                              return ( (min <= value) && (value >= value) )
      }

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

      (thanks, slashdot!)

      --
      Lisias@Earth.SolarSystem.OrionArm.MilkyWay.Local.Virgo.Universe.org
    15. Re:5 Seconds by Lisias · · Score: 1


      boolean function rangeCheck(
                                      const int value,
                                      const int min,
                                      const int max)
      {
                                    return ( (min <= value) && (value <= max) );
      }

      And an additional 3 minutes to figure out that the code I was writing in another window was typed here by mistake.

      So, yes - I give you that. 5 to 10 minutes. You're right. :-)

      Copyeur Und Pasteur : the most practiced software development process. :-P

      --
      Lisias@Earth.SolarSystem.OrionArm.MilkyWay.Local.Virgo.Universe.org
    16. Re:5 Seconds by grumpyman · · Score: 1

      FYI based on wiki numbers, Oracle generates about $1129 in revenue/second.

    17. Re:5 Seconds by Anonymous Coward · · Score: 0

      It's i, not -1. She's imaginary, after all.

    18. Re:5 Seconds by Nethemas+the+Great · · Score: 1

      I think it'd take longer to copy/paste than it would to just write it. Oracle should pay Google for time lost...

      --
      Two of my imaginary friends reproduced once ... with negative results.
    19. Re:5 Seconds by MightyMartian · · Score: 2

      I was thinking a bottle or a coupon drive, myself.

      --
      The world's burning. Moped Jesus spotted on I50. Details at 11.
    20. Re:5 Seconds by Anonymous Coward · · Score: 0

      Actually that is how it should be dealt with. Google, should be charged the percentage of value this added to their product. Take what their average coders would be payed for creating the rangeCheck method, let us be nice and say it took a coder a day to write this common text book method so $200, divide that by the total lines of code in Android and multiply it by the resulting total sales and derivative works sales; since Oracle says that it let them get to market quicker. So let us say it would be $200/1,000,000 lines of code * 6,000,000,000 total sales to date which equals $1,200,000. $1,200,000 would seem to be a fair and equitable for Oracle's actual loss. Given Google has removed this line from their current code and there seemed to be no malicious intent in its use, their should be no need for reoccurring license fees or additional penalties and this case can be over.

    21. Re:5 Seconds by Anonymous Coward · · Score: 0

      What testing could fathomably be needed?

      All it does is make sure the numbers you're inputting are within a range

      input x
      if x 10000 then goto badentry else goto goodentry

      If you can manage to screw that up to the point of it needing to be run through a test more rigorous than 're-read what you typed to check for a simple typo', then you're clearly doing it wrong.

    22. Re:5 Seconds by Dahamma · · Score: 1

      Except rangeCheck is a void that throws an exception. And "function" isn't even a Java keyword. Now go spend the next 10 minutes fixing it so it compiles :)

    23. Re:5 Seconds by Anonymous Coward · · Score: 0

      Don't you mean max ge value?

    24. Re:5 Seconds by Anonymous Coward · · Score: 0

      And Alsup basically told Oracle's lawyer that he was smoking crack- "You're one of the best lawyers in America. How could you even make that argument?"

    25. Re:5 Seconds by 19thNervousBreakdown · · Score: 3, Insightful

      If you go into testing not assuming you're doing it wrong, you're doing it wrong.

      --
      <xml><I><am><so><damn>Web 2.0</damn></so></am></I></xml>
    26. Re:5 Seconds by Anonymous Coward · · Score: 0

      No, let me Google that ... oh, wait.

    27. Re:5 Seconds by madhi19 · · Score: 1

      Hell at that price if I was stuck in the Jury box I wrote the check myself! loll

    28. Re:5 Seconds by ZombieBraintrust · · Score: 1

      Google is a buisness made up of many people. An employee of a vendor who had a contract with Google copied the code here. A vendor Google no longer uses. The code itself was quickly removed once it was found. Google never negotiated to buy rangecheck.

    29. Re:5 Seconds by StikyPad · · Score: 1

      Assuming you want a useful result, you probably want something closer to this: ( (min <= value) && (value <= max) ).

    30. Re:5 Seconds by Zaphod+The+42nd · · Score: 1

      Not to mention that all of that profit isn't due to early-to-market. The same sales would likely be made just the next day. The profits wouldn't be as nearly effected. You lose a few sales to people who decide to get a different phone, but pretty tiny numbers all together. Getting the product out the door a single day earlier (and we're talking about minutes saved here) makes very little cost difference, unless its a holiday or something.

      --
      GCS/MU/P d- s:- a-- C++++$ UL++ P+ L++ E+ W++ N o K- w--- O M+ V- PS+++ PE Y+ PGP t+ 5- X R++ tv+ b++ DI++ D++ G+ e++ h-
    31. Re:5 Seconds by Zaphod+The+42nd · · Score: 1

      For something expensive like a phone anyways, a one-time purchase you save up for and agree to a contract with. Its different for cheap goods.

      --
      GCS/MU/P d- s:- a-- C++++$ UL++ P+ L++ E+ W++ N o K- w--- O M+ V- PS+++ PE Y+ PGP t+ 5- X R++ tv+ b++ DI++ D++ G+ e++ h-
    32. Re:5 Seconds by Anonymous Coward · · Score: 0

      The do realize that paramiter checking is one of the first things taught to entry level software engineers at school. Heck I was doing it before I had any formal education. And even then, 9 lines of code checking paramiters could be more likely a coincidence than stolen/infringed code. There are only a handful of ways to check paramiters, and it's likely that googles coders just happened to figure out the same method suns coders did. Heck I'm sure even the typewriting monkey could figure it out fairly quickly. 9 lines isn't much, unless googles coders are truely incompident. Which given googles hiring practices is fatefull. Heck couldn't that small an amount be considered fair use anyway?

    33. Re:5 Seconds by Sulphur · · Score: 2

      boolean function rangeCheck(
                                                                      const int value,
                                                                      const int min,
                                                                      const int max)
      {
                                                                  return ( (min = value) && (value = max) );
      }

      If value is a constant, then the whole thing can be computed at compile time.

    34. 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.

    35. Re:5 Seconds by hairyfeet · · Score: 1

      Hell I'm not a big fan of Google, mainly because i don't care for their new privacy settings and how they will try to block those hooking into their stuff while at the same time whining that big content...try to block those hooking into their stuff but c'mon its a fricking rangecheck! Hell I haven't coded since the days of VB and even I know that a range check isn't exactly an earth shaking or novel idea and certainly isn't worth actually arguing a court case over. All you are doing is making sure an input falls between X and Y and if it is below X or above Y then you throw an error...that's it.

      If I was Oracle I'd be wanting to know WTF is this law firm doing with my money because this isn't even FUD, its JUST STUPID. Hell what is next, they gonna use the Chewbacca defense? I would think even a non coding judge when explained what this actually does would say 'They are arguing over....that? Seriously?". Frankly if THIS is all Oracle has to bring to the table not only should the case be dismissed as a waste of the court's time, but Oracle should be fined for even bringing this shit up as this is just as lame as the asshole that sued for a billion dollars because his pants got messed up at the dry cleaners.No, that actually isn't fair as at LEAST the guy did get his pants messed up, hell this may as well be them trying to claim subtraction as IP, it is THAT stupid.

      --
      ACs don't waste your time replying, your posts are never seen by me.
    36. Re:5 Seconds by theshowmecanuck · · Score: 1

      If they had to Google for the code they would take three weeks. They'd first have to wade through hundreds of thousands of web sites trying to sell them range extenders. "Range Extenders, your girlfriend will love our range extender! Try the viagra while you're here!"

      --
      -- I ignore anonymous replies to my comments and postings.
    37. Re:5 Seconds by auLucifer · · Score: 1

      Just to add a little more time, what if min is greater than max? Simple error that someone could come across by accidentally calling your rangeCheck putting the values in backwards

      --
      If I was witty I'd put something funny here but, as it stands, I am not and have just wasted seconds of your life
    38. Re:5 Seconds by auLucifer · · Score: 1

      Oh, it's to check an arrays bounds too so better make sure it fits those bounds

      --
      If I was witty I'd put something funny here but, as it stands, I am not and have just wasted seconds of your life
    39. Re:5 Seconds by Anonymous Coward · · Score: 0

      I think this function is vulnerable to a buffer overflow attack. In addition, it has memory leaks everywhere...

    40. Re:5 Seconds by Anonymous Coward · · Score: 0

      You're getting Bing and Google confusedhttp://lmgtfy.com/?q=range+check+algorithm+java&l=1/

    41. Re:5 Seconds by Chrisq · · Score: 0

      boolean function rangeCheck(
      const int value,
      const int min,
      const int max)
      {
      return ( (min = value) && (value = max) );
      }

      If value is a constant, then the whole thing can be computed at compile time.

      I think you have a problem with assignments to constants! Are you an Oracle plant trying to show that it is "not obvious"?

    42. Re:5 Seconds by coolsnowmen · · Score: 1

      I'm not sure if this is a coding joke I'm missing, but this is definitly not right. This probably won't even run.

    43. Re:5 Seconds by Anonymous Coward · · Score: 0

      Wow, a range check was stolen code? What crap. One could code it in-line as a function call, or even a macro.

      Imagine if the code was a binary search routine. That would really confuse an individual without a programming background.

      I am delighted that the judge programmed for pleasure or in his past.
       

    44. Re:5 Seconds by Lisias · · Score: 1

      I used [code], not [tt].

      I'll use [ecode] nowadays. Thanks!

      --
      Lisias@Earth.SolarSystem.OrionArm.MilkyWay.Local.Virgo.Universe.org
    45. Re:5 Seconds by Lisias · · Score: 1

      It was intentional.

      I'm not dumb, I don't want Oracle suing me!!!! X-)

      --
      Lisias@Earth.SolarSystem.OrionArm.MilkyWay.Local.Virgo.Universe.org
    46. Re:5 Seconds by Anonymous Coward · · Score: 0

      Integer overflow, not buffer overflow you ignorant boob!

      Exactly where are the memory leaks.

      Seriously, what happened to slashdot? Is this the home of morons now?

  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 h4rr4r · · Score: 1

      Knowing facts is a conflict of interest?

    2. 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. Re:Mistrial! by Bob+the+Super+Hamste · · Score: 2

      In the US court system yes. Actually knowing anything is probably a conflict of interest.

      --
      Time to offend someone
    4. Re:Mistrial! by zlives · · Score: 1

      what conflict of interest?

    5. Re:Mistrial! by idontgno · · Score: 2

      Competence and resistance to manipulation conflict with the interests of the plaintiff in winning the case even with a complete lack of legal validity.

      See also "I object on the basis that it makes me look bad!"

      --
      Welcome to the Panopticon. Used to be a prison, now it's your home.
    6. Re:Mistrial! by Anonymous Coward · · Score: 0

      It was the judge that said all this.

    7. Re:Mistrial! by Darinbob · · Score: 1

      In murder cases I'm pretty sure the judges know how knives work.

      One thing you should not do as a judge is ever take the word of a lawyer as truth. As you can see in this example Boies has a script to play and the judge is throwing a curve ball; Boies just keeps on with the script regardless and it seems like he's not even thinking about what he's saying. Thus the absurd notion that it would take him 6 months to write the same code. The long time to write code fits the plot of the story the lawyer is trying to tell and he seems to assume that the judge will accept this "fact"..

    8. Re:Mistrial! by Anonymous Coward · · Score: 0

      Wooooooooosh!

    9. Re:Mistrial! by Blindman · · Score: 1

      As strange as this may sound, Judges are supposed to use their experience but not their knowledge. Technically speaking, knowing computer programming may present a bias in this case. Taking an extreme example, a Judge shouldn't precede over a murder trial that he or she witnessed. Here, the Judge is basically saying, "I know difficult code. I have written difficult code. And, this sir, is not difficult code." Since, Oracle's argument depends in-part on the value of this code, the Judge has arguably decided that issue, which may come up if Oracle is not happy. I don't disagree with the Judge, but he is not supposed to be making these kinds of factual findings.

      --
      I don't practice what I preach because I'm not the kind of person that I'm preaching to.
    10. Re:Mistrial! by QuantumLeaper · · Score: 1

      So programming something isn't an experience? Everything anyone does gains knowledge though experiences. At least for me, knowledge and experience are the opposite sides of the same coin.

    11. Re:Mistrial! by Luckyo · · Score: 2

      You're taking the argument too far. Essentially by your standards a judge who did anything related to murder investigation could not preside over a murder case. A judge that ever sold a house could not preside over a real estate dispute. Etc.

      It's inane. Judge cannot preside over a case in which he has a significant interest over, such as a murder case he had to experience personally or witness. But not all murder cases in general.

      Same here. Judge who understands coding could and should preside over a case that has code-related disputes. He should not however preside over a case if he has coded anything actually disputed. A base experience in the case field is not only allowed, it's recommended for judges.

    12. Re:Mistrial! by TheLink · · Score: 1

      It may be the truth that it would take 6 months for Boies to write that code. But if he's a programmer and told his/her boss it would take 6 months or even 6 days to write that he should be sacked.

      From what I understand the code was copied but it was trivial. It's as if Ford sued Toyota for billions because someone used the exact same sensor to check whether a car door was fully shut or not, instead of reinventing a different one. Yes that could happen too, but it's still stupid.

      --
    13. Re:Mistrial! by elashish14 · · Score: 1

      Exactly what I thought when I read this. Don't all good lawyers simply prey on the uninformed judges and jurors? How could they possibly allow someone intelligent and reasonable to preside over this case? I don't understand the legal process so well, but if a juror said something like this, wouldn't a mistrial be pretty much automatic?

      On a side note, why can't all cases be presided over by judges who have an informed opinion on the subject at hand?

      --
      I have left slashdot and am now on Soylent News. FUCK YOU DICE.
    14. Re:Mistrial! by elashish14 · · Score: 1

      Knowing facts is a conflict of interest?

      Judging Oracle's lawyers' arguments, I'm sure they wouldn't hesitate to try....

      --
      I have left slashdot and am now on Soylent News. FUCK YOU DICE.
    15. Re:Mistrial! by dumbunny · · Score: 1

      Patent lawyers and judges often have an undergraduate degree in their field of specialization. It is implausible to have once earned a CS or related degree from a real university and then not be able to code something simple like the stated problem in few hours or days at most, perhaps equipped with reference guides for the language and / or editor. These are smart people with decent technical backgrounds. The judge isn't the anomaly; the patent lawyer who would take 6 months to code a simple problem is the anomoly.

    16. Re:Mistrial! by Anonymous Coward · · Score: 0

      The defendant's attorney... "When you are driving on a freeway, there's a minimum posted speed and a maximum posted speed. Is that difficult for the average driver to understand?"

    17. Re:Mistrial! by rtb61 · · Score: 1

      The judge's example really brought up an interesting point. How will human thinking alter as people are being introduced to computer coding and younger and younger ages. I saw one interesting example of how the simplest mathematics can be taught as computer programming. How will the nature of human thinking change when a more methodical computer programming approach to problem solving is taught at a much younger age. Rather than solving math problems from an early age you solve computer programming problems, so far best language for that Ruby. Normally you take a written problem, convert it to a math problem and then convert it to a programming program, when ideally you should just be translating a written problem into a programming problem.

      --
      Chaos - everything, everywhere, everywhen
    18. Re:Mistrial! by Anonymous Coward · · Score: 0

      Judges are supposed to use their experience but not their knowledge.

      "I have written difficult code."

      That's experience.

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

    Apparently, you are stupid enough to take a Judge's dismissive comment to the plantiffs as an absolutely specific assessment on the population's programming skills. Perhaps you are the moron here?

  4. Re:A high schooler? by Galestar · · Score: 2

    Pretty much this. Half the people on slashdot could have written it when they were in Elementary School.

    --
    AccountKiller
  5. Re:A high schooler? by ByOhTek · · Score: 1

    So was I, and I'm an American. Also, how old are you?

    Can you say everyone, or even the majority, of those in your country started programming at seven? What about in older age groups? ... No? How stupid are people in your country?

    If you don't need to, or aren't interested in it, not being able to program isn't a bad thing. There are reasons for the whole 'justice is blind [and ignorant]" in the US. In some cases, it certainly will bite us, but in others, it also helps because it prevents bias from preconceptions (which can be very wrong).

    --
    Self proclaimed typo king, and inventor of the bear destroying coffee table (patent not pending).
  6. 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.

    2. Re:6 Months for Range Check?!?!?! by Anonymous Coward · · Score: 0

      I don't know.

      They're actively ignoring a longstanding security issue, claiming massive legacy DB breakage, yet will be fixed in the newest release of Oracle DB; 12 I think. You could call that innovative marketing, suggesting people upgrade for security reasons, however I'm gonna go out on a limb here and call it bleghhhh.

    3. Re:6 Months for Range Check?!?!?! by Anonymous Coward · · Score: 0

      I think the lazy idiot might be the person who either didn't RTFS and understand that it was a lawyer speaking or thinks that Oracle get lawyers to write their software rather than software developers.

    4. Re:6 Months for Range Check?!?!?! by Anonymous Coward · · Score: 0

      I think that Oracle is neither lazy or ignorant. The are simply fierce competitors and are just as happy to buy market share or customers in the courtroom as in the boardroom or the lab.

    5. Re:6 Months for Range Check?!?!?! by Anonymous Coward · · Score: 0

      If only they were smart...

    6. Re:6 Months for Range Check?!?!?! by shutdown+-p+now · · Score: 1

      1 month to compute EROI and decide to implement it.
      1 month to sign off on the budget for the feature.
      1 month to write a functional spec.
      1 month to write a design spec.
      1 month to write a test spec.
      10 minutes to write the code.
      20 minutes to write the unit tests.
      1 month to get the lawyers to sign off on the code affirming that it doesn't infringe on any patents etc.

    7. Re:6 Months for Range Check?!?!?! by Anonymous Coward · · Score: 0

      I think you're confusing system admins with programmers... system admins should be lazy in order to automate/script as much as possible and therefore be able to get back to the latest episode of the Guild

    8. Re:6 Months for Range Check?!?!?! by Anonymous Coward · · Score: 0

      In case anybody's confused, the parent is referring to "lazy", not "idiot".

    9. Re:6 Months for Range Check?!?!?! by Anonymous Coward · · Score: 0

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

      And 1 of the Virtues of a .. normal? manager.

    10. Re:6 Months for Range Check?!?!?! by medv4380 · · Score: 1

      If only they were impatient, and full of hubris.
      Fixed that for you AC. Intelligence is not one of the virtues of a Truly Great Programmer.

    11. Re:6 Months for Range Check?!?!?! by Anonymous Coward · · Score: 0

      I am sure all of their employees are lazy and idiots. Legal Department != Engineering. Take your head out of your ass man.

  7. Faster by Murdoch5 · · Score: 1

    How much slower would it really have been, one day? Even less? rangeCheck from the sounds of it is a quick sit down, sip coffee, program it up and walk away method. I'm not sure that the act of copying it saved any amount of time that in the true sense of a marketing would matter. If they had copied a method which computed the inverse matrix of an image that then could be used to unlock a phone I would see the point.

    Calling rangeCheck into question is like bringing a student to court for using compair() in C, anyone could write it but it's so simple no one does.

    1. Re:Faster by Anonymous Coward · · Score: 0

      If they had copied a method which computed the inverse matrix of an image that then could be used to unlock a phone I would see the point.

      That can be done in an hour.

    2. Re:Faster by Anonymous Coward · · Score: 0

      for using compair() in C.

      What is this "compair" you speak of?

    3. Re:Faster by Anonymous Coward · · Score: 0

      Calling rangeCheck into question is like bringing a student to court for using compair() in C, anyone could write it but it's so simple no one does.

      Most people who try to use compair() in C can't spell.

    4. Re:Faster by ArhcAngel · · Score: 1

      He probably just wanted to avoid getting sued by Oracle for referencing it correctly.

      --
      "A person is smart. People are dumb, panicky dangerous animals and you know it." - K
    5. Re:Faster by Dekker3D · · Score: 1

      Personally, I don't even think I'd have to pause to think about it. Range checking becomes as natural to a programmer eventually as basic grammar becomes to most human beings.

    6. Re:Faster by Essellion · · Score: 1

      I actually think it would take longer to copy it than to make your own.

      And its so minimal that given the same variable names I can see multiple students in the same class coming up with the exact same function, except for spacing.

    7. Re:Faster by Hognoxious · · Score: 1

      A shit movie, with him with the long face in it?

      --
      Confucius say, "Find worm in apple - bad. Find half a worm - worse."
  8. 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);

            }
    }

  9. Finally! by Anonymous Coward · · Score: 1

    If all judges, lawyers, and legislators knew how to write maintainable code, the law would be much simpler.

    The refactoring sessions would be amazing.

    1. Re:Finally! by garyebickford · · Score: 1

      Law can be viewed as an attempt to impose/construct a partially-complete logical system for managing interpersonal conflict. Of course, the language in which it is written is rife with ambiguity and other issues. So in principle, lawyers (which includes pretty much all judges and at least 1/2 of legistlators IIRC) should be able to follow along pretty easily.

      Of course any attempt to impose a rational system (much less a logical one) on reality will suffer from Incompleteness.

      --
      It's easier to be a result of the past, but more fun to be a cause of the future! http://www.spacefinancegroup.com/
    2. Re:Finally! by spatley · · Score: 1

      hell I would be happy if software developers could write maintainable code!
      (ducks)

    3. Re:Finally! by hackula · · Score: 1

      I suppose we should start calling prisons "debuggers". We can say "Oh, just run him through the debugger and see if the system works out".

  10. And... by Anonymous Coward · · Score: 0

    The people rejoiced!

  11. 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.

  12. Re:A high schooler? by LocalH · · Score: 1, Informative

    Wow, fuck you dude. Just fuck you.

    --
    FC Closer
  13. Re:A high schooler? by FTWinston · · Score: 1

    Thanks, but slashcode ate your <

  14. Re:A high schooler? by zero.kalvin · · Score: 2

    Has nothing to do with age. I had my first PC when I was 16. First computer course in school was at 17 ( no programming just basic stuff ). I officially started coding during my second year of university, I was 19! But if I ever knew it existed when I was younger and had access to a PC I would have coded at that age. Some people simply don't have access or don't know!

  15. 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?

    1. Re:English as a second language summary? by MozeeToby · · Score: 2

      If I can't parse a sentence after three tries I give up.

      I gave up trying to read the summary... I suppose there's no sense in lamenting the state of the editing that (doesn't) get done on submissions though.

    2. Re:English as a second language summary? by Anonymous Coward · · Score: 1

      There is a range check function in both Java and Dalvik. They look more-or-less the same, because it's a three-line range check function.

      Oracle's lawyer says that the function would take six months to write, and Google plagiarized it.

      The judge points out that writing this is a five-minute task at most.

    3. Re:English as a second language summary? by Anonymous Coward · · Score: 0

      No problem.

      "They took our code!!!"

    4. Re:English as a second language summary? by MiniMike · · Score: 1

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

      Can't fix it. Oracle wrote an algorithm to check for proper tenses, and I don't want to risk getting sued for stealing it.

    5. Re:English as a second language summary? by Anonymous Coward · · Score: 0

      "Judge William Alsup revealed that he can write code, one month into the trial. Will this affect the outcome? I think so! The lawyer tried to claim that Google copied the nine lines in rangeCheck to get Android to market faster. But the judge interrupted him. The judge understands how straightforward it is 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 showed he didn't understand: '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..."

      (I didn't touch the Judge's or lawyer's quotes - assuming they _are_ quotes.)

      Yowee. You weren't kidding. That is not good English.

      BTW English protip, in general: "reveal" is a terrible verb, in modern usage. It means almost nothing. It's often passive, too. Avoid it.

    6. Re:English as a second language summary? by Anonymous Coward · · Score: 0

      BTW English protip, in general: "reveal" is a terrible verb, in modern usage. It means almost nothing. It's often passive, too. Avoid it.

      Why do English speakers (or is it an American thing?) hate the passive mode?

    7. Re:English as a second language summary? by Anonymous Coward · · Score: 0

      Yeah, seriously. This is the third time in the last week that I have encountered something written in english that was so garbled that it left me confused as to what the author was trying to communicate. When did this happen? Get off my lawn?

  16. If a lawyer reuses a document... by Anonymous Coward · · Score: 0

    A lawyer will likely handle similar cases over their career. In doing so, they will very likely reuse some of all of documents over and over. The initial version of these documents were created for a specific client. Is the lawyer stealing from his previous clients?

    The same thing could be said about a technical writer. If they write for multiple clients in the same domain, it is likely the intentionally or not, their work will share some sentences, paragraphs or more.

    I know that you don't sign a "work for hire" contract with your lawyer so they (as always) have the upper hand. But it does seem that in professions where writing in some form is part of the work output, it is very likely that remnants of previous work will show up in future work. Whether intentionally or not.

    1. Re:If a lawyer reuses a document... by Aryden · · Score: 1

      no because the lawyer maintains those documents as the creator of those documents unless they were obtained from someone.

    2. Re:If a lawyer reuses a document... by Anonymous Coward · · Score: 0

      I did say "I know that you don't sign a "work for hire" contract with your lawyer so they (as always) have the upper hand." which was intended to mean you don't sign a work for hire contract with them.

      Whether there is a legal document backing up a professional's ability to reuse or not, a human's knowledge base grows in their domain and reuse will just happen whether explicitly and consciously or just from memory.

      This particular case is clearly a cut and paste but every work by a person is not going to be without any similarity to their previous work.

  17. I'm going to patent i=0 by StillNeedMoreCoffee · · Score: 1, Informative

    In for loops, and anyone who uses it has to pay me lots of money. I'll let them use it and as soon as they start making money I'll show up at their door to collect their soul.

    1. Re:I'm going to patent i=0 by dkleinsc · · Score: 2

      Unfortunately, when you did that, you violated this patent, so all the proceeds of your patent have to go to those guys.

      --
      I am officially gone from /. Long live http://www.soylentnews.com/
    2. Re:I'm going to patent i=0 by tgd · · Score: 1

      In for loops, and anyone who uses it has to pay me lots of money. I'll let them use it and as soon as they start making money I'll show up at their door to collect their soul.

      Thankfully I always use "x" for my loops.

    3. Re:I'm going to patent i=0 by Anonymous Coward · · Score: 0

      But the method is the same. I work around that by setting i = 1 then i-- before my loop.

    4. Re:I'm going to patent i=0 by 19thNervousBreakdown · · Score: 1

      No no no, the real way to do it is i = i ^ i

      --
      <xml><I><am><so><damn>Web 2.0</damn></so></am></I></xml>
    5. Re:I'm going to patent i=0 by EdIII · · Score: 1

      You're both crazy. Fruit loops are the best loops period.

  18. Good News, Everyone! by 3vi1 · · Score: 1

    This is good news: Because obviously Oracle hired mentally challenged lawyers.

    Not only is what their lawyer said obvious hyperbole, but it is totally irrelevant. I don't care how much time it would take for a non-programmer to do it: how long does it take a real programmer to do it.

    The answer to that is of course on the order of seconds, since validating input is something every programmer has done thousands of times.

    1. Re:Good News, Everyone! by Bob+the+Super+Hamste · · Score: 1

      The answer to that is of course on the order of seconds, since validating input is something every programmer has done thousands of times.

      If only that were true. Yes it is trivial to implement but I have see so much code that doesn't even do the most basic input checking, as in do I even have a fucking value, that I just assume that programmers are really lazy.

      --
      Time to offend someone
    2. Re:Good News, Everyone! by nomadic · · Score: 1

      "Because obviously Oracle hired mentally challenged lawyers."

      Actually David Boies is considered one of the top trial lawyers in the country, and he certainly wasn't getting this grief on slashdot when he beat Microsoft during their anti-trust trial. I'm sure he asked someone at Oracle how long it would take to re-create the code and got a wrong answer.

    3. Re:Good News, Everyone! by Githaron · · Score: 1

      Actually David Boies is considered one of the top trial lawyers in the country, and he certainly wasn't getting this grief on slashdot when he beat Microsoft during their anti-trust trial. I'm sure he asked someone at Oracle how long it would take to re-create the code and got a wrong answer.

      A good lawyer would not only ask someone in the field how long it would have taken to write the function but also would have been smart enough not to argue it would take a long time to develop after being told contrary by said person. Ergo, this guy is not a good lawyer.

    4. Re:Good News, Everyone! by reve_etrange · · Score: 1
      Thus, the judge:

      You're one of the best lawyers in America, how could you even make that kind of argument?

      --
      .: Semper Absurda :.
    5. Re:Good News, Everyone! by farble1670 · · Score: 1

      This is good news: Because obviously Oracle hired mentally challenged lawyers.

      they aren't necessarily mentally challenged. they were told to sue and are making the best they can of an extremely weak case.

      it's not unthinkable that someone that has never seen code before would look at that function and agree with oracle's lawyers that it's something special. thank god that didn't happen.

    6. Re:Good News, Everyone! by nomadic · · Score: 1

      Why are you assuming he was told to the contrary? Programmers do lie on occasion.

    7. Re:Good News, Everyone! by Githaron · · Score: 1

      He only asked one programmer?

    8. Re:Good News, Everyone! by nomadic · · Score: 1

      I have no idea how many programmers he may or may not have asked, but it's entirely possible that the Oracle programmers were told en masse to tell him it would take two days to write this code.

  19. Computer access by betterunixthanunix · · Score: 1

    I did not even have access to a computer until I was 11; it is not always a question of stupidity. That being said, I am pretty sure that some time shortly after I started programming, I wrote a function like rangeCheck (although in C, so using return values instead of exceptions). This is not an issue of age; someone with two weeks of programming experience could have written that function.

    --
    Palm trees and 8
    1. Re:Computer access by MightyMartian · · Score: 1

      Absolutely. The only difference between one language to another would be exactly how you produce an informative fail. In C, as you say, you return some sort of failure code. In a lot of higher level languages you throw an exception. There is nothing in this code that is innovative or spectacular. It's the kind of range check function that programmers have been implementing for decades.

      --
      The world's burning. Moped Jesus spotted on I50. Details at 11.
    2. Re:Computer access by RabidReindeer · · Score: 0

      Absolutely. The only difference between one language to another would be exactly how you produce an informative fail. In C, as you say, you return some sort of failure code. In a lot of higher level languages you throw an exception. There is nothing in this code that is innovative or spectacular. It's the kind of range check function that programmers have been implementing for decades.

      Actually, even in C chances are you'd have thrown an exception or setjmp/longjmp. The only really distinct thing about this code was the format of the message.

      Other than that you might as well try to patent a basic "for (i = 0; i limit; i++)" loop. SLAP!

  20. 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.
  21. What does it matter by htnmmo · · Score: 3, Informative

    What does it matter how easy the code was to write? And if it was so easy why did google need to copy it?

    I tried to submit this over the weekend but it wasn't selected. http://www.wired.com/wiredenterprise/2012/05/google-oracle-decompile/

    "Judge William Alsup ruled that evidence presented during the trial had shown that Google infringed on Oracle’s copyrights by decompiling eight Java files and copying them in their entirety for use with Android."

    As someone who really likes Java and Google I don't like this lawsuit one bit.

    Sun created Java and mostly gave it away for free except for the mobile part which they were licensing to create revenue. Sun and Google couldn't come to terms regarding licensing and Google decided to just make it themselves.

    Sun didn't seem to care, or didn't have the money/will to fight it. Then comes Oracle.

    Please resolve this amicably soon. I don't like it when mommy and daddy fight.

    1. Re:What does it matter by Anonymous Coward · · Score: 1

      see http://news.ycombinator.com/item?id=3940683

      The person who originally submitted it to Java'sOpenJDK was working at google when he wrote it, and thought it was his to re-use for Android later! I'm not so sure that is not so, too.

    2. Re:What does it matter by betterunixthanunix · · Score: 2

      What does it matter how easy the code was to write?

      It matters in determining whether or not the copyright infringement in any way helped Google. Oracle is trying to claim that Google got to market faster because they copied the code; but if the code is so simple that it could be written as quickly as copied, that argument basically falls apart.

      And if it was so easy why did google need to copy it?

      I am not even convinced that Google copied those 9 lines. They do not do something particularly unique, and we are only talking about 9 lines -- 3 of which are generic things like braces. It would be pretty easy for a programmer who is adhering to Java conventions to produce identical lines of code without having seen those lines.

      Please resolve this amicably soon. I don't like it when mommy and daddy fight.

      Programming languages should not be ruled by mommy and daddy. You are asking for trouble when you use a programming language whose fate is left to the hands of industry titans.

      --
      Palm trees and 8
    3. Re:What does it matter by cpu6502 · · Score: 1

      Recently a judge ruled upto 10% copying of textbooks == fair use.
      Same here with code.

      --
      My AC stalker: " I personally agree with your posts most of the time, but that won't keep me from modding you troll"
    4. Re:What does it matter by Anonymous Coward · · Score: 0

      Actually Google did not decompile it, a subcontracter broke a contract and did so and put these test files into the google code. These test files were never delivered to the android phones.

    5. Re:What does it matter by codewarren · · Score: 1

      Google didn't copy it. Both Google's version and Sun's version were written by the same guy while employed at Google. He wrote it as part of timsort in java which he gave to sun, then reused it in Android.

    6. Re:What does it matter by htnmmo · · Score: 1

      I am not even convinced that Google copied those 9 lines.

      Then you might want to try reading at least the text of the link I posted if not the linked court documents themselves.

      And maybe this 9 lines of code don't seem like a big deal? What about the other hundreds of lines that were decompiled and copied? There's no story about that? This filing has some more information. http://docs.justia.com/cases/federal/district-courts/california/candce/3:2010cv03561/231846/1157/

      The most interesting point is if Bloch did work on the code for OpenJDK and also worked on Andriod code, doesn't that throw the whole "cleanroom implementation" out the window?

    7. Re:What does it matter by Anonymous Coward · · Score: 0

      They didn't copy rangeCheck. The guy worked for Oracle, then worked for Google, and wrote the same function. Is it even a little surprising that someone who wrote a simple rangeCheck function one way might write it the same way again?

    8. Re:What does it matter by betterunixthanunix · · Score: 1

      And maybe this 9 lines of code don't seem like a big deal?

      It is not; as everyone has pointed out, those nine lines of code check to see if a number is in a particular range, which is a routine and common programming task. We are also talking about nine lines of code here -- people writing nine identical lines of code is not something to even blink an eye over, especially when the nine lines are so simple. Maybe Bloch really did copy those nine lines, as opposed to just writing them from scratch; the point here is that Oracle argument about those nine lines is completely absurd.

      What about the other hundreds of lines that were decompiled and copied?

      467 lines of code that was found to have been decompiled. Android itself has over a million lines of code, so what you are talking to amounts to a small fraction of a percent of the total Android codebase. It is equally doubtful that those 467 lines of code accelerated the development of Anrdoid in any significant way, but I suppose Oracle is entitle to whatever damages the judge thinks are appropriate for this particular act of infringement.

      The most interesting point is if Bloch did work on the code for OpenJDK and also worked on Andriod code, doesn't that throw the whole "cleanroom implementation" out the window?

      Maybe, but so far Oracle has never even be able to convince a jury (whose technical expertise I seriously doubt) that Bloch copied more than 9 lines of code. Oracle was not even able to convince the jury that the 8 decompiled files were copyright infringement; the judge had to rule on that one.

      --
      Palm trees and 8
    9. Re:What does it matter by Anonymous Coward · · Score: 0

      No. Not necessarily. "clean room" doesn't mean what most people think it means. "clean room" is just a legal concept used in hopes to fend off exactly these types of law suits. It doesn't mean you can't be sued. It doesn't mean a suit doesn't have merit. And it doesn't define a specifc process; though there certiainly are actions and behaviors are typically associated with best practices.

    10. Re:What does it matter by Anonymous Coward · · Score: 0

      Sorry dude. Oracle isn't your mother. I thought you should know.

    11. Re:What does it matter by Anonymous Coward · · Score: 0

      I am not even convinced that Google copied those 9 lines.

      Then you might want to try reading at least the text of the link I posted if not the linked court documents themselves.

      And maybe this 9 lines of code don't seem like a big deal? What about the other hundreds of lines that were decompiled and copied? There's no story about that? This filing has some more information. http://docs.justia.com/cases/federal/district-courts/california/candce/3:2010cv03561/231846/1157/

      The most interesting point is if Bloch did work on the code for OpenJDK and also worked on Andriod code, doesn't that throw the whole "cleanroom implementation" out the window?

      Where did he work first ? Second Sun does not own openjdk, a lot of files in Open JDK were clean room implementation too, or pulled from Red Hat's iced tea implementation.

    12. Re:What does it matter by b4dc0d3r · · Score: 1

      If this is the same case, and I'm pretty sure it is, that was for educational use, which already has "fair use" exemptions. This case has nothing to do with education. It is, generally speaking and depending on which side you ask, about willful infringement and economical advantage gained by copying.

      Using that case as a reference is such a gross oversimplification that it is meaningless to discuss in the same context.

      http://chronicle.com/article/Long-Awaited-Ruling-in/131859

    13. Re:What does it matter by Anonymous Coward · · Score: 0

      What does it matter how easy the code was to write? And if it was so easy why did google need to copy it?

      The same person wrote both versions of the code. They didn't copy it so much as re-implemented it.

    14. Re:What does it matter by dissy · · Score: 1

      What does it matter how easy the code was to write? And if it was so easy why did google need to copy it?

      It matters a lot. Google didn't copy anything, Google WROTE IT.

      Yes, an employee at Google is the one that wrote that exact bit of code, and sent it to Sun to put in Java. He then had to write the same function for Android, and since it is the same person with the same brain, he wrote the same code.

      Or put another way, you used the words "easy to write" just now, and you have used those words before in your life. You are stating you plagiarized those words, from yourself. Which is a very stupid claim for you to make.

    15. Re:What does it matter by Anonymous Coward · · Score: 0

      I am not even convinced that Google copied those 9 lines.

      Note that to avoid this problem, the FSF suggests several different tricks, like using a weird brace indentation pattern, and using a different algorithm if possible.

    16. Re:What does it matter by Anonymous Coward · · Score: 0

      Please resolve this amicably soon. I don't like it when mommy and daddy fight.

      Sorry but your mommy* is a whoring golddigger :( (and you're likely an illigitimate bastard). That's life.

      * The Oracle was female.

      P.S. they don't love you.

  22. Colossal waste... by middlemen · · Score: 2, Insightful

    What a colossal waste of money !

    Oracle and Google waste money on lawyers on such silly functions instead of spending the money on building more useful technology.

    We as users are the only losers in this non-sensical fight.

    1. Re:Colossal waste... by Anonymous Coward · · Score: 1

      Google offered to settle a long time ago to avoid wasting both time and money. This debacle is on Oracle.

    2. Re:Colossal waste... by Volante3192 · · Score: 1

      Your rant assumes that Oracle would actually use that money to build useful technology.

      (In Google's case, they're stuck with this because Oracle brought them to trial and they've got to defend themselves, and it takes lawyers to do that. If they didn't defend themselves, Oracle would win by default and that would be a Bad Thing considering precedence.)

    3. Re:Colossal waste... by Bob+the+Super+Hamste · · Score: 1

      I think Google would rater waste money on things other than this lawsuit. If they didn't then Oracle would end up with a default judgment and Google would have to pay them what ever retarded value they made up.

      --
      Time to offend someone
    4. Re:Colossal waste... by Anonymous Coward · · Score: 0

      What a colossal waste of money !

      Oracle and Google waste money on lawyers on such silly functions instead of spending the money on building more useful technology.

      We as users are the only losers in this non-sensical fight.

      More than the users, society as a whole lost out. The resources put into this ridiculous fight (i.e. energy, time, money, etc.) could have been used to actually improve the world in which we live.

    5. Re:Colossal waste... by Anonymous Coward · · Score: 0

      Actually, everyone but the lawyers lose. Google and Oracle both lose money. Probably lots of it.

    6. Re:Colossal waste... by Anonymous Coward · · Score: 0

      That's software patents for ya, enjoy your dumbo government (ALL of them in ALL branches).

  23. 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.
  24. Re:A high schooler? by MightyMartian · · Score: 3, Insightful

    It's a range check function. They all look largely the same.

    --
    The world's burning. Moped Jesus spotted on I50. Details at 11.
  25. filing my own motion by Anonymous Coward · · Score: 0

    The great thing about having an Android smart phone is I can follow these events from the comfort of the company throne thus killing two birds with one stone! Thanks Google and HTC.

  26. Re:A high schooler? by Anonymous Coward · · Score: 0, Funny

    Hello. By posting this, you have violated the copyrights of my company. Because of this, and the profits you will no doubt receive from this theft, we demand reparations of the sum of $1,250,000.51.

    Please await your court summons in the mail.

    Please have a pleasant day!

  27. 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.
  28. then why didn't they write it by Anonymous Coward · · Score: 0

    I mean if it is so easy to write then why copy it?

    1. Re:then why didn't they write it by Anaerin · · Score: 3, Interesting

      It's such a short and simple function that you could conceivably get two different people to write it and they'd end up with exactly the same code. The code reads:

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

      if (fromIndex < 0)
      throw new ArrayIndexOutOfBoundsException(fromIndex);

      if (toIndex > arrayLen)
      throw new ArrayIndexOutOfBoundsException(toIndex);
      }

      There's nothing you could really remove or change about it. Sure, you could put the checks in a different order, but it wouldn't fundamentally alter the code.

    2. Re:then why didn't they write it by Anonymous Coward · · Score: 0

      The guy working for Google that did write rangeCheck wrote it for the OpenJDK and assumed he could reuse his code in Android. This is common knowledge.

    3. Re:then why didn't they write it by toadlife · · Score: 1

      The issue of wheel reinvention comes to mind.

      --
      I don't always use unix-like operating systems; but when I do, I prefer FreeBSD.
    4. 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.

    5. Re:then why didn't they write it by Keyboarder · · Score: 1

      For that matter, you're even limited as to how you can rearrange the ifs considering that you'd want an IllegalArgumentException to trump an ArrayIndexOutOfBoundsException. I could even see why you might want the exception below zero to trump the exception above the length.

    6. Re:then why didn't they write it by shutdown+-p+now · · Score: 1

      The telltale sign that Google has really copied the above rather than writing it from scratch is whitespace. Note how this code is generally formatted with the usual rules of "whitespace before and after a binary operator", except that it's missing in toIndex+")" - and it's missing in both Google and Oracle source trees.

      Anyway, the argument at this point is not whether Google did or did not copy it - they have already admitted that they did. The argument is the amount in damages that Oracle is entitled to. Google is basically saying that the above code is practically worthless, and does not entitle Oracle to a cut of profits that they've got from Android. Oracle, meanwhile, is saying that it let Google "get Android to the market faster". Judge has called BS on that later claim, noting that the code really is trivial, and could be written as fast as it was copied.

    7. Re:then why didn't they write it by Anonymous Coward · · Score: 0

      You could fix the bugs in it ! LOL.

      There is at least 1 major bug in it.

  29. Re:A high schooler? by Anonymous Coward · · Score: 0

    There were no personal computers around when I was a kid. I was in high school before the first personal computers not to mention access to mainframe computers were given to me. So this judge says "high school" and you go half cocked acting like computers have been around since the stone age. Get a real life and think outside the box every once in a while.

  30. Re:A high schooler? by Anonymous Coward · · Score: 0

    I probably couldn't have written this in 5 seconds, but 7-10 minutes would be reasonable, including all design, compiling, plus all unit testing causing the two exceptions to throw and a sample that doesn't throw either exception.

    It's pretty obvious they copied it (variable names are exactly the same). Now the question is whether or not, as a matter of law, this small piece of code should fall under copyright. The method is so simple, and has such a limited scope that there aren't really any other ways to write this.

  31. 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.

    1. Re:Contest by tool462 · · Score: 1

      Somebody has been spending too much time on TopCoder...

    2. Re:Contest by thunderdanp · · Score: 1, Insightful

      But that isn't the point! Clean rooming code is a perfectly legitimate way to keep yourself from committing copyright infringement. By all appearances Google opted not to do that, and instead opted to copy code. If that is in fact the decision they made, then they infringed whatever copyright protection there was on that code. I'm not clear on which phase of the trial this is in, but if this is the copyright infringement claim, it makes not one bit of difference if a teenager, tween, or toddler could independently write the code. If Google copied it, they infringed.

    3. Re:Contest by jmerlin · · Score: 1

      And would you consider me in violation of copyright law if I were to copy a single pixel from a single frame out of a 3 hour long movie?

    4. Re:Contest by squiggleslash · · Score: 1

      Once again: nobody copied code. A Google engineer re-used code he'd written. The Google engineer who included this code into the Android libraries had originally written it in his spare time, and made the error of offering it to Sun and assigning copyrights to them so they'd include it in Java.

      --
      You are not alone. This is not normal. None of this is normal.
    5. Re:Contest by thunderdanp · · Score: 2

      No, de minimis copying wouldn't give rise to copyright infringement. One may argue that what Google copied here is de minimis. However, if a plaintiff can show substantial similarity between the allegedly infringing work and the original work, then yes, the defendant in that case could be on the hook. I don't think a plaintiff in the suit you described would be very successful.

    6. Re:Contest by thunderdanp · · Score: 1

      To me, this just shows that Google, or one of its agents, was quite aware that Sun/Oracle held the copyright to the code. Copying is not limited to copy and paste.

    7. Re:Contest by msobkow · · Score: 1

      I challenge you to write the requirements for rangeCheck without the specifications ending up looking almost exactly like the code itself. You might spell out "less than" and "greater than", but other than that, a range checking function is so trivial and obvious that I've been amazed to this day that Oracle actually thought any creativity was involved in it's creativity.

      Next up: Oracle claims that "for( i = 0; i < upperLimit; i++ )" is actually worthy of copyright and/or patent...

      --
      I do not fail; I succeed at finding out what does not work.
  32. 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.

  33. Re:A high schooler? by cronot · · Score: 1

    This. As PJ points out on Groklaw, although the judge alledgedly does code, he still seems to be having a hard time deciding whether APIs can be copyrighted. I wonder if he "does coding" on Basic... :-P

  34. Re:A high schooler? by Oracle+of+Naples · · Score: 2, Insightful

    You don't need to register copyright. That is only for patents. Since the guy was working for Sun, all his work belongs to Sun/Oracle (unless otherwise stated in contract).

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

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

  36. Re:A high schooler? by garyebickford · · Score: 3, Insightful

    Nowadays the recommended method of coding is to use variable names and function names that are self-descriptive. Given that, it seems to me that the code is pretty much the natural way anyone might write it. Google did say that they copied it, but really, how else might one write it? It's definitely the level of a first year programming course. The only interesting bits are (IIRC) the use of a ToIndex that is one more than the length, to eliminate a bit of arithmetic in the loop. So were they inclined to dissemble, Google could have claimed that it's just a coincidence.

    --
    It's easier to be a result of the past, but more fun to be a cause of the future! http://www.spacefinancegroup.com/
  37. 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.

  38. Re:A high schooler? by Anonymous Coward · · Score: 1

    Even if true, the question becomes, "how much did those nine lines unjustly benefit Google?" Based on the judge's commentary, it seems he is leaning toward "not much." I tend to agree: the function is not some absurdly complex bit of logic that would have required millions of dollars in R&D to produce, and any infringement is simply the result of a lazy coder who copied/pasted instead of spending fifteen minutes writing the function out him/herself.

    Oracle may have a valid case on its merits, but their valuation of damages is insane. They should have taken Google's settlement offer, because this judge is going to destroy their position.

  39. Re:A high schooler? by Lunix+Nutcase · · Score: 3, Informative

    You haven't had to register copyrights in the US for decades. Ever heard of the Berne Convention?

  40. Re:A high schooler? by vlm · · Score: 2

    Slashcode ate that all up. F you /. my reply looks like shite also because of that and I can't be bothered to figure out how to post code without it being de-htmlized. Fix that, right after you fix UTF-8 mkay? I checked the link, in psuedocode its:

    fromIndex has to be from 0 to toIndex
    toIndex has to be from fromIndex to arrayLength

    Anybody else see a bug? I donno their array implementation, but it looks like they are zero indexed arrays while also allowing a "array's length" equal to the to index value. Classic noob array out of bounds mistake staring at me.

    Lets make up moron array
    index 0 is first value
    index 1 is second value
    index 2 is third value

    array length is 3, don't believe me, count the lines. I see 3 lines so thats a 3 long array.
    Set fromIndex to 1 and toIndex to 3.
    Does it pass fromIndex GT toIndex? Yes, indeed 1 GT 3 is false so no exception.
    Does it pass fromIndex LT 0? Yes indeed 1 LT 0 is false so no exception is thrown.
    Does it pass toIndex GT arrayLen? Yes indeed 3 GT 3 is false so no exception is thrown
    I'm imagining the next step, something somewhere accesses index 3, runtime says WTF are you doing we're only defined up to 2 here, kaboom.

    Now I don't do java so I donno if GT LT are actually impled GTE LTE in java, or there is some extra code or purpose of this such that array(toIndex) will never be accessed, or there is some extra error code detection that handles out of bounds array access.

    I just thought it was pretty funny looking when looked at completely out of context.
    Like when you see something like lparen x LT 2 vbar vbar x GT 10 rparen and you just know thats a bug because its obviously supposed to be AND not OR and they were probably trying to check an interval.

    --
    "Science flies us to the moon. Religion flies us into buildings." - Victor Stenger
  41. 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
  42. Re:A high schooler? by Anonymous Coward · · Score: 0

    So, they're claiming they have a patent on range checking?

  43. Re:A high schooler? by Anonymous Coward · · Score: 0

    "A highscooler could code that" does not imply "anyone younger than a highschooler cannot code that"

  44. Re:A high schooler? by Anonymous Coward · · Score: 0

    COPYRIGHT belongs to the author.

    SAME PERSON WROTE BOTH and shared them with SUN and Android.

    Sun didn't move the copyright from the author.

  45. Re:A high schooler? by h4rr4r · · Score: 2

    How would it not be?
    There is nothing creative there. If you had a 100 people do it you would probably get lots of exact copies.

    This guy was working at google when he wrote both by the way. Can you now steal your own copyright?

  46. Re:A high schooler? by meerling · · Score: 1

    I started programming when I was in high school. It was the first time in my life I had access to a computer. About a half dozen of us worked together to figure out how to program the computers, since there were no classes for it and nobody at the school had any idea how use them either. If you are wondering why I didin't just google it, Google.com didn't exist. For that matter, neither did the internet, and aarpanet wasn't available to civilians, much less curious teenagers.

    You either forget that access to computers as a fairly ubiquitous thing is very very new. If you want to look at anyone 30+ there is a distinct possibility that they didn't have the opportunity to play with computers until they were adults. There are still plenty of school districts that don't have computers available for the students to use, much less an actual class. And even if they do have computers available for the students, it may be less than would be required for a single class, much less the entire student body.

    I think you should re-evaluate your question. You've had an opportunity that many people don't, and that in no way makes them stupid. Though your ignorance of those circumstances, or your out of hand dismissal of that reality, in way shows signs of intellect on your part. Though I can say it shows a distinct lack of critical thinking skills and manners.

  47. Re:A high schooler? by Anonymous Coward · · Score: 0

    Let's weigh the merits of this case. Say we have a developer who gets paid $40/hr, and Oracle is suing for $2.6bn...

    rangeCheck(40,0,2600000000);

  48. Re:A high schooler? by Aryden · · Score: 1

    Employing more Indian/Phillipino/Mexican/Chinese coders than Americans.

  49. 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!

    1. Re:Misleading title -- Judge didn't say that! by Anonymous Coward · · Score: 0

      This is slashdot, and facts aren't what the raving fanboys want to hear!

    2. Re:Misleading title -- Judge didn't say that! by shutdown+-p+now · · Score: 3, Informative

      He didn't say the part about "a high schooler", but he did say something that pretty much amounts to the same thing:

      "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. "

    3. Re:Misleading title -- Judge didn't say that! by StormReaver · · Score: 2

      The judge makes no such claim

      The judge most certainly did make the statement that the rangeCheck code was trivial:

      Caleb Garling tweets: "Alsup says he's been writing code since this trial started. He's written rangeCheck code a "100 times". Incredulous Oracle claiming damages...."

      The judge didn't say that a high school student could do it (that was a witness, as the judge mentioned), but he did say it was trivial, and implied that he agrees with the witness:

      "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-- "

  50. Hired Help by andersh · · Score: 1, Informative

    Google did not copy it. Their contractor reverse engineered Sun/Oracle's code - despite being told by Google explicitly not to do so!

    Google used Noser to provide additional resources and accelerate the completion(?) of Android.

    On March 28, 2007, Google hired Noser to deliver a package of Java libraries. /See/ TX 30 (Statement of Work between Google and Noser, dated March 28, 2007)

    On April 19, 2007, Andy Rubin wrote to Alan Eustace regarding the "Noser agreement": "This is our final java solution — consultants to take our java libraries as a starting place, and bring our java classes up to J2SE spec, in a clean room environment. They have signed up to a pretty aggressive schedule for quite a bit of work. This deal replaces the $18M approved acquisition that we decided to pass on. Barring any unforeseen surprises, I think this is our last big deal ($4M)." (TX 438.)

    1. Re:Hired Help by squiggleslash · · Score: 2

      You're talking about a different copyright infringement.

      In the rangeCheck instance, there was actually no copying involved. The author of the piece made the mistake of assigning copyright to Sun for the work after submitting it for inclusion in Java. He later then used the same code - that he'd written - into the Android libraries.

      Let that be a lesson to anyone who is willing to assign copyright for unpaid work to a corporation. Even if it's a nice friendly, non-evil one like Sun. The non-evil ones sometimes get eaten by the thoroughly evil.

      --
      You are not alone. This is not normal. None of this is normal.
  51. Re:A high schooler? by Registered+Coward+v2 · · Score: 1, Insightful

    I am an American. I could have written this when I was 8 or 9 when I started playing with QBasic and all that shit. Not all Americans are stupid. Just the vast vast majority.

    Many of whom would realize there is no such thing as a vast vast (or even vast) majority. A programmer should realize majority is a binary state, either a 1 (it is) or 0 (it is not).

    --
    I'm a consultant - I convert gibberish into cash-flow.
  52. Re:A high schooler? by AngryDeuce · · Score: 1

    If slide to unlock is patentable, I damn sure bet range checking will be...

  53. 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.
  54. "I probably couldn't program that in six months." by ibic00 · · Score: 5, Funny

    A truly exceptional lawyer.

  55. Yeah, no. by JustAnotherIdiot · · Score: 1

    'I'm not an expert on Java — this is my second case on Java, but I'm a complete retard, and I probably couldn't program that in six months.'

    Because this is the only way that statement is true, even I could figure this out in quicker than 6 months.
    Glad to see the judge called this guy on his BS.

    --
    What do I know, I'm just an idiot, right?
  56. 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--

    1. Re:The juicy bits by MightyMartian · · Score: 3, Interesting

      It's so beautiful, it makes me want to cry... We should have it carved in a great stone monolith for all to see.

      If only this judge had been around when SCO was trying to claim ownership to the Linux scheduler.

      --
      The world's burning. Moped Jesus spotted on I50. Details at 11.
    2. Re:The juicy bits by Anonymous Coward · · Score: 0

      Right then Oracle's counsel should've backed off...there was a hint dropped by the Judge there...

    3. Re:The juicy bits by Anonymous Coward · · Score: 0

      Thank god for the comments. I read the summary and thought, I bet at least one comment actually writes the summary as it should have been so it makes sense.

      Its getting to be the main thing I read the comments for. Decoding the BS and bad formatting in summaries, providing the links to the real articles that should have been in the summary etc.

      Can we start letting those with exceptional karma edit the summary? The parent comment provides very much needed context.

    4. Re:The juicy bits by medv4380 · · Score: 1

      I totally agree. This Judge is actually competent. Can he be promoted to the Supreme Court?

    5. Re:The juicy bits by Anonymous Coward · · Score: 0

      He was the judge in Apple v Psystar, does that count? :)

    6. Re:The juicy bits by Anonymous Coward · · Score: 0

      Ah no wonder there are so many malware exploits in the wild - Oracle is preventing OS developers from making sure that values passed to a routine are in range - if they check, they are violating copyright. So we get al the malware instead.

      Another question, what if they wrote it this way:

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

      Would that be a violation? If not, I copyright that piece of code and anyone who uses it owes me lots of $$$

  57. Re:A high schooler? by meerling · · Score: 1

    Drat, my keyboard is dropping stuff, the battery is low. And yeah, rangecheck is nothing special, we were doing those same things back in the 80s. We wrote them ourselves in less than 10 minutes since they were simply on requirement our programs were required to do when we got our daily assignments. Also, the smaller any chunk of code is, the more it tends to resemble any other small chunk of code that does the same task. (It's like asking a group of people to write a sonnet, each will be very different. Then asking those same people to write a list of vowels, most of them will look exactly alike.)

  58. The eight decompiled files by DragonWriter · · Score: 2

    What does it matter how easy the code was to write?

    Because it goes directly to the claims that it infringing it was the source of a substantial quantity of Google's profits.

    I tried to submit this over the weekend but it wasn't selected. http://www.wired.com/wiredenterprise/2012/05/google-oracle-decompile/ [wired.com]

    "Judge William Alsup ruled that evidence presented during the trial had shown that Google infringed on Oracleâ(TM)s copyrights by decompiling eight Java files and copying them in their entirety for use with Android."

    The decompiled files are a different issue than rangeCheck. Google didn't decompile them, Noser -- a contractor for Google -- did, against the express prohibition in the Google-Noser contract, which required all original work or open-source code, and expressly prohibited copying or decompiling proprietary code.

    I tried to submit this over the weekend but it wasn't selected. http://www.wired.com/wiredenterprise/2012/05/google-oracle-decompile/

    "Judge William Alsup ruled that evidence presented during the trial had shown that Google infringed on Oracleâ(TM)s copyrights by decompiling eight Java files and copying them in their entirety for use with Android."

    1. Re:The eight decompiled files by htnmmo · · Score: 0

      It doesn't really matter who decompiled the files. The point is that they were decompiled and copied.

      If I hire you to go buy me a car and you do so I pay you for it. If it turns out you stole the car, should I get to keep it?

      That also leaves the question of whether that contractor, or other contractors had violated Sun/Oracle copyrights in less obvious ways.

    2. Re:The eight decompiled files by Anonymous Coward · · Score: 0

      Are you also one of those lawyers perhaps?...

      Seriously, what kind of code do you expect them to write after decompiling a function like rangeCheck? You got the exception that needs to be thrown, and the ranges... There's not very many ways you can write that function, so if the code style is anywhere near the same hen suddenly you got a function that is byte by byte the exact same. Sure, they could swap the order in which the boundaries are checked, add/remove white spaces here and there... But no doubt if you got handed the decompiled function you'd also end up writing the exact same.

    3. Re:The eight decompiled files by DragonWriter · · Score: 1

      It doesn't really matter who decompiled the files.

      It doesn't matter to copyright liability (well, actually, it does, but it doesn't matter to Google's copyright liability.)

      It does matter, however, when someone uses quotes about the decompiled file to backup an argument of the form "if its all so easy, why did Google copy it?"

      Since, in fact, Google didn't copy it, and in fact the person who did copy it was doing something Google had expressly directed them not to do.

    4. Re:The eight decompiled files by DragonWriter · · Score: 1

      Seriously, what kind of code do you expect them to write after decompiling a function like rangeCheck?

      rangeCheck was not from one of the decompiled files, its a different issue.

    5. Re:The eight decompiled files by htnmmo · · Score: 1

      I made the mistake of lumping in this method with the other decompiled code and you seem to be making similar mistakes.

      The 9 lines of code were copied. They were copied by a Google employee Josh Boch. Josh actually wrote the code that is in the JDK while working for google but on his own time. He assigned copyright for that code to Sun.

      Google had expressly directed them not to do.

      The reason Google expressly directed them not to is because they wanted a clean room implementation that would not be encumbered by Sun's IP.

      They didn't get what they paid for. It may be the contractor's fault that Sun's IP was violated but Google did reap the benefits of that violation. If it was the contractor's fault that the Sun's IP was violated, Sun now Oracle still has a valid claim for damages. Oracle may want to seek remedy against their contractor for failing to deliver as promised.

    6. Re:The eight decompiled files by SydShamino · · Score: 3, Funny

      It doesn't really matter who decompiled the files. The point is that they were decompiled and copied.

      If I hire you to go buy me a car and you do so I pay you for it. If it turns out you stole the car, should I get to keep it?

      That also leaves the question of whether that contractor, or other contractors had violated Sun/Oracle copyrights in less obvious ways.

      You have the analogy all messed up. Google has already stopped using this code, so in your analogy they've already stopped using the car and given it up.

      Instead, what happened was Google hired Noser to buy them a car, and in the contract specified that the Noser was absolutely not allowed to steal the car. Noser stole it anyway, and when Google found out they stopped using it. Later, Google was sued by Oracle, who didn't actually own the car when it was stolen but bought it later. This suit wasn't to stop Google from using the car any longer, but to seek billions in damages for misuse of the car during a time that Google thought they owned it (due to deception by Noser) when Oracle didn't actually own it, either.*

      --
      It doesn't hurt to be nice.
    7. Re:The eight decompiled files by htnmmo · · Score: 1

      Seriously, what kind of code do you expect them to write after decompiling a function like rangeCheck?

      If they wanted a clean room implementation they should be decompiling code at all.

    8. Re:The eight decompiled files by htnmmo · · Score: 0

      This suit wasn't to stop Google from using the car any longer, but to seek billions in damages for misuse of the car during a time that Google thought they owned it (due to deception by Noser)

      Uhm... that's my point. Noser took short cuts to deliver on their contract to Google. Those shortcuts where violated Sun's IP. Violating Sun's IP helped them get android out quicker and provided financial benefits.

      Just because Oracle can only legally prove that there was a limited amount of IP theft going on, doesn't mean that it wasn't more widespread. That's what it makes me believe anyway.

      Because car analogies are so much fun. If the car was a limo and Google was a limo service, Just because Google upgraded their car after finding out it was stolen doesn't mean Sun/Oracle isn't entitled to loses.

      when Oracle didn't actually own it, either.*

      Source?

    9. Re:The eight decompiled files by MightyMartian · · Score: 2

      Oh for fuck's sakes. It's a range check function. Jesus, you'd think it contained the cure for cancer the way Oracle goes on. Even if there are damages, they are going to be absurdly small, so small that any victory at this point for Oracle is very much Pyrrhic. Google has won the important war.

      --
      The world's burning. Moped Jesus spotted on I50. Details at 11.
    10. Re:The eight decompiled files by DragonWriter · · Score: 1

      It may be the contractor's fault that Sun's IP was violated but Google did reap the benefits of that violation. If it was the contractor's fault that the Sun's IP was violated, Sun now Oracle still has a valid claim for damages.

      No one is arguing against that point, so I don't know why you keep arguing for it. My objection was your use of reference to the decompiled files and Google's supposed decision to copy them (which is refuted by the fact that the decompilation was done by a contractor under express direction from Google not to decompile any third-party files) as part of the backing for your post asking why, if it was so simple, did Google choose to copy?

    11. Re:The eight decompiled files by Anonymous Coward · · Score: 0

      Violating Sun's IP helped them get android out quicker and provided financial benefits.

      No it didn't. It's a fucking range check. Do you have ANY idea how easy that is to write?

      The only reason why the developer involved "copied" the code is because... he didn't copy it. He wrote the original, and the only reason there's a "violation of IP" is because he voluntarily assigned copyright to Sun without thinking through the potential repercussions.

      Range check is so trivial that most people who implement it actually write the code inline rather than as a separate function. It's so trivial the most stupid developer I work with could code it in less than a minute.

      I assume you're a lawyer, MBA, or politician, because even a high school maths student would know the argument you're making is BS.

      Quite honestly:

      - It's trivial code. It shouldn't even be copyrightable.

      - Even if it was copyrightable, we're talking about Oracle winning on a technicality. Sun didn't write it. They had no involvement in its creation. They gained the copyright due to a misjudgment by the developer. In many jurisdictions, the developer wouldn't even legally be allowed to assign copyright in that way anyway.

      Shut up, and leave Slashdot to the adults. Please.

    12. Re:The eight decompiled files by squiggleslash · · Score: 1

      The textbook case of clean room reverse engineering involved the decompilation (actually disassembly) of the IBM PC BIOS. One team of developers did the decompile and documented exactly what each bit of code did, another team, kept separated from the first group by a wall of lawyers, implemented code that did exactly what the BIOS was documented as doing.

      There's nothing wrong or "uncleanroomable" about decompilation.

      --
      You are not alone. This is not normal. None of this is normal.
    13. Re:The eight decompiled files by niado · · Score: 2

      I haven't read all the details of Boch's testimony, but if I had to guess I would surmise that the range check function is something the poor guy keeps in a TXT file with a bunch of other routine things that he has to copy and paste a lot while doing work. He was probably working on Java and was like 'oh, need a rangecheck function AGAIN, let me paste in the one I always use!' and then did the same for Dalvik.

      I would argue this is a legitimate practice, as the code for that particular function should not be copyrightable in the first place.

    14. Re:The eight decompiled files by htnmmo · · Score: 1

      I'm not talking about rangeCheck specificially but the entirety of code that the judge ruled was decompiled and copied from Java.

      That leaves the question of whether the contractor copied other parts of the Java that are not as easy to identify or if they decompiled and copied then rewrote to make it look like it wasn't copied. Maybe they didn't do that with this function because it was trivial. Who knows. But to me this just doesn't look good.

      I don't see Oracle as the bad guy here. They had their (Sun's) IP stolen and are right to seek damages.

      I don't see Google as a bad guy here either. Their intention was not to violate Sun's IP.

      Things got screwed up and now need to be resolved. In a perfect world Sun would have successfully negotiated a deal when Google initially approached them. That didn't happen and now here we are.

    15. Re:The eight decompiled files by DragonWriter · · Score: 1

      I'm not talking about rangeCheck specificially but the entirety of code that the judge ruled was decompiled and copied from Java.

      rangeCheck isn't even part of that body of code, which consists of 8 test files that were never distributed on handsets, but which part of the Android source distribution.

      That leaves the question of whether the contractor copied other parts of the Java that are not as easy to identify or if they decompiled and copied then rewrote to make it look like it wasn't copied.

      What parts of Android the contractor was involved in is, I believe, part of the trial record; it is, at any rate, information Oracle could have subpoenaed and addressed had it any interest in doing so.

      Maybe they didn't do that with this function because it was trivial.

      They didn't do anything with this function (rangeCheck) because they had nothing to do with it. It wasn't part of the decompiled files, the author of the function was a Google employee (who wrote it outside of the scope of his employment) who both included the file in Android and contributed it to OpenJDK.

    16. Re:The eight decompiled files by Citizen+of+Earth · · Score: 1

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

    17. 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?

    18. Re:The eight decompiled files by mzs · · Score: 1

      No Bob sets AL = 0, does int 13h, and writes down the values of the registers. Then he does AL = 1 .... After that he hands that document to Fred, who writes the code that acts the same.

    19. Re:The eight decompiled files by mzs · · Score: 1

      Now that's a proper car analogy!

    20. Re:The eight decompiled files by Anonymous Coward · · Score: 0

      Not necessarily. Connectix was doing clean room rewrite of Playstation BIOS for an emulator and they disassembled it for reverse engineering. Sony sued, but court finally found it to be fair use, so the precedent for disassembling to extract specs is set. Sony had to buy Connectix to shut down the emulator.

    21. Re:The eight decompiled files by hackula · · Score: 1

      Ha, this cracked me up. Non-coding "hackers" always talk about "subroutines" for some reason. I am sure it means something concrete on some platform, but usually its a dead give away that someone does not know what they are talking about.

    22. Re:The eight decompiled files by MightyMartian · · Score: 1

      Identical range check functions, no different algorithmically than range check functions doubtless that go back to the earliest days of computing, and identical to many range check functions to be found throughout programs written in the C family for decades, cannot possibly be called IP. It's ludicrous.

      --
      The world's burning. Moped Jesus spotted on I50. Details at 11.
    23. Re:The eight decompiled files by Githaron · · Score: 1

      Actually, it is more like a fleet of cars and a single car was stolen.

    24. Re:The eight decompiled files by htnmmo · · Score: 1

      Because it doesn't matter whether it was a contractor or not. Google is ultimately responsible for abiding by the law with the products they release whether they were written by employees, obtained through an acquisition or created for them by a third party at their request.

    25. Re:The eight decompiled files by DragonWriter · · Score: 1

      Because it doesn't matter whether it was a contractor or not.

      It certainly does in the context of your earlier suggestion that the decompiled files support some inference related to why Google chose to do it. Since it was a contractor doing something Google expressly forbade them to do, any speculation about why Google chose to do it rests on a fatally false premise.

      Google is ultimately responsible for abiding by the law with the products they release

      As has been pointed out multiple times in this subthread, most recently in GP -- to which the quoted material above is in reply -- no one is arguing against that point. So why do you keep raising it?

    26. Re:The eight decompiled files by htnmmo · · Score: 1

      I take it assembly and microprocessors weren't part of your education?

    27. Re:The eight decompiled files by reve_etrange · · Score: 1

      A bunch of languages call functions subroutine or "sub," e.g. Perl and BASIC off the top of my head

      (in older BASIC codes you see lots of "GOSUB" keywords, the GOTO version of a function call).

      --
      .: Semper Absurda :.
    28. Re:The eight decompiled files by reve_etrange · · Score: 1

      Which, in retrospect, just proves your point...

      --
      .: Semper Absurda :.
    29. Re:The eight decompiled files by reve_etrange · · Score: 1

      And, of course, both versions of the function were written by the same person...

      --
      .: Semper Absurda :.
    30. Re:The eight decompiled files by MightyMartian · · Score: 1

      The larger point on that score is that even if one concedes a copyright violation because the copyright was assigned to Sun, the damages are beyond minimal. It saved at the very best five minutes of time, and I think unless you're talking about a very incompetent programmer.

      --
      The world's burning. Moped Jesus spotted on I50. Details at 11.
    31. Re:The eight decompiled files by pbhj · · Score: 1

      Perhaps it's actually historical - a subroutine is a generic term for functions, say, or an objects methods, reusable blocks of code. We called them subroutines back when I learnt BASIC iirc; also pretty sure that we referred to subroutines when I studied assembly (which was much more recent).

    32. Re:The eight decompiled files by htnmmo · · Score: 1

      no one is arguing against that point. So why do you keep raising it?

      Not sure why it's such a sticking point so let me be clearer. Obviously when I refer to "Google" I'm talking broadly about the organization, considering a company has no free will and can not choose to do anything. Specifically I'm talking about the part of the organization that worked on Android. In this group I'm also including any contractors Google or it's subsidiaries might have hired. Instead of spending time trying to track down all the people that were involved with the code inside and outside of Google I just use the word "Google" to lump them all together. Because as I said, in the end it's their responsibility.

      And I didn't infer anything from that line you're referring to. I was asking a question hoping to get an answer.

      9 lines of what everyone thinks is trivial code would be faster to type than it would be to look up to copy and paste.

      And the 9 lines is less than 2% of the code that was found to be infringing.

      What I am inferring is that if Google didn't know that any of the code was infringing, that they knew that they told their contractor to develop a clean implementation, that information was likely communicated to Sun (I seem to recall some sort of conversation taking place but don't have a link) then any implied license Google thinks they had because of Sun's affirmative acts shouldn't be a factor because they were based on the belief by both parties that the code was not infringing.

    33. Re:The eight decompiled files by AdamWill · · Score: 1

      It meant something in BASIC. Which gives you an idea.

    34. Re:The eight decompiled files by drinkypoo · · Score: 1

      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?

      ...while covered in gravy and cheese curds.

      --
      "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
    35. Re:The eight decompiled files by Anonymous Coward · · Score: 0

      This guy, Boch, wrote a TimSort method while not employed by Google, and donated it to Sun (which eventually got parted up and made its way into the Java codebase). He then got hired by Google and put TimSort into the Dalvik sources. He admitted that he copied and pasted this into Dalvik from his personal collection (why rewrite a sorting algorithm and potentially mess it up?). I think that rangeCheck being the only lines remaining from his code when he donated it that haven't significantly changed is in large part a happy coincidence for Google that they left out of the trial.

      The thing is, rangeCheck is so small that had I written it twice in the same language a year or two apart, I would have written it character for character exactly the same. I'd be willing to bet most professional developers would have the same experience. I can look at code I wrote 10 years ago and recognize it as something I would write the way I do (assuming no bugs and functionality changes).

      As an example I found a class in the code I am working on today with the following two methods:

      public void Dispose() {
                  Dispose(true);
                  GC.SuppressFinalize(this);
              }
       
              ~Database() {
                  Dispose(false);
              }

      Right there is 8 lines of code that another person probably has exactly the same.

    36. Re:The eight decompiled files by Anonymous Coward · · Score: 0

      Qui-Gon: "I cast 'Summon Bigger Fish'."

    37. Re:The eight decompiled files by Anonymous Coward · · Score: 0

      It doesn't really matter who decompiled the files. The point is that they were decompiled and copied.

      If I hire you to go buy me a car and you do so I pay you for it. If it turns out you stole the car, should I get to keep it?

      That also leaves the question of whether that contractor, or other contractors had violated Sun/Oracle copyrights in less obvious ways.

      You have the analogy all messed up. Google has already stopped using this code, so in your analogy they've already stopped using the car and given it up.

      Instead, what happened was Google hired Noser to buy them a car, and in the contract specified that the Noser was absolutely not allowed to steal the car. Noser stole it anyway, and when Google found out they stopped using it. Later, Google was sued by Oracle, who didn't actually own the car when it was stolen but bought it later. This suit wasn't to stop Google from using the car any longer, but to seek billions in damages for misuse of the car during a time that Google thought they owned it (due to deception by Noser) when Oracle didn't actually own it, either.*

      The outcome is that Java is patented, and is not in the public domain. It is not free, it is not open, and one day a significant project, developed with Java is going to lean that their code violates copyrights.
      Interestingly enough, in Germany, a similar lawsuite was rejected by someone who redid the API, but kept the same calling conventions. The judge there ruled that the calling conventions are not copyrightable. My X(int,long) can be the same as your X(int,long) as long as my X function is not derived from your X function.

      If a different conclusion is reached, then the ubiquitous for(,,) and while() etc belongs to the estate of the late Denis Richie. The C language belongs to DR, and his estate should get some proceeds from every program.

    38. Re:The eight decompiled files by uninformedLuddite · · Score: 1

      So how would you personally root the gibson without a subtroutine?

      --
      The new right fascists are bilingual. They speak English and Bullshit.
  59. Re:A high schooler? by h4rr4r · · Score: 1, Funny

    Calm down Grandpa, go take a nap. We all know you had to fight the dinosaurs to get to the mainframe and make punch cards out of leaves of now long extinct flora. These days though this really is the sort of thing a little kids has access too, not everyone on earth can always remember what life was like at such a primitive time.

  60. 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"
  61. Re:A high schooler? by drerwk · · Score: 1

    I think he picked out his /. user name at the same time.

  62. Re:A high schooler? by denobug · · Score: 2

    You cannot copyright logic or match. Range check is pretty much what it is. The function/method exist before Java was first created. If someone don't know how to write code similar to this (at least in a simpler function) they shouldn't be holding a programming job.

  63. Re:this is a serious problem by Aryden · · Score: 1

    How much coke did you snort before you wrote that post?

  64. Re:A high schooler? by Volante3192 · · Score: 1

    Because that sort of code is so complex...

    Maybe if we're talking about Carmack's Magic Number*, yes, you'd have something
    ( http://en.wikipedia.org/wiki/Fast_inverse_square_root#Overview_of_the_code )

    But this?
    I could do this in pseudo code in seconds and something that would actually compile and run in 10 minutes, tops. (I'm way rusty on language specifics these days...)

    *Ok, it's not personally Carmack's magic number, but he's who you'd most likely associate it with

  65. 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
  66. 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

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

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

    --
    Set your phasers on "funky"!
    1. Re:No wonder Gore lost by Anonymous Coward · · Score: 0

      What's your point? Gore lost because SCOTUS is very conservative, and all five of those justices would have picked Bush regardless of who Gore's lawyer was.

      The lawyer for Bush in that case was Theodore Olson, who was the Solicitor General (and also the plaintiff's lawyer in the challenge to the Obama healthcare bill). Olson and Boies were both lead attorneys in Perry v. Brown (Perry v. Schwarzenegger), which challenged and overturned California's Proposition 8 banning same-sex marriages.

      Yes, Boies must be a really shitty lawyer. It's not his fault when his client wants to sue without even having a case.

    2. Re:No wonder Gore lost by Anonymous Coward · · Score: 0

      What's your point? Gore lost because SCOTUS is very conservative, and all five of those justices would have picked Bush regardless of who Gore's lawyer was.

      That's true, conservatives wouldn't have picked Gore because Gore didn't have a case.

      The Florida Supreme Court, on the other hand, was loaded with Democrats.

  68. What's needed now: by Anonymous Coward · · Score: 0

    Not a syntax checker, an error checker, but instead, a code judge, which parses your language before use or compilation, and tells you what an idiot you are.

  69. Re:A high schooler? by grumpy_old_grandpa · · Score: 1

    Where you ticked off by his ageism or racism?

    Either way; when the troll or flame bait is that obvious, isn't better to just ignore it and let it be filtered away? It's not like your contribution adds anything to the discussion.

  70. Re:A high schooler? by Chemisor · · Score: 1

    Wouldn't these miss the case of negative indices? rangeCheck(5,-3,2) will not throw. Now, a C++ programmer would use unsigned types, as everyone ought to do unless the variable can be negative, but this is Java, so I guess you're screwed ;)

  71. Been waiting for this to hit /. by sl4shd0rk · · Score: 3, Insightful

    I've been following the Oracle vs Google trial on other websites. Not sure why /. hasn't been covering it routinely. It's a pretty big deal not just to Google , but there are some issues being judged which may affect the programming community in general, down the road.

    Alsup seemed to be a little perturbed with some of Oracle's ploys to captialize on the assumed "programming ignorance" of the jury. I haven't seen the RangeCheck code, but from Alsups statement it sounds like Oracle is trying to make a case from egregiously far-reaching evidence. One which basically means Oracle doesn't, and never had, much of a case to begin with.

    --
    Join the Slashcott! Feb 10 thru Feb 17!
    1. Re:Been waiting for this to hit /. by sandytaru · · Score: 1

      Actually, I've seen linked articles about it here at least every other day.

      --
      Occasionally living proof of the Ballmer peak.
    2. Re:Been waiting for this to hit /. by shutdown+-p+now · · Score: 2

          private static void rangeCheck(int arrayLen, int fromIndex, int toIndex) {
              if (fromIndex > toIndex)
                  throw new IllegalArgumentException("fromIndex(" + fromIndex +
                             ") > toIndex(" + toIndex+")");
              if (fromIndex < 0)
                  throw new ArrayIndexOutOfBoundsException(fromIndex);
              if (toIndex > arrayLen)
                  throw new ArrayIndexOutOfBoundsException(toIndex);
          }

  72. Re:A high schooler? by Anonymous Coward · · Score: 1

    If slide to unlock is patentable, I damn sure bet range checking will be...

    Patents & copyright are completely different things.

  73. Re:A high schooler? by Volante3192 · · Score: 2

    What's logical and what's legal per the law ain't ever exactly been similar.

  74. Re:A high schooler? by Anonymous Coward · · Score: 2, Insightful

    You must register copyrights if you wish to sue for punitive damages (eg: damages that are in excess of your loss because the intent of the damages is to send a message to anybody else who infringes on your copyright). If you have not registered your copyright, then you are only allowed to sue for compensatory damages (eg: the damages that have affected you directly).

    In this case, Oracle has apparently not registered the copyright yet (there is nothing stopping them from doing so now or in the future and suing again), so they can only sue Google for compensatory damages, which in this case, as the judge pointed out, is over a rangeCheck function that literally every programmer that has ever done any non-negligible work has done. That means that the losses Oracle suffered as a result of Google's alleged infringement (9 obvious lines of an obvious function, to me, is not infringement) are likely zero or not worth suing over (being next to zero).

    The only complications are that those 9 lines were written for Sun, and then for Google, by the same person. That is the only infringement theory available, because in the US you have to use clean-room reverse engineering; you cannot just hire somebody to reimplement something they did for your competitor (unless you're Microsoft and you are reimplementing the NTFS filesystem and the WinNT kernel as "brand new" and "original" technology). So, once Oracle registers the copyright, Google will need to hire somebody to clean-room reverse engineer the rangeCheck function, which should consist of the guy who originally wrote it staring at his code on one side of a wall and talking to another engineer (who has never seen the rangeCheck function code) writing code on another computer about the purpose of the function, possible tests and results for the function, and basically describing the function in every way except going through the algorithm explicitly.

    So, once Oracle registers for the copyright, Google will do this (it would take, literally, more time to setup the clean room than to actually implement the function appropriately), and the Dalvik code, including the rangeCheck function will be available to anybody and everybody under whatever license Android is under (read: free to use and modify by anybody in the world). In other words, Oracle is damned if they do sue, and damned if they don't sue. They are losing, and will lose, this fight completely, but they will have shot themselves in the foot because now companies are afraid to use Oracle's Java over patent and copyright concerns (because Oracle is an asshole company run by an asshole). It's a good day to be IBM, Google, and Microsoft because your platforms are looking more legally bulletproof by the minute.

  75. 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.

  76. Re:A high schooler? by amicusNYCL · · Score: 2

    Nowadays the recommended method of coding is to use variable names and function names that are self-descriptive. Given that, it seems to me that the code is pretty much the natural way anyone might write it.

    It seems like someone would copy something like this because it's so simple enough that you would end up writing the same thing, so instead of spending the minute to do that you might as well just copy it and move on. Sort of like how Javascript lacks an Array.indexOf method to find a certain item in the array. I could spend the minute or two to write and test that loop myself, or I could spend 30 seconds looking it up on Google and using what I find there. Either way it's going to be the same thing, a loop that runs through the array looking for the item. The rangeCheck function is just a pair of if statements that compare one number with 2 others. As G.W. Bush would say, this isn't rocket surgery.

    --
    "Our two-party system is like a bowl of shit looking at itself in a mirror." - Lewis Black
  77. Range checking is soooo Programming 101 by Anonymous Coward · · Score: 1

    Yup, I wrote that exact same function 15 years ago in my intro to C class. The whole point of the exercise was to demonstrate "garbage in, garbage out" with regards to math functions. The prof assigned a program that would return sine() of some input value. If that input fit within type int, the output was useful. If it didn't you got garbage. Unfortunately, he had been beating into us from the very first day "Make sure the input is valid!!!" So the very first thing I did after getting the input was feed it into a range check... if the input angle was outside +360 to -360, modulo 360 and return the result to the sine() function. Defeated the whole point, I suppose, but he did (reluctantly) give me full credit for having paid attention to his screeds about stupid users.

  78. Re:A high schooler? by ewanm89 · · Score: 2

    well, they'll certainly be very similar, they would probably end up the same if you instructed them to follow certain code conventions on variable names and the like.

  79. Re:A high schooler? by spyked · · Score: 1

    Not really. Mechanisms are patentable, algorithms aren't.

    In this case slide to unlock is a mechanism with a clear description and such, while range checking is (as far as I can see) something too abstract to become a patent.

  80. Re:A high schooler? by Anonymous Coward · · Score: 0

    Most of America is stupid.

    That's an argument over a measuring stick, and could take a lifetimes to make.

  81. Re:A high schooler? by Lisias · · Score: 3, Funny

    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.

    --
    Lisias@Earth.SolarSystem.OrionArm.MilkyWay.Local.Virgo.Universe.org
  82. Re:A high schooler? by Lisias · · Score: 1

    IMHO, Oracle's lawyers were plain stupid in this issue.

    HOW IN HELL they didn't run a background check on the judge? Books are public information!

    Common! Know your enemy! the more basic rule in any conflict management!

    I would mark carefully the names involved in this process. This is lawyer that I would *never* hire.

    --
    Lisias@Earth.SolarSystem.OrionArm.MilkyWay.Local.Virgo.Universe.org
  83. Re:A high schooler? by B1oodAnge1 · · Score: 1

    You're wrong. You can have degrees of majority. For example you can have a 1% majority, which is a smaller majority than a 42% or a 69% majority. Using a synonym of 'large' in describing a majority is perfectly valid.

    --
    RUGBYRUGBYRUGBY
  84. Re:A high schooler? by andymadigan · · Score: 1

    Where exactly is the spark of creativity that is required for a copyright in this snippet of code?

    --
    The right to protest the State is more sacred than the State.
  85. Re:A high schooler? by Anonymous Coward · · Score: 0

    If this is truly what Oracle's case boils down to

    The part that boiled away is that Google killed Sun's Java income from phones and such by cloning Java and giving it away for free (the trial presents evidence of J2ME licensees not renewing due to Android). But killing a decent company like Sun by copying their software isn't illegal.

    Google being the lessor of two evils isn't saying much when the other one is Oracle.

  86. Re:A high schooler? by Anonymous Coward · · Score: 0

    It's used like for(; index < hi; index++), same as with for(; index < array.length; index++). Other use is nRemaining = lo - hi; to decide if array is small enough for simpler sort algorithm. With inclusive range you'd have to write <= hi and lo - hi + 1 all around the place

  87. Re:A high schooler? by snowsmann · · Score: 3

    No need to be so pedantic. Regardless of the binary-ness of the situation, there is still always an analog component. For something to become binary there needs to be a threshold, a majority has it's threshold set to 50%. If one then passes the threshold, but barely, then one could say that there is "barely a majority". This concept can be extended to vast majority (i.e. ~75%) and what I meant with vast vast majority is that some percentage (well over 50%) of Americans fall into that category. Probably asymptotically approaching 100% given the way the World populace is headed...

    Btw, not all programmers are computer science/information theory types. There are those of us who are real electrical engineers who realize that a transistor has infinite states and it is only a simplification that we see it as binary; greatly reducing the complexity of computer style circuit design.

    --
    timeo Danaos, et dona ferentis
  88. Oracle is abusing the courts by kawabago · · Score: 1

    This looks more like Oracle using the courts to drive competitors from the market than to redress any kind of injury to itself. I think it's time for consumers to start suing corporations for anti-competitive behavior that customers end up paying for.

    1. 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.

    2. Re:Oracle is abusing the courts by farble1670 · · Score: 1

      oracle has an army of lawyers on staff. if they aren't suing, then they are twiddling their thumbs. this is (almost) a no-lose situation for oracle. they are rolling the dice. if they get lucky with the right jury / judge combo, they could get rich. if not, no harm done, barring some insignificant legal fees.

    3. Re:Oracle is abusing the courts by MightyMartian · · Score: 1

      It is very much a lose situation, because if Oracle doesn't win, it means the JVM has a direct competitor that people can recompile their Java apps on, and with Dalvik now on every bloody Android device out there, it means there is a market to build from. In real terms, it means Oracle loses control of Java once and for all.

      --
      The world's burning. Moped Jesus spotted on I50. Details at 11.
  89. Re:A high schooler? by bistromath007 · · Score: 1

    It's an exact 1:1 copy of something so retardedly basic one could easily accidentally handcraft. It's practically just providing a canonical example of exception handling.

    I mean... seriously. This is what Oracle is wasting everyone's time with. And they're allowed to. FTGE.

  90. Re:A high schooler? by LocalH · · Score: 1

    The racism (although I hesitate to call it racism as it's not targeted to my ethnicity, but my national heritage).

    No, it didn't add anything to the discussion, but /. shows I got +3 on that post (not counting my bonus) , strangely. Not that I need it ;)

    --
    FC Closer
  91. Re:A high schooler? by sl4shd0rk · · Score: 1

    the guy who wrote it gave it to both Sun AND Android.

    Um.. not sure who your "guy" is. Noser is the alleged contracting company who allegedly worked with the rangeCheck code, even after getting explicit specs. this is the crux of the argument;

    "Bornstein stated that he removed some elements of Java from Android last year after Oracle filed their case in court. He explained that the Java elements came from a Swiss contractor called Noser Engineering AG, who helped them built Android. He also stated that the contracter was given instructions as to what they can and cannot use for Android. Bornstein also stated that the only thing they copied from Java are those available for public use and do not require any license from Oracle. He also admitted that he is being paid $400 per hour by Google for his time in court."

    --
    Join the Slashcott! Feb 10 thru Feb 17!
  92. Re:this is a serious problem by Anonymous Coward · · Score: 0

    Between 1 and 3 lines....

  93. Re:A high schooler? by Guspaz · · Score: 2

    bool rangeCheck(int value, int lowerBound, int upperBound)
    {
        return value >= lowerBound && value <= upperBound;
    }

    So, Oracle is suggesting that Google would rather copy something like this to save time than spend the thirty seconds to type it out themselve? OK, sure, the Java one is 9 lines long, not one line long, because it has some exception handling, but seriously...

  94. Re:A high schooler? by Anonymous Coward · · Score: 0
    Indeed. It also helps to consider a textual equivalent. The 9 lines of code in question are basically:

    If the number is outside of the range, throw an error.

    Copying that sentence verbatim from some other source into your new technical document wouldn't be copyright infringement. The amount of material is too small, the creativity involved is negligible, and the economic harm to the original writer is nil.

  95. Re:A high schooler? by forand · · Score: 1

    If the parent to your reply is correct that "the guy who wrote it gave it to both Sun AND Android" then Sun did need to register that it owns the copyright and could somehow limit the rights of the author to distribute the code.

  96. high school then why does goolge want PHD's by Anonymous Coward · · Score: 0

    high school then why does goolge want PHD's for tech jobs?

  97. Re:A high schooler? by Anonymous Coward · · Score: 0

    If "the guy who wrote it gave it to both Sun AND Android", who owns it depends on what rights were transferred. Yet another chance for the attorneys to argue here...

  98. Re:A high schooler? by Nethemas+the+Great · · Score: 1

    No, the code posted above was eaten by filters. The actual code in question may be found here. You can see clearly that there is a check to verify that "fromIndex" is greater than or equal to zero, that "toIndex" is greater than or equal to "fromIndex" and that "toIndex" is less than "arrayLength". In sum, a basic range check function easily recreated by any geeky child and something that would have taken Google engineers an equal amount of time write as it would to copy/paste.

    --
    Two of my imaginary friends reproduced once ... with negative results.
  99. 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 ;-)

  100. Re:A high schooler? by colinrichardday · · Score: 1

    Not really. Mechanisms are patentable, algorithms aren't.

    http://en.wikipedia.org/wiki/Karmarkar's_algorithm#Patent_controversy

  101. Re:A high schooler? by Nethemas+the+Great · · Score: 1

    I'm glad someone did...

    --
    Two of my imaginary friends reproduced once ... with negative results.
  102. Re:A high schooler? by Junta · · Score: 1

    how else might one write it?

    Different indentation maybe?

    --
    XML is like violence. If it doesn't solve the problem, use more.
  103. Re:A high schooler? by Ihmhi · · Score: 3, Funny

    And the other half coulda banged out the code in binary using a toy xylaphone in pre-school.

  104. Re:A high schooler? by KlomDark · · Score: 1

    Back in my day, young one, keyboards didn't run on batteries...

  105. Re:A high schooler? by Anonymous Coward · · Score: 0

    Gotta love all these "smart" posters biting on a FP troll.

  106. Re:A high schooler? by Anonymous Coward · · Score: 3, Funny

    I know right.

    Why I bet that half of the population of America is below average even.
     

  107. Re:none other than by TaoPhoenix · · Score: 2

    I wanna know whether David Bowie could programs those nine lines faster than David Boies.

    --
    My first Journal Entry ever, in 8 years! http://slashdot.org/journal/365947/aphelion-scifi-fantasy-horror-poetry-webzine
  108. 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.
  109. Re:A high schooler? by Sulphur · · Score: 1

    IMHO, Oracle's lawyers were plain stupid in this issue.

    HOW IN HELL they didn't run a background check on the judge? Books are public information!

    Common! Know your enemy! the more basic rule in any conflict management!

    I would mark carefully the names involved in this process. This is lawyer that I would *never* hire.

    He checked out Range Checking for Dummies.

  110. Re:this is a serious problem by Anonymous Coward · · Score: 0

    Obviously not enough; he's still breathing!

  111. 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.
  112. Re:A high schooler? by jbengt · · Score: 5, Informative

    SCO had the same lawyer.

  113. Re:A high schooler? by Barbara,+not+Barbie · · Score: 1

    The code that did the actual speed-up (TimSort) wasn't written by a sun employee - it was ported - by the original author - from python.

    Also, rangecheck isn't eligible for copyright on its own - it's purely functional, no originality, no "advancing the state of the art" - even the JUDGE could (and did) write it. Yo can't copyright something that is purely functional, no matter how much "sweat of the brow" may have been involved. Don't argue with me - take it up with the Supremes, because that's their take on it post-Feiss.

    --
    Let's call it what it is, Anti-Social Media.
  114. Re:A high schooler? by Barbara,+not+Barbie · · Score: 1

    You *cannot* register a copyright for something that is purely functional, a "scene a faire", or otherwise not creative. The rangecheck function is not eligible for copyright, any more than the linux headers were when RMS tried to make some stupid anti-android fud to try to promote the GPLv3.

    --
    Let's call it what it is, Anti-Social Media.
  115. Re:A high schooler? by betterunixthanunix · · Score: 0

    Little kids may not have access to computers that they can run their own programs on...

    --
    Palm trees and 8
  116. Re:A high schooler? by Barbara,+not+Barbie · · Score: 1

    Noser didn't write rangecheck - they decompiled the class file (a fact that both sides now stipulate). However, rangecheck isn't even eligible for copyright protection - it is neither creative nor original, being purely functional. The judge in this case "gets it."

    --
    Let's call it what it is, Anti-Social Media.
  117. Re:A high schooler? by Barbara,+not+Barbie · · Score: 1

    There's not much to argue - rangecheck isn't eligible for copyright by anyone. It's purely functional, there's really only one way to do it, it lacks the element of creativity necessary for copyright protection, and Oracle is grasping at straws. The judge made this quite clear when he told them that they were making a mistake not just accepting an offer of statutory damages and dropping it.

    --
    Let's call it what it is, Anti-Social Media.
  118. Re:A high schooler? by Eponymous+Hero · · Score: 1

    60% of the time they're below average all the time

    --
    insensitive clod overlords obligatory xkcd car analogy russian reversals whoosh pedant fanbois ftfy in 3...2...1..PROFIT
  119. Re:Ya but... by Eponymous+Hero · · Score: 2

    lame troll attempt? patents have to describe a process that isn't obvious. range checkers for any language have a very limited number of ways they could be implemented efficiently, and are thus obvious.

    --
    insensitive clod overlords obligatory xkcd car analogy russian reversals whoosh pedant fanbois ftfy in 3...2...1..PROFIT
  120. Re:A high schooler? by jbengt · · Score: 1

    You don't need to register copyright. But you do need to register before you sue, or you can't win things like "infringer's profits".
    Also, IIRC, the range check code was contributed to Java with Sun receiving an irrevocable license to use it and the contributor retaining his copyright. (It's possible, though, that that could be wrong; I read it on the internet and am too lazy/busy to look it up again at work)

  121. 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
  122. Re:A high schooler? by spyked · · Score: 1

    Yep, and here's something even funnier (this time on purpose): http://www.cs.utexas.edu/users/EWD/transcriptions/EWD04xx/EWD475.html

    I mean I'm not saying people always make good decisions.

  123. Re:A high schooler? by BenoitRen · · Score: 1

    Sort of like how Javascript lacks an Array.indexOf method to find a certain item in the array.

    Array indexOf method

  124. Re:A high schooler? by Anonymous Coward · · Score: 0

    dictionary.reference.com/browse/ethnicity
    noun, plural ethnicities. 1. ethnic traits, background, allegiance, or association. 2. an ethnic group

    Are you associated with America?
    Do you have allegiance to America?
    Is your background most recently in America?

    If yes to any of the above then your ethnicity is American.
    If yes to any of the above but you believe your ethnicity to be other than American then you're doing it wrong, or digging too deep into history to claim your ethnicity.

    As for "race", see here:
    http://en.wikipedia.org/wiki/Race_%28human_classification%29#Modern_debate

    Today, all humans are classified as belonging to the species Homo sapiens and sub-species Homo sapiens sapiens. However, this is not the first species of homininae: the first species of genus Homo, Homo habilis, are theorized to have evolved in East Africa at least 2 million years ago

    If you're using "homo sapiens" as your race and American as your ethnicity then you're doing it right. Alternatively you can argue we are all Africans. Any other use is wrong. There is no black or white race. Only a person seeking to justify positive or negative treatment of another based on skin color (ie:a bigot) argues otherwise.

  125. Re:A high schooler? by Anonymous Coward · · Score: 0

    No smarter either, which is a huge problem when living in a technological society.

  126. Re:A high schooler? by secret_squirrel_99 · · Score: 1

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

    Oracle still needs to show damages, they have none, or that Google created by virtue of this copying, a commercial advantage. Again there is none. End result, they copied a trivial function rather than spending 5 minutes writing it. Its a non-issue.

    --
    If privacy had a tombstone it would read "We did it for your own good" . -- John Twelve Hawks
  127. Re:A high schooler? by Anonymous Coward · · Score: 0

    ..are no more stupid...

    there fixed that for you.

  128. Re:A high schooler? by Anonymous Coward · · Score: 0

    Larry Ellison doesn't need to save up for yachts.

  129. Re:A high schooler? by jbengt · · Score: 1

    I do not believe that that is related to range check. I believe Noser had to do with the test files that were unnecessarily included in the distribution of Android and are no longer present.

  130. Re:A high schooler? by alonsoac · · Score: 2

    There are all kinds of majorities defined for things like voting for laws in parlament. Some types of laws require bigger majority, one could say a vast majority, to be approved. A programmer should be aware of these real-world situations and code appropiately.

  131. Re:A high schooler? by jbengt · · Score: 1

    Mod parent up

  132. Re:A high schooler? by Anonymous Coward · · Score: 0

    GP isn't talking about Larry. He is talking about Larry's lawyers, whom Larry is paying (in GP's case it is by the hour).

  133. Re:A high schooler? by alonsoac · · Score: 1

    so is this in the public domain now? Will I get sued for using it or should I forget I even saw it and come up with a really original way to do a range check to be safe?

  134. Re:A high schooler? by alonsoac · · Score: 1

    you should have been out learning how to function in a social world.

  135. Re:A high schooler? by Anonymous Coward · · Score: 0

    As I am reading this, I just remembered I reviewed someone's code today that included a range check.
    Fortunately it wasn't the same as it wasn't the same programming language.
    I'd guessing by my co-worker's salary, it was worth about $9, plus $2 for me to review it.

  136. A certain Mr Boies is involved by bytesex · · Score: 1, Informative

    That is all that should be said about this case. The guy cannot seem to help finding himself on the wrong side of a technological argument. Why do they keep hiring him ?

    --
    Religion is what happens when nature strikes and groupthink goes wrong.
  137. Re:A high schooler? by h4rr4r · · Score: 1

    Why not?
    Not like they need kernel access, just user space programs, and only needs to be installed in their own user stuff.

    If the parent bought a device that requires signing of code, then I am sure they can afford the $99/ year. I always hear on slashdot that it is such a low price it will never hinder anyone.

  138. Re:A high schooler? by Darinbob · · Score: 2

    Which is exactly why Boies says he couldn't program it in 6 months. He needs more billable hours than that! Only chumps like poor high schoolers would write it more quickly.

  139. 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.

    1. Re:Oracle surrenders? by nahdude812 · · Score: 1

      Its that the Google employee who wrote it

      Only a Google employee in the sense that he worked for a 3rd party firm (Noser Engineering AG) Google hired to help create Android.

    2. Re:Oracle surrenders? by WarlockD · · Score: 1

      Humm. It might seem that Oracle's laywers are pulling at straws, but I think they had this argument as a backup. Right now they are trying to save face so they threw this in because they don't think the jury is going to rule in their favor on the first, so maybe throwing in a less technical argument and more "Goggle is evil" will work.

      The argument is not about the 9 lines of code, the lawyer isn't a coder, the idea is that Google copied the original java to get an idea on how the VM worked. Like how a programmer reads other peoples code to improve his own skills. By doing so, while not specifically infringing, it spread up Android's development, making Google getting to the market faster. Essentially, their argument is, without the decompiled java code Google would not of released sooner, thus, not made "as much" money.

      Its all a fishing expedition though. They are hoping the CEO will make some stupid comment. Even if he does, they have to prove a nexus. That is
      1. Decompile Java code to get Android out faster
      2. Nexus?
      3 .Profit!

      Otherwise, all that effort is in vain as even if they say it did speed up the Android to market, it doesn't matter if it didn't help Google any.

      PS = IMNAL but IRTFA:P

    3. Re:Oracle surrenders? by DragonWriter · · Score: 2

      The argument is not about the 9 lines of code

      Part of it is, part of it isn't.

      the lawyer isn't a coder,

      Well, he certainly claims not to be a "Java expert"; whether he is a coder or not is, I don't think, a point on which there is much basis to make a conclusion, nor is it particularly relevant in any case.

      the idea is that Google copied the original java to get an idea on how the VM worked.

      No, its not (well, not in the copyright portion of the trial) because ideas aren't protected by copyright, and not even Oracle's lawyers -- as close to it as they come with the API SSO issue -- are going to try to outright make "they stole our idea" the basis for a claim for copyright liability, since even the most clueless federal judge imaginable would have to throw out that argument.

      (Obviously, there claim is that specific ideas were stolen in the patent phase, but that's a whole different ball of worms. And, no, the mixed metaphor is not accidental.)

      They also aren't making the argument you suggest since, aside from ideas not being so clearly outside the scope of copyright protection that not even BS&F would try that argument, the decompiled files at issue aren't part of the VM at all, but part of Sun's compatibility test suite.

      The 9 lines of code, by the way, aren't even the same issue as the decompiled files -- the 9 lines of code are code that a Google employee wrote and contributed both to Android and OpenJDK, and have nothing to do with the 8 files decompiled by Noser while under contract to Google.

      PS = IMNAL but IRTFA:

      Assuming the obvious interpretation of the acronyms there, I must point out that "read" and "understood" are two different things.

  140. much better way to code that by Anonymous Coward · · Score: 0

    There are plenty of other ways it could have been written, some of them would have been better.

    Google could have used a ternary operator instead of two if checks.

    Or, which would have been a durn sight more helpful for debugging, when they threw the exception for a mismatch between the fromIndex and arrayLen values they could have included those problem values in the exception data. Instead the only value thrown with the ArrayIndexOutOfBoundsException was the only one that wasn't a problem. That's the kind of programming mistake that strongly supports a conclusion that the Google programmer was blindly copying from the Oracle code instead of thinking about the task.

    Much like an example I heard yesterday from a teacher: "you would think when someone looks up several words in the English/Spanish dicionary and all of them were 'sustantivo' or 'proposicion' that they'd realize that was the part of the speech and not the translation of the word".

  141. Programmer by birthright by Just+Some+Guy · · Score: 1

    His parents named him "Haskell". It was inevitable.

    --
    Dewey, what part of this looks like authorities should be involved?
  142. 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 /.
  143. Re:A high schooler? by GofG · · Score: 2

    Never hire?

    Oracle's lawyer is David Boies, who is widely reputed to be the best lawyer around today. He did Microsoft vs United States, he did Justice Department vs IBM, he did Bush vs Gore (!!!!!!!!!!!!).

    --
    GFA/M/S d-- s: a--- C++++ UBL++$ P+ L+++ !E- W++ N+ !o K- w--- !O !M !V PS++ PE Y+ PGP+ t+++ 5- X+ R tv@ b++ DI++++ D+ G
  144. Re:A high schooler? by TubeSteak · · Score: 1

    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.

    You might be surprised to learn that the vast majority of mobile phones in the USA and the world are not smart phones.
    http://en.wikipedia.org/wiki/Feature_phone

    Mobile java is going to be around for a looong time, mostly because 70% of global cell phone purchasers can't afford smart phones.

    --
    [Fuck Beta]
    o0t!
  145. Re:A high schooler? by colinrichardday · · Score: 1

    I believe a negative index would throw an out of bounds exception

    java.lang.ArrayIndexOutOfBoundsException

  146. Re:A high schooler? by ljgshkg · · Score: 1

    Not being able to write code doesn't mean you're stupid. But if you really can't write a range checking code within a day, even if you have no programming background, it's pretty bad xd

  147. Re:A high schooler? by Grishnakh · · Score: 0

    Exactly. If Americans aren't any smarter on average than Zimbabweans or Bolivians or Paraguayans or Somalians or Burmans, then they're going to have a hard time trying to maintain a technological society and an economy so much stronger than those countries. And with the way things seem to be going in America these days, it looks like they're not going to succeed in that for much longer.

  148. Re:A high schooler? by boxxertrumps · · Score: 1

    Seven? Talk about a late start!

    What did they teach you in kindergarten, long division? *snicker*

  149. Re:"I probably couldn't program that in six months by Jeng · · Score: 2

    I know absolutely jack shit about programming, but I am fairly certain that if I went to school for six months to learn how to program that it would be trivial for me to write that function.

    The concept is just so simple that even I get it.

    --
    Don't know something? Look it up. Still don't know? Then ask.
  150. Re:A high schooler? by Darinbob · · Score: 1

    They copied the API so I presume the parameter names are listed right there in the API and they just used that. The exception names are of course spelled out in the API as well. So you really only have two ways to write this function, differing only in which conditional you check first. Even the line breaks seem to be based upon standard coding rules of a max 60 to 80 chars per line.

  151. Re:A high schooler? by Anonymous Coward · · Score: 0

    RTFA.
    He learned to code during the trial.

  152. Re:A high schooler? by Anonymous Coward · · Score: 0

    the Java one is 9 lines long ... because it was written in Java

    FTFY

    I could write it with exceptions in 5 lines in Python including the definition of RangeError.

    class RangeError (Exception): pass
    def rangeCheck(value, lowerBound, upperBound):
        if value<lowerBound: raise RangeError("Too Low")
        elif value>upperBound: raise RangeError("Too High")
        return True

  153. Google's Lawyer Says Otherwise by andersh · · Score: 1, Informative

    Are you sure about that?

    Josh Bloch, who wrote rangeCheck, testified that “[a]ny competent high school programmer could write” that method. RT 815:13-16 (Bloch). Even Oracle’s expert Dr. Mitchell conceded that “a good high school programmer” could write rangeCheck with guidance. RT 1316:24-25 (Mitchell).

    http://www.groklaw.net/article.php?story=20120516083919975&query=rangecheck

    To quote Google's lawyer in court today:

    [PJ: Let me remind everyone that the testimony was that a contractor, Noser, did it, and it did it contrary to specific instructions from Google.]

    Let me come back to rangeCheck. Every time I talk about this, I feel like I'm either saying it's important or it's not important. That's a false dichotomy. No one can say it's a big thing. But it was something that was copied, and it was important to TimSort, which had a significant performance advantage.

    http://www.groklaw.net/article.php?story=20120515120106322&query=rangecheck

    P.S. I admit that I could be wrong, I'm not following the case that closely, but this does seem clear cut?

    1. Re:Google's Lawyer Says Otherwise by squiggleslash · · Score: 2
      Uh, yeah. I'm sure about that. Google's lawyer's comments really don't relate to the history of this, they're just convenient off-the-cuff wording.

      From a copyright point of view, yes, there was copying because the author of the code was not the copyright holder. From an actual copying point of view, there wasn't, because the author of the code was the author of the original.

      --
      You are not alone. This is not normal. None of this is normal.
    2. Re:Google's Lawyer Says Otherwise by DragonWriter · · Score: 2

      Misreading on several points.

      To quote Google's lawyer in court today:

      Your post ws posted at 2:57pm on Wednesday, May 16; the article you link to was posted on (and transcribes court discussions that occurred on) Tuesday, May 15. So, "today" probably isn't the word you are looking for.

      More importantly, you've confused Oracle's lawyer with Google's. I've broadened the excerpt that you provided to include the part that shows who is talking (material that was excluded from your excerpt is bolded):

      Oracle: 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. Let me come back to rangeCheck after I've reminded the Court about the test files.

      These test files were created by decompiling the Oracle code -- Sun code. That was not an accident, and not something they did by mistake. They did it intentionally, and they did it for the purpose of saving money, or time, or both. You can't look at those decompiled files and say there's no meaning in that; it accelerated Android, that's why they did it.

      [PJ: Let me remind everyone that the testimony was that a contractor, Noser, did it, and it did it contrary to specific instructions from Google.]

      Let me come back to rangeCheck. Every time I talk about this, I feel like I'm either saying it's important or it's not important. That's a false dichotomy. No one can say it's a big thing. But it was something that was copied, and it was important to TimSort, which had a significant performance advantage.

  154. Re:A high schooler? by DragonWriter · · Score: 1

    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.

    It does both more (checks more numbers) and less (doesn't deal with actually passing the numbers anywhere) than that: it actually checks two numbers against an array, and throws an exception if either of the numbers is a bad number. Passing the numbers somewhere else is the responsibility of the calling code.

  155. Re:A high schooler? by Anonymous Coward · · Score: 0

    Luckily it ate it from both code snippets so no damage done :)

  156. Re:A high schooler? by jedidiah · · Score: 1

    Except this sort of thing doesn't require being able to code.

    It doesn't even require being aware of the existence of computers.

    That's one of the fun things about computing. A lot of it is pure math and some of it isn't even that.

    --
    A Pirate and a Puritan look the same on a balance sheet.
  157. Re:A high schooler? by Anonymous Coward · · Score: 1

    A seven year old could probably do it faster; they haven't "learned" yet that they're dumb.

    High schoolers are educated stupid. It will be impossible for your educated stupid brain to know that 4 different corner harmonic 24 hour Days rotate simultaneously within a single 4 quadrant rotation of a squared equator and cubed Earth.

    Man invented his God in man's character - Stupid Oneism and Singularity in Universe of Opposites. God BELIEF succumbs to The Cubic Law of Nature.

  158. Re:A high schooler? by amicusNYCL · · Score: 1

    Yes, I'm aware that it has been added to more recent versions of Javascript. Assume for a moment you wanted to support IE8 though.

    --
    "Our two-party system is like a bowl of shit looking at itself in a mirror." - Lewis Black
  159. Re:this is a serious problem by circletimessquare · · Score: 1

    i thought i was making a joke, but since i am rated zero, i either went completely past funny and hit insane, or people have lost their sense of humor

    hello mods... no one sees the possibility that my post above is a joke?

    --
    intellectual property law is philosophically incoherent. it is your moral duty to ignore it or sabotage it
  160. Re:A high schooler? by Hognoxious · · Score: 2

    He knows. I know. Everybody knows.

    The point is that if Orible lose, Larry's armada will sally forth and sink the shyster's new toy.

    --
    Confucius say, "Find worm in apple - bad. Find half a worm - worse."
  161. Re:A high schooler? by nahdude812 · · Score: 1

    Implemented in JavaScript 1.6

    IE 5.5 through IE 8 use JavaScript 1.5.

    So you can only depend on it if you are willing to shut out close to 20% of your target market (that's why we do something like if (typeof Array.prototype.indexOf == 'undefined') { Array.prototype.indexOf = function(needle) { ... } })

  162. Re:A high schooler? by Anonymous Coward · · Score: 0

    It doesn't even do "checks a number, and passes it somewhere if it's a good number."
    It does a couple of checks, and while doing so, throws an appropriate exception if any of those checks fail. If none of the checks fail, it simply returns.

  163. Re:A high schooler? by betterunixthanunix · · Score: 1

    If the parent bought a device that requires signing of code, then I am sure they can afford the $99/ year. I always hear on slashdot that it is such a low price it will never hinder anyone.

    First of all, I do not know who you hear that from -- that price could be more than someone is willing to pay just to give their kids a chance to write some programs.

    More importantly, a young child may never express a desire to program if their computer is designed to stop them from doing so. A lot of people, myself included, broke into programming by experimenting with our computers. Yet a locked-down computer that tries to extract fees from people who want to program is something will discourage kids who are not absolutely determined to learn -- which is going to be quite a few kids. A parent may not spend the money to let their child write programs if their kid does not even ask.

    When I think back to my early days of learning to program, here is what I remember: downloading GCC only any computer I could get my hands on, and using it to compile C programs (I did not actually own my first computer until I was 13). Most of the people whose computers I was using did not seem to mind -- they were mystified by programming but did not want to discourage my curiosity. I wonder how much longer such a thing will be possible, with the current trends in computing. Will an 11 year old in 2015 or 2020 be able to sit down and write programs on whatever computer he can find, or will he only be able to find app stores and locked down computers? Will school computers allow students to write their own programs, or will that only be allowed on computers dedicated to programming classes?

    I am sure that there will always be hackers in the world, kids who learn to program outside of the assigned curriculum and whose parents do not try to discourage their curiosity. What I fear is that the number will shrink, that it will only be wealthy kids who can be hackers (particularly if they must buy a second computer in order to write programs -- like they must with an iPad), and that they will be surrounded by restrictions and demands for money. It is easy for an adult, especially one who works in a technical job, to forget that kids have no income, that they cannot just buy a high end workstation, and that they must often make due with whatever the adults around them are willing to give them (or throw away). Many adults will not stop to think that the children they care for will be restricted by the "easy to learn" computer they bought, or that those restrictions might be detrimental.

    --
    Palm trees and 8
  164. Re:A high schooler? by Teancum · · Score: 1

    You don't need to register copyright, but if you do go through the motions of copyright registration you can (in America) claim statutory damages. Depending on the situation, statutory damages can be more than actual damages and also can count per infringement. If you are having a hard time proving actual loss of sales or trying to come up with a number representing how much the copyright infringement has damaged your ability to earn money from the copyrighted work, you can seek statutory damages instead which sets a minimum amount where all you need to prove is that copyright infringement happened in the first place.

    At the very least such damages can help pay for a competent lawyer and certainly can cause somebody doing willful infringement to pause and take notice about the situation. As an insurance policy, I'd even suggest that open source projects consider every once in awhile to "pass the hat" to collect the fees and take the extra step of formally registering copyright with the Library of Congress (especially for a 1.0 version release or other major updates) if only to discourage anybody stupid enough to engage in willful copyright infringement. It also shows that you are being serious about copyright enforcement if you go through that step and it also makes the government as a part of your archival process as well by storing as a "backup" repository and date stamping your code base if somebody wants to be real stupid and file a software patent claim against your project. For $50 (or whatever the fee is at the moment) it is a cheap form of legal insurance.

  165. Re:A high schooler? by Hognoxious · · Score: 3, Funny

    Sort of like wml. Before it could fix bayonets and form a defensive square Moore's cavalry had ridden right over it.

    --
    Confucius say, "Find worm in apple - bad. Find half a worm - worse."
  166. Re:A high schooler? by MightyMartian · · Score: 1

    So what you're saying is that he probably feels pretty ashamed making the outrageously retarded argument he's making, or possibly that he was hit by a brick and is now actually retarded.

    --
    The world's burning. Moped Jesus spotted on I50. Details at 11.
  167. Re:A high schooler? by Anonymous Coward · · Score: 0

    You hear expressions like a 'small minority' or a 'tiny minority' all the time. Given that a minority is the complement of a majority why can't it too have degrees?

    Speaking of minorities, are you perhaps a nigger? Your limited intelligence would appear to suggest you are.

  168. Re:A high schooler? by Homr+Zodyssey · · Score: 1

    Most modern IDEs have some sort of code-formatter that would end up making it the same. Also, having similar coding standards would make you end up with the same indentation.

  169. Bloch + Bloch by andersh · · Score: 1

    Yes, it seems you are correct, The Verge has a better summary.

    Bloch testified that he wrote the original rangeCheck code, present in a file called Arrays.java, back in 1997. In court documents, Sun claims a copyright date of 2004 in connection with the rangeCheck code. Block began working for Google in 2004.

    The exact same nine lines are also present in an Android file named Timsort.java, which Bloch testified he wrote in 2007.

    When asked if he had copied the copyrighted Sun code directly for Timsort.java, Bloch initially responded "I don't recall." In a playback of his 2011 deposition, however, Bloch states that "the same order and same name is a strong indicator that it is likely that I did."

    However, he noted that it was a good engineering practice to use the same method, and that he not only contributed the code to Android, but to the Java Development Kit as well (Timsort.java is now part of Java SE 7).

  170. 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.
  171. Re:A high schooler? by Anonymous Coward · · Score: 0

    Not even then (as long as they have internet access).

    If all you want is learn a bit of programming, all the sites like ideone, jsfiddle, repl.it, tryruby/tryhaskell/... will let you do that if you have a browser. There also was some basic IDEs in the appstore, IIRC.

    And on desktop with recent Windows by default you have Powershell, .Net Framework is preinstalled and comes with csc/vbc/jsc (C#/Visual Basic/JScript compilers), Mac OS X has AppleScript (and Python as optional component on the disc), Linux usually has a bunch of interpreters and often gcc out of the box. And of course all of them also have browsers, so you only need ability to save and open .html files to write JS.

    TL;DR: if you're willing to learn programming, all the tools are at arn's length, just as it was since home computers of yore.

  172. Re:A high schooler? by Anonymous Coward · · Score: 0

    Yes, you actually DO have to register Copyright. You can prohibit someone from publishing the same content without a registration- but you're VERY limited in what damages you can ask for when you do that (And we won't get into having to PROVE that you do actually own the Copyright on an un-registered work...). The most you can ever get under those circumstances is statutory... Nothing like the claimed amount- the statutory damages won't get Oracle more than a minuscule fraction of the costs they've incurred up to this point.

    Next time... Do a little research on the IP laws...you're wrong in several ways.

  173. Re:A high schooler? by Teancum · · Score: 1

    If you register copyright after it becomes an issue, you can't sue over previous copyright infringement in terms of seeking statutory damages, but you can use a copyright registration for prohibiting further copyright infringement and raising the specter of seeking statutory damages over future infringement. Often that is enough to convince somebody to stop messing with you, if that is your goal.

    If you perform the registration earlier, it documents that you have been serious about enforcing copyright on a particular work. It also makes the task of seeking damages much, much easier as you don't even need to worry about how much actual damage has been caused due to copyright infringement... in other words you don't need to give a judge some sort of list of how much you lost in sales due to the copyright infringement. All you have to show is that the infringement happened in the first place so you are on the hook for damages as spelled out under the law as passed by Congress. This is the law that the MPAA is using to go after folks who copy movies as illegal torrents as all they have to prove is that you copied their content.... how much money you made or how much money they lost is irrelevant.

    This law does tend to help ordinary folks though, as the statutory damages for most people are substantially higher than anything you can typically prove as "actual" damages, such as how much money you might have lost if your applet on the iPad store was copied by somebody else and they took credit for your work. You might only prove a couple thousand dollars worth of actual damages, but with copyright registration you can claim a substantially larger amount of money from the statutory damages.

    It bites for Oracle though, because they are choosing to dismiss the statutory damages and are going for actual damages on the grounds that they think they will get more money from Google by using the computation for actual damages instead... with the risk of "winning" and potentially still getting nothing if the judge looks through and sees that no actual damage happened other than minor copyright infringement.

  174. Re:none other than by b4dc0d3r · · Score: 1

    The Mythical Man Month suggests it won't get much faster no matter how many David Boies you throw at a problem, and at a certain point you'd actually be slowing the process down.

  175. Time cube reference FTW! by Zinho · · Score: 1

    Thanks, that made me smile. If I had mod points I'd give you a +1 funny.

    --
    "Space Exploration is not endless circles in low earth orbit." -Buzz Aldrin
  176. 9 lines? by Anonymous Coward · · Score: 0

    out of the HOW MANY total? sounds pretty inconsequential to me for something likely found in multiple forum/news postings and libraries that is freely usable by anyone.

  177. Re:A high schooler? by the_B0fh · · Score: 3, Informative

    Please. Boies was the lead lawyer in the Microsoft monopoly trial - against Microsoft. He was one of the best trial lawyers to break up illegal monopolies then.

    Lawyers argue for the side that is paying for them. Just like everyone else - you do the work you're paid to do.

  178. Re:A high schooler? by Teancum · · Score: 1

    Anybody can register a copyright on anything. All it takes is just filing a $50 fee to the Library of Congress along with whatever you want to register. They don't even really look at what you have sent them other than to try and catalog what you've sent to them and your content (computer software, novel, painting, whatever you are trying to register) simply goes into the heap of other stuff being registered and makes the library get a bit larger with its collection.

    As for if a court would recognize that copyright registration, that is something else completely different. The rangecheck function may be eligible for copyright nor not (that is a legal question), and for trivial stuff you are generally correct that it would be a dismissed claim. In other words, if you were trying to sue somebody for copyright infringement over a function like rangecheck, an intelligent judge would throw the case out as soon as you filed the case and perhaps even seek barratry charges against you for filing the lawsuit.

  179. Long live c/c++, the mother of all scripting by Anonymous Coward · · Score: 0

    If only oracle, google would fight until they are complete death!!
    To-Hell JAVA !!

    I've ALWAYS HATED java language! It is NOT a language! It is a coffee brand!!! POINT!

  180. Re:A high schooler? by Hognoxious · · Score: 1

    If you're using "homo sapiens" as your race and American as your ethnicity then you're doing it right.

    No he isn't. Homo sapiens is a species.

    Race is a subset of the species, i.e. the equivalent of "breed" in domestic animals.

    --
    Confucius say, "Find worm in apple - bad. Find half a worm - worse."
  181. Re:A high schooler? by MaskedSlacker · · Score: 0

    For example you can have a 1% majority

    I think that word does not mean what you think it means.

  182. Re:A high schooler? by Anpheus · · Score: 2

    On the contrary, they could be negatively affected if all those proprietary languages which are locking them in cannot be re-implemented under the force of law. Those proprietary languages right now have to stay competitive knowing that high prices would encourage an alternative to enter the market. To put it another way, if Microsoft doubled the price of Windows, they might retain enough users to make more money, but they'd also risk a flight to WINE, and I guarantee you a lot of those potential customers, particularly large businesses, would look at moving away from a dependency on Win32/Windows. Now imagine if Microsoft didn't have to worry about the competitive pressure of WINE, and no one else could legally duplicate Win32?

    Now, of course, Microsoft has other competitive pressures, and their price choice is probably not dominated by the potential for competition, but for niche programming languages and environments, I would guess they are. My friend, an economics major, was faced with the potential of having to spend $500 for a single user license for some very niche regression analysis software that had a particular API and programming language. If they can get away with charging college students and academics $500, they must not be overly concerned with competition. A ruling on the copyrightability of APIs in favor of Oracle would make it so they wouldn't have to worry about any competitors claiming "compatibility" with their software.

  183. Re:A high schooler? by cvtan · · Score: 1

    But 70% of American drivers are above average!

    --
    Sorry, but gray text on gray background is making my eyes bleed.
  184. Let's play a word game by Anonymous Coward · · Score: 0

    "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."

    I'm not an expert on math -- this is my second case on math, but I'm not an expert, and I probably couldn't add 2 plus 2 in six months.

    I'm not an expert on physics -- this is my second case on physics, but I'm not an expert, and I probably couldn't throw a ball in six months.

    I'm not an expert on astronomy -- this is my second case on astronomy, but I'm not an expert, and I probably couldn't find the moon in six months.

    I'm not an expert on language arts -- this is my second case on language arts, but I'm not an expert, and I probably couldn't speak my own name in six months.

    I'm not an expert on medicine -- this is my second case on medicine, but I'm not an expert, and I probably couldn't produce a bowel movement in six months.

    I'm not an expert on aerospace engineering -- this is my second case on aerospace engineering, but I'm not an expert, and I probably couldn't make a paper airplane in six months.

    Frankly, I'm a little concerned that this is his SECOND case on Java. I hope it's his last.

  185. Re:A high schooler? by Teancum · · Score: 1

    It gets worse. The judge even reminded the Oracle lawyers that if they sought actual damages instead of statutory damages, that the amount he may award them might end up being $0 instead of the hoped for millions or even billions that Oracle wants even if infringement is found as a finding. Oracle chose to go for actual damages, giving the judge an easy out to find infringement but still award $0. It could even backfire for Oracle if infringement doesn't happen as they could even be liable for legal fees and other damages.

  186. Not as trivial as everyone is saying by goombah99 · · Score: 1

    The problem is not how to check of a range is between bounds. Rather the problem is knowing you need to range check at that point. After all a higher subroutine might have already range checked it. Unnecessary range checks on every subroutine entrance would be inefficient. Thus this is a global design issue and takes a comprehensive knowledge to know. It's that knwoeledge that google stole by copying the pattern from oracle. Other design issues are, how do you pass in or obtain the bounds? Those are data structure issues. What exception to call? how do you make sure it does not break legacy code depending on some behaviour?

    The problem here is the Lawyers are too simple minded to understand it's not the code itself but how the code affects the design that matters. And the judge knows just enough to understand that code itself is trivial but not enough to look beyond what the lawyers say is important.

    since car analogies are obligate: It's like the guy that goes to the mechanic with a mysterious clunking noise. The mechanic listens for 5 seconds then pulls out a ball peen hammer and whacks the side of the alternator one time. The noise goes away. The guy gets his bill and it says $100. He says it only took the mechanic 5 seconds to do the job. The mechanic takes the bill and itemizes it.

    tapping the alternator: 1$
    knowing where to tap: 99$.

    --
    Some drink at the fountain of knowledge. Others just gargle.
    1. Re:Not as trivial as everyone is saying by countach · · Score: 1

      Range check at what point? Nobody as far as I've heard has made any argument about where and when this routine might be called. Do you know something we don't?

    2. Re:Not as trivial as everyone is saying by n7ytd · · Score: 1

      The problem here is the Lawyers are too simple minded to understand it's not the code itself but how the code affects the design that matters. And the judge knows just enough to understand that code itself is trivial but not enough to look beyond what the lawyers say is important.

      Is it the judge's job to "look beyond" what the lawyers are presenting? If one of the lawyers botches it and doesn't illuminate an important point, is it up to the judge to do it for him?

  187. Bloch worked (works!) for Google, not Noser by DragonWriter · · Score: 2

    Bzzt. Wrong.

    Only a Google employee in the sense that he worked for a 3rd party firm (Noser Engineering AG) Google hired to help create Android.

    No, not at all. Josh Bloch worked for Google as Chief Java Architect (not for Noser) when he wrote rangeCheck (and still works for Google in the same role.) You seem to be confusing rangeCheck with the 8 decompiled files, which were done by Noser Engineering AG. Those are the two independent issues on which copyright infringement has been found in Oracle v. Google.

  188. Lawyers bill for writing code by ZombieBraintrust · · Score: 1

    Can you imagine the bill if you used lawyers to write code. No wonder they estimated a billion dollars of infringement.

  189. Re:A high schooler? by Teancum · · Score: 2

    Because of the complexity of the case and the amount of time being spent on discussing programming concepts, the judge decided to take some personal time and learn how to program. In other words, he learned how to code while he was adjudicating the case.

    I am impressed by somebody in a position like his taking that effort, and it shows not only the intelligence of the judge but that he was trying to apply the principles he was learning about in the course of the trial. I don't think there is any indication that the judge had studied or knew much about coding prior to the trial, but it does show that he is trying to make extra effort to understand the issues involved.

    I admired the extra effort that Judge Jackson did with the DOJ v. Microsoft case where he went out of his way to explicitly try to remove Internet Explorer from his computer and noted how difficult Microsoft had made the task. I could name a few other examples but it is a rare judge to make that kind of effort.

  190. Re:A high schooler? by Anonymous Coward · · Score: 0

    Wow, way to show your ignorance of copyright.........better go do some research before you look even dumber by your lack of knowledge.

  191. Re:A high schooler? by Anonymous Coward · · Score: 0

    A copyright is not a patent.

  192. Re:A high schooler? by heathen_01 · · Score: 1

    Java developers can't be trusted to indent properly, your code will be formatted post check in.

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

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

  194. Re:A high schooler? by Anonymous Coward · · Score: 0

    He checked out Range Checking for Judges.

  195. Re:A high schooler? by h4rr4r · · Score: 1

    I also believed that, but the i$THING folks here tell me that there exists no such danger.

    I was actually making a satirical remark about this exact topic. Sorry it was unclear.

  196. Re:A high schooler? by betterunixthanunix · · Score: 1

    Hint:

    --
    Palm trees and 8
  197. Re:A high schooler? by betterunixthanunix · · Score: 1

    On the contrary, they could be negatively affected if all those proprietary languages which are locking them in cannot be re-implemented under the force of law.

    That is the risk one assumes with a proprietary language, regardless of whether or not APIs can be copyrighted. People who use proprietary languages do not generally view this as being a problem, or at least they consider the risk to be acceptable.

    --
    Palm trees and 8
  198. Re:A high schooler? by rhook · · Score: 1

    I implemented range check functions in about half the programs I wrote in my first programming class. It is quite trivial to do so.

  199. Re:A high schooler? by the_B0fh · · Score: 1

    No fragmentation? A friend was just bitching about his Word With Friends. Apparently some of the buttons are simply not accessible because the UI was created on one phone, and whatever that phone is, had a bigger screen resolution than his phone, so some buttons disappear off screen.

  200. Re:A high schooler? by rhook · · Score: 1

    Oracle's lawyers are most likely salaried employees, they do not get paid by the hour.

  201. Re:A high schooler? by Anonymous Coward · · Score: 0

    You are confusing a copyright claim with patent claim. Copyright doesn't cover the usefulness of the code, that is for a patent. Google's revenue would only be attributable to Oracle if Google was trying to sell that copied code in a picture frame, a book, or maybe sing it in a song or something. In this case the words are meaningless and have no part of what google is selling/giving away.

  202. Re:A high schooler? by Anonymous Coward · · Score: 0

    Technically, it's NOT patentable (in re Bilski nuked that from orbit...). And this is Copyright we're talking about right at the moment...and...it's NOT Copyrightable. Purely functional content isn't Copyrightable.

  203. Re:A high schooler? by steelfood · · Score: 1

    Yes, but in most other places, they're not particularly proud of that quality. Most of those people seek to better themselves by become better educated, more spiritual, etc. (not say the net outcome is necessarily positive).

    Here, people like to assert their own superiority even when there is none. They feel that somehow, because they are themselves, it automatically means they are superior to everyone else. It's not just that mentality though. As a consequence of this thinking, it automatically implies that everyone else should be more like them.

    --
    "If a nation expects to be ignorant and free in a state of civilization, it expects what never was and never will be."
  204. Re:A high schooler? by MightyMartian · · Score: 1

    I recall implementing a range check in my Pascal class in high school. I mean, we're talking bare bones, first year programming here. The idea that somehow you could claim any kind of copyright over such a function is so ludicrous that I almost pity the lawyer, who must realize just how wildly idiotic the claim is. I guess his compensation is that it is his inept client actually making the claim, but still, this is a very basic concept that goes right back to sanity checks on input, and I'd have a hard time holding my head up after having made that kind of an argument for a client.

    --
    The world's burning. Moped Jesus spotted on I50. Details at 11.
  205. Re:A high schooler? by Barbara,+not+Barbie · · Score: 1

    The stupids are out in force today. (yes, I mean you).

    Unless you register the copyright, you can only ask for actual damages, not statutory damages.

    Oracle didn't present any evidence that they registered copyright to rangecheck and/or timsort. All they presented was a registration for the collective work, as a compilation - and a blank dvd with the "source."

    Realizing how much trouble they're in, and that even if the judge decides that they're allowed statutory damages, their damages are now limited to $750 to $30,000.

    While it can be adjusted upward to as much as $150,000 if the infringement was willful, Oracle hasn't presented any proof that it was willful, and Google has presented proof that it was a 3rd party contractor - the people at Noser - who decompiled rangecheck, contrary to Google's orders, so in the case of accidental infringement, the damages can be as low as $200.

    And that's dependent on the judge first finding that there's no fair use argument, and that the particular elements are in fact eligible for copyright - which in the case of rangecheck is not the case (purely functional elements with no creativity are not eligible for copyright).

    So that leaves timsort - which was written by Tim Peters for Python, then ported to Java by Joshua Bloch while he was a Google employee.

    http://www.java-frameworks.com/java/openjdk/java/util/TimSort.java.html

    Notice who has the copyright? Hint - it's not Oracle.

    Now notice the license? GPLv2.

    /*
    * Copyright 2009 Google Inc. All Rights Reserved.
    * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    *
    * This code is free software; you can redistribute it and/or modify it
    * under the terms of the GNU General Public License version 2 only, as
    * published by the Free Software Foundation. Oracle designates this
    * particular file as subject to the "Classpath" exception as provided
    * by Oracle in the LICENSE file that accompanied this code.
    *
    * This code is distributed in the hope that it will be useful, but WITHOUT
    * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
    * version 2 for more details (a copy is included in the LICENSE file that
    * accompanied this code).
    *
    * You should have received a copy of the GNU General Public License version
    * 2 along with this work; if not, write to the Free Software Foundation,
    * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    *
    * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    * or visit www.oracle.com if you need additional information or have any
    * questions.
    */

    package java.util;

    /**
    * A stable, adaptive, iterative mergesort that requires far fewer than
    * n lg(n) comparisons when running on partially sorted arrays, while
    * offering performance comparable to a traditional mergesort when run
    * on random arrays. Like all proper mergesorts, this sort is stable and
    * runs O(n log n) time (worst case). In the worst case, this sort requires
    * temporary storage space for n/2 object references; in the best case,
    * it requires only a small constant amount of space.
    *
    * This implementation was adapted from Tim Peters's list sort for
    * Python, which is described in detail here:
    *
    * http://svn.python.org/projects/python/trunk/Objects/listsort.txt
    *
    * Tim's C code may be found here:
    *
    * http://svn.python.org/projects/python/trunk/Objects/listobject.c
    *
    * The underlying techniques are described in this paper (and may have
    * even earlier origins):
    *
    * "Optimistic Sorting and Information Theoretic Complexity"
    * Peter McIlroy
    * SODA (Fourth Annual ACM-SIAM Symposium on Discrete Algorithms),
    * pp 467-474, Austin, Tex

    --
    Let's call it what it is, Anti-Social Media.
  206. Next on MythBusters by Anonymous Coward · · Score: 0

    - Ok, so we have this two myths about rangeCheck to bust: first is that high schooler can write it and second is that lawer can't write it in six month.
    And of course we should try it ourselves too!

  207. Re:A high schooler? by MightyMartian · · Score: 1

    What's even worse is that the judge warned Oracle's lawyers a few days ago that they were on a perilous course over all of this. Oracle has to have known for some time that this was going to end in humiliation. I just can't figure out why Ellison doesn't just instruct Oracle's lawyers to ask for some moronically low settlement just to prevent the inevitable punishment. There's a point at which you have to look at the top guy's motives and ask "Does this really have anything to do with the company's interests any more?"

    --
    The world's burning. Moped Jesus spotted on I50. Details at 11.
  208. Re:A high schooler? by lennier · · Score: 1

    A programmer should realize majority is a binary state, either a 1 (it is) or 0 (it is not).

    A politician would realise that you don't even need a majority, just a plurality.

    --
    You are not a brain: http://books.google.com/books?id=2oV61CeDx-YC
  209. Re:A high schooler? by lennier · · Score: 1

    For example you can have a 1% majority

    I think that word does not mean what you think it means.

    Sure it does, if you have more than 100 competing choices.

    --
    You are not a brain: http://books.google.com/books?id=2oV61CeDx-YC
  210. Re:A high schooler? by icebraining · · Score: 1, Informative

    Those numbers are outdated (Sep 1, 2011); smartphones surpassed feature phones in the US this year: http://pewinternet.org/Reports/2012/Smartphone-Update-2012/Findings.aspx

    In any case, current numbers are not nearly as important as future growth, and the feature phone sales have actually declined while smartphones are growing like crazy.

  211. Re:A high schooler? by Barbara,+not+Barbie · · Score: 1

    You're completely wrong - you cannot get statutory damages if you haven't registered the work. All you can get is provable damages. And Oracle has not presented any proof that any consumer purchased any android device because of rangecheck or timsort (which the judge has been ragging them on), never mind that the judge also said that rangecheck was trivial (it's also purely functional, so not eligible for copyright), and timsort has an "interesting" copyright notice

    *
    * Copyright 2009 Google Inc. All Rights Reserved.
    * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    *
    * This code is free software; you can redistribute it and/or modify it
    * under the terms of the GNU General Public License version 2 only, as
    * published by the Free Software Foundation. Oracle designates this
    * particular file as subject to the "Classpath" exception as provided
    * by Oracle in the LICENSE file that accompanied this code.
    *
    * This code is distributed in the hope that it will be useful, but WITHOUT
    * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
    * version 2 for more details (a copy is included in the LICENSE file that
    * accompanied this code).
    *
    * You should have received a copy of the GNU General Public License version
    * 2 along with this work; if not, write to the Free Software Foundation,
    * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    *
    * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    * or visit www.oracle.com if you need additional information or have any
    * questions.
    */

    Timsort was written by Tim Peters for Python, then ported to Java by Joshua Bloch while he was a Google employee. Do you really expect the judge to award monetary damages for infringement?

    BTW: Oracle just caved on the issue. They've agreed to let the judge rule, rather than waste time going to the jury, because they know there's not enough money to be had there to even compensate for the time to argue it, and they want to save the time remaining on their clock (the judge is keeping both sides on a tight leash time-wise) for the patents phase of the trial.

    --
    Let's call it what it is, Anti-Social Media.
  212. Re:A high schooler? by lennier · · Score: 1

    Wait, I meant plurality. Darn. Elections are hard.

    --
    You are not a brain: http://books.google.com/books?id=2oV61CeDx-YC
  213. Re:A high schooler? by icebraining · · Score: 1

    In the UK and other places, they use majority for plurality and "absolute majority" for majority.

  214. Re:A high schooler? by Githaron · · Score: 0

    Just like everyone else - you do the work you're paid to do.

    He is being paid to fight for Oracle. He is not being paid to make stupid arguments that have a high probability of biting them in the ass. He has made things worse for Oracle not better.

  215. It;s about injuction now by Anonymous Coward · · Score: 0

    Patent lawsuit is DOA, copyright lawsuit is also not going very well, at least in damages.
    Oracle's only "hope" now is that API's are declared copyrightable and ask for injuction against Android, then shamelessly blackmail Google for billions.

    What Google should do: port OpenJDK to Android and rewrite Dalvik as a variant of JVM. Since Sun is licensed as GPLv2 + classpath extension, this makes it perfectly suitable to be used in the same way as the java reimplementation in Android is now (except for calling it "Java").
    Then they should settle for some moderate amount just to prevent harm that can come out of this ruling. Here Oracle is also in danger from shooting themselves in the foot (i.e. get sued by SCO kind of companies because of Unix API's in Solaris, not to mention the damage to Linux, on which many of their customers run DB's).
    But maybe Larry is going to sacrifice this just to win and cause irrepairable harm.
    Although I doubt that this crap is going to go beyond the appeal.

    1. Re:It;s about injuction now by MightyMartian · · Score: 1

      There's enough case law out there against copyrighting APIs, and the judge has shown himself pretty savvy on technical matters, so I assume he's no legal slouch, so I don't think Oracle has much of anything. And since Dalvik is a different virtual machine, there's no real way for Android to simply be moved over to Java.

      --
      The world's burning. Moped Jesus spotted on I50. Details at 11.
  216. Re:A high schooler? by shutdown+-p+now · · Score: 1

    Let's copy-paste this a couple more times until they are in the red ink!

  217. Re:A high schooler? by shutdown+-p+now · · Score: 1

    Slashcode ate that all up. F you /. my reply looks like shite also because of that and I can't be bothered to figure out how to post code without it being de-htmlized.

    You want <ecode>

    Anybody else see a bug? I donno their array implementation, but it looks like they are zero indexed arrays while also allowing a "array's length" equal to the to index value. Classic noob array out of bounds mistake staring at me.

    It has been a de facto standard convention in languages with 0-based indexing to use [from; to) ranges, i.e. with exclusive upper bound. Java is not an exception there.

  218. Slashcode rangecheck by Anonymous Coward · · Score: 0

    yes, it did a rangecheck of the input characters and... oh wait, Slashdot is using it! Lawyers, come to me!

  219. Re:A high schooler? by DarwinSurvivor · · Score: 1

    Why use an elif after raising an exception? Just use if!

  220. Re:A high schooler? by Pieroxy · · Score: 1

    If you had a 100 people do it you would probably get lots of exact copies.

    I'm pretty sure you would not.

  221. Re:A high schooler? by DarwinSurvivor · · Score: 1

    Yeah, I guess that rules it out seeing as Java doesn't have any code conventions that developers are expected to adhear to or an easy to use tool to check for them.

  222. Re:A high schooler? by Anonymous Coward · · Score: 0

    Only after having them removed by way of bricking them off...

  223. Re:A high schooler? by reve_etrange · · Score: 1

    That's just poor UI programming. Don't use static layouts.

    --
    .: Semper Absurda :.
  224. Re:A high schooler? by MightyMartian · · Score: 1

    Mobile Java is not going to be a growth market. Sure, it will still persist for several years, but as even low end phones begin to gain, processor power and memory, there will be no need for J2ME, as these phones will be able to use the full blown stack anyways. Of course, what's likely to happen is that it will be Dalvik, rather than Java, because Oracle is not only extraordinarily greedy, but also has shown itself just as inept at handling Sun's products as Sun was. This all started because Sun was stupid and shortsighted. If they could have cut a deal with Google, even as we speak, Java would be the major smart device platform.

    --
    The world's burning. Moped Jesus spotted on I50. Details at 11.
  225. Re:A high schooler? by DragonWriter · · Score: 1

    This is a half-truth:

    You haven't had to register copyrights in the US for decades. Ever heard of the Berne Convention?

    Its true that copyright exists upon creation and doesn't require registration, but you do have to register them prior before instituting almost any civil action for infringement of copyright, see 17 USC Sec. 411.

    So, registration isn't required to have a copyright, but it is required to sue someone to recover damages for violation of a copyright.

  226. Re:A high schooler? by PuZZleDucK · · Score: 1

    Thats not fragmentation, that's just a damn small screen... ever try opening Gimp/Photoshop on a first gen notebook? It's craptacularly impossible to use, not even a single pane fits in the screen and there are 3+ of them, that does not mean PCs are fragmented. Just as on the PC you could code it to suit all screen sizes... but it's a hell of a lot of work!

    --
    Can a person program a new solution to a problem? Why should anyone be able to stop such a thing? -Richard Stallman
  227. Re:A high schooler? by inode_buddha · · Score: 2

    He's also SCO's lawyer. He doesn't actually give a damn about the tech, its about the money. Which is why he made SCO pay millons up front. That way, he gets rich no matter how stupid he has to look in court. Seriously - subscribe to groklaw and you'll be amazed how US law works. Much like constant code refactoring by idiots.

    --
    C|N>K
  228. Re:A high schooler? by Oxford_Comma_Lover · · Score: 1

    It's not brilliant to make insanely stupid arguments. Among other things, a judge will eventually lose patience with those arguments, and they will cost the client and the reputation of the attorney. It's brilliant to make insanely creative arguments that sound rational and only slightly creative when you only have really bad arguments to make that you know will lose. There's a difference.

    Neither one is exactly happening here. The arguments were probably just very stupid, not insanely stupid.

    --
    -- IANAL, this isn't legal advice, and definitely isn't legal advice for you. Also, Squee!
  229. Re:A high schooler? by hey! · · Score: 1

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

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

    Ah, but if I *know* I'm arrogant, I'm not ignorant.

    --
    Post may contain irony: discontinue use if experiencing mood swings, nausea or elevated blood pressure.
  230. Re:A high schooler? by Zeroko · · Score: 1

    That way you could tell if someone copied it so you could sue them, of course.

  231. Re:A high schooler? by sootman · · Score: 1

    I can't find the reference at the moment and I'm too lazy to search further but once upon a time, Brian Kerningham and Dennis Ritchie were working on UNIX. There was a misunderstanding of who was supposed to write a little routine and they both wrote it--identically, down to the character.

    --
    Dear Slashdot: next time you want to mess with the site, add a rich-text editor for comments.
  232. Re:A high schooler? by Anonymous Coward · · Score: 0

    What is quite concerning however, is being a legal representative over something for which you have no knowledge. Those with knowledge of programming see this short 9 line subroutine as a very trivial thing to program. There isn't anything very technical going on. Its all very straightforward. It could be used as an example for students who are just learning to program, as it is very short, simple and straightforward. I don't expect my doctor to be a baseball player, but if he is treating athletes while working for a professional sports team, he should have knowledge of sports related injuries --more so than the average general practitioner. As someone who has a degree in Computer Science, I see businesses who want their IT people to have "business knowledge". They want more than just someone who knows CS. If they can expect more (and really, they demand more), why should we give free rides going the other way? A lawyer dealing with software issues should have some knowledge of computers, programming and software. *I demand*.

  233. Re:this is a serious problem by Aryden · · Score: 1

    it really came off more as a rant than anything else...

  234. Re:A high schooler? by Xtifr · · Score: 1

    Reputed by whom? The best? I strongly beg to differ. He still has a good reputation, but he's also got a fairly long string recently of high-profile failures and mess-ups. He lost badly to MoFo in SCO v Novell, lost in Bush v Gore, managed to barely win against MS when they were doing everything they could to shoot themselves in the foot, looks likely to lose in SCO v IBM and Oracle v Google, and was recently sanctioned in Florida.

    He was certainly one of the greatest once-upon-a-time, but he's a little too fond of ambush tactics that don't work well with modern discovery practice, and of trying to find novel legal theories to shape precedent, which doesn't sit well with judges who don't like the idea of "legislating from the bench" (the whole "APIs are copyrightable" thing just has the stench of Boies all over it). His style simply no longer works as well as it once did.

    Personally, if money were no object, I'd try to get MoFo or the Nazgul long before I'd consider B&S, unless I thought I was so guilty that only really sleazy, weasely, sideways tactics would give me even half a chance. And even then, I'd have my fingers crossed the whole time, hoping his funky tactics wouldn't actually end up making things worse (as they arguably may have done in SCO v IBM).

  235. Re:A high schooler? by MrDoh! · · Score: 1

    I think you can get a blue pill for that.

    --
    Waiting for an amusing sig.
  236. Re:A high schooler? by Pikoro · · Score: 1

    Depends, is it a meter stick or a yard stick?

    --
    "Freedom in the USA is not the ability to do what you want. It is the ability to stop others from doing what THEY want"
  237. lessor? by Anonymous Coward · · Score: 0

    Google is leasing two evils?

    I would have thought that Google has enough money to buy as many evils as they want. Is there some tax benefit to leasing evil as opposed to buying?

  238. Re:A high schooler? by Anonymous Coward · · Score: 0

    Surely

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

    Needs to be

            if (toIndex >= arrayLen) throw new ArrayIndexOutOfBoundsException(toIndex);

    Anyway, this is TRIVIAL code. If this is all Oracle have I would assess damages at $0.01 or less.

  239. Re:A high schooler? by Anonymous Coward · · Score: 0

    the guy who wrote it gave it to both Sun AND Android

    How can Sun/Oracle claim copyright on something it did NOT create, but they simply used?
    By other slashdot comments the judge should have laughed and then tossed this case out when it was filed. It shows arrogance on the goon judges or other powers, who allowed this to go to court in the first place.

    Not even the Creator of the code can register a copyright because the work, does not meet requirements. If he did get it registered and then was to sue, lawyers would look the copyright over, and show it fails requirements and the registered copyright would be invalid.

    This is from reading the comments to this point, from the ones that seem to know more about this.

  240. Re:A high schooler? by Anonymous Coward · · Score: 0

    RTFA again. He learned to code Java during the trial. He did have experience coding in other languages before that.

  241. Re:A high schooler? by petman · · Score: 1

    I think it does. Let's say there are two candidates, A & B. A got 50.5% of the votes. B got 49.5% of the votes. So we say that A has a 1% majority over B.

  242. Re:A high schooler? by slim · · Score: 0

    A 1% majority (at least informally) means that the winner is 1% greater than the loser.

    That is, the majority has 100%/2.01 and the minority is 100%/1.99.

    51% is a slight majority. 99% is a vast majority.

  243. Re:A high schooler? by the_B0fh · · Score: 1

    And when you're losing the fight, you throw everything against the wall, and hope something sticks.

  244. Funniest lawsuit ever ! by Anonymous Coward · · Score: 0

    OH MY GOD ! A JUDGE WHO CAN WRITE CODE ! LOL AWESOME !

    This is the funniest lawsuit ever ! I am very glad this judge can write code... at least he is not being fooled.

    And I totally agree with it... those 9 lines of code are a joke and way too simple ! and highly likelyhood of somebody writing the exact same thing ! ;) :)

  245. Buggy code by Anonymous Coward · · Score: 0

    fromIndex > ArrayLen is not checked.

    Assuming a zero-based array the code is also flawed; since toIndex could equal arrayLen and not trigger an exception, while it would still be out of bounds.

    So both programmers sucked balls hahahahahahaha.

  246. Re:"I probably couldn't program that in six months by Pieroxy · · Score: 1

    I know absolutely jack shit about programming, but I am fairly certain that if I went to school for six months to learn how to program that it would be trivial for me to write that function.

    The concept is just so simple that even I get it.

    I'm sure you'll get there in a few days, no need for month. That is, if you have an IQ over 80 of course.

  247. Re:none other than by Anonymous Coward · · Score: 0

    The Mythical Man Month suggests it won't get much faster no matter how many David Boies you throw at a problem, and at a certain point you'd actually be slowing the process down.

    I think that point would be where you added the first David Boies seeing as it would take him 6 months to write a simple bounds-check routine.

  248. Re:A high schooler? by Anonymous Coward · · Score: 0

    yep, complete idiots can develop entire programming languages too.

  249. Re:A high schooler? by Hognoxious · · Score: 1

    Do you think one day kids will swap lawyer cards - with stats like number of clients fleeced, amount of bullshit spoken etc (I'm sure we could all add one or two) - like they do now with baseball ones?

    --
    Confucius say, "Find worm in apple - bad. Find half a worm - worse."
  250. Re:A high schooler? by Anonymous Coward · · Score: 0

    Pre-School??? I was writing RangCheck's before I was out of diapers.

    P.S. I don't have any bladder problems, and was out of diapers at around the normal age (sheesh).

  251. Reminder to Oracle by NewYork · · Score: 1

    "If I have seen further it is by standing on the shoulders of giants." -- Isaac Newton

  252. A lawyer cannot but a highschool boy can.. by Anonymous Coward · · Score: 0

    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.' Just handling 2 cases on Java does not make you a Java programmer nor you are making a living as a programmer. I would say: "Iam not a expert on Law - this is my second book on such a law and I probably couldn't write such a similar law in six months"..yeah make that 5 years.

  253. Re:A high schooler? by Lisias · · Score: 1

    Which of these things in even a remote way, describes SCO?

    The FUD.

    --
    Lisias@Earth.SolarSystem.OrionArm.MilkyWay.Local.Virgo.Universe.org
  254. Re:A high schooler? by Lisias · · Score: 1

    Well., so he probably shouldn't had fired that clever trainee. :-)

    --
    Lisias@Earth.SolarSystem.OrionArm.MilkyWay.Local.Virgo.Universe.org
  255. Re:A high schooler? by Lisias · · Score: 1

    Damnit. I will bite the bait.

    So your follow up is that Oracle is the "2nd biggest software house on planet, the clear leader in several verticals and makes and/or sells literrally hundred of products".

    Ok. So do Microsoft and IBM (Microsoft is the first, and IBM is bigger than all to them). And this does not makes the three look the same, does?

    Oh, wait! Microsoft funded SCO in order to jeopardize the Open Source products, didn't? Well,. these ones looks the same to me.

    --
    Lisias@Earth.SolarSystem.OrionArm.MilkyWay.Local.Virgo.Universe.org
  256. Re:A high schooler? by RockDoctor · · Score: 1

    Fore chrissakes,

    Hunh ? Sorry, getting sidelined into making up a curse about the "one foreskin of Jesus, Mary, Joseph and the donkey!" That's a fertile field of oaths and epithets that your typo has opened up.

    anyone who has been writing any degree of code for more than a few weeks has implemented a range check function,

    FTFY

    Seriously, anyone who is getting some sort of formal training in programming, should be being taught to validate his input pretty much as soon as they've learned enough of the syntax of their language of choice to be able to handle user input. That would be weeks at most. Maybe a couple of months for someone teaching themselves out of a book.

    In the same exercises they should also be being told "You as a programmer, MUST write descriptive, helpful prompts for the user. The user will never READ or OBEY the instructions, but if you don't Write The Friendly M-prompt, that is your fault ; if they don't Read The Friendly M-prompt, that is their fault."

    The depressing fact that users don't read manuals in no way obviates the programmers (development team more widely) from the duty to write the fucking things.

    (Sorry ; wrote a Work Instruction last night ; handed it over ; discussed it ; answered questions. Back on shift, it's not been followed. SIGH.)

    --
    Birds are not dinosaur descendants;birds are dinosaurs, for all useful meanings of "birds", "are" and "dinosaurs"
  257. Re:A high schooler? by ShooterNeo · · Score: 1

    Infinite states? Doesn't the universe have a finite resolution?

    Also, doesn't quantum uncertainty and noise mean that regardless of the large number of states the transistor is capable of, only a far smaller number of states are actually distinguishable or matter in a working system.

  258. Re:A high schooler? by shmlco · · Score: 1

    "You might be surprised to learn that the vast majority of mobile phones in the USA and the world are not smart phones."

    Ah, no. Smartphones are now more common than "dumb" phones. To quote CNN, "For the first time, more than half of all American mobile customers own a smartphone, according to a report released Wednesday by Nielsen. That's up from 38% a year ago."

    Someone at some point in time probably made the argument that the majority of people were not going to be able to afford expensive mobile phones as well. Or that most people wouldn't have $10,000 "personal" computers sitting at home. Or that there would never be a market for $400 pocket calculators.

    Thing is, those devices got cheaper. Smartphones will get cheaper. Soon that's all that will be made.

    --
    Any sect, cult, or religion will legislate its creed into law if it acquires the political power to do so.
  259. Re:A high schooler? by Anonymous Coward · · Score: 0

    yes, ask John Fogerty