3 ms·
> Can you trust it though? Yes of course. Libraries: I look at the libraries it suggests, see if they have documentation or GitHub activity. Lining up types:
by tasuki 4y ago
> Can you trust it though?
Yes of course.
Libraries: I look at the libraries it suggests, see if they have documentation or GitHub activity.
Lining up types: say you have a `List (Maybe a)` and require a `Maybe (List a)`. This is a simple example, of course real life is much more complicated. ChatGPT tells you. Can you trust it? Well did it make the compile error go away?
(Sure, I can think of three ways to turn a `List (Maybe a)` into `Maybe (List a)`. Only one will be what I want, but it's easy to tell whether ChatGPT gave me the one I wanted.)
- lionkor 4y agoNo, you can't trust it. It will certainly write bugs, and the code will have other issues. Usually too subtle for you to see at first glance, like off-by-one errors, or uncovered edge cases.
- worrycue 4y agoI guess if you use it like Google for small nuggets of information you can easily fact check, it's fine. Although might as well just use Google directly which will send you either to Stack Overflow or Reddit where there are comments discussing the issue with back and forth fleshing it out or to a bunch of tutorial sites where you can source opinions from each site. edit: nevermind the attempt at your puzzle, my solution doesn't work.
- pbronez 4y agoMy experience has been that generative AI gives you a useful layer of abstraction above direct search. It’s like having an intern Google stuff for you, check out some promising results, and send you an email summarizing what they found. They make mistakes, but are generally ok. You wouldn’t actually have an intern do this because the delegation takes more time than doing it yourself. With GenerativeAI, it’s snappy.
- worrycue 4y agoAdds another thing that can go wrong though. It doesn't cite its sources either, does it? I have seen people ask it to explain but it's explanation can be wrong too ...