by Kiro · 3y ago · 0 comments
I admit it's a clear improvement. (Thank you for pointing out.) But it still gave some unsatisfactory answers in short interaction.
I asked to write a comparator to sort in decreasing order, for which it returned verbose (anon. class) form of `b - a`, which can go wrong with large negative integers.
Surprisingly, it did fairly well when asked to write a custom `JavaFileObject` class for `JavaDoc` toolprovider API, which is fairly obscure and I knew only because I worked with it. (There were errors in code, but they could be spotted by someone who can figure out the code's meaning).
So my conclusion from short interaction, bing chat finds stack overflow pages more reliably than Google does (LoL), but still gets affected by crap of society like geeksforgeeks.
When I have it write code, I always say "identify any corner cases that are not properly handled". If you see an obvious problem, you could tell it to correct it "b - a will cause overflow for large negative numbers. Use an alternative."
I see it as an extremely broad, but maybe not incredibly deep, tool, that's most useful when you're not at the extreme specifics/esoteric knowledge.
And, bing chat is quite a bit different than ChatGPT 4 (no search), which is quite a bit different than raw GPT 4 completions.
Any code GPT4 produces needs to be checked with a fine tooth comb, any stated "facts" need to be double checked, any solutions to a given problem need to be examined by someone who's already familiar with the subject matter.
I can't deny its usefulness as a rubber duck, though.