News for hackers. Stuff that matters.
Re:Crokage: A New Way to Search Stack Overflow by w-m on Wednesday August 14, 2019 @03:17PM (#20698944)
It's hard competing with Google, the Crokerage answers to the example they use ("how to remove an element from an array" in Java) gives me

  ArrayList<char> charList = new ArrayList<char>(0);
  
  for (int i= 0; i < b.length; i++) {
      if (b[i] == condition) {
          charList.Add(b[i]);
      }
  }
  
  charList.toArray();
in Crokerage and

  array = ArrayUtils.removeElement(array, element)
in Google/Stacksnippet.

It'll be interesting to see how long it takes that Google have a way of determining the confidence in the answers and have some algorithm that is able to reliably give a code answer. I'm sure they'll immediately put this in their snippet then, removing the need to click the StackOverflow links any more.

There are no comments on this comment yet.