Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It seems to work nicely on simple queries, however there are some rough corners which I don't think have a simple solution. For example the query "how to set the timezone in react-datepicker" first offers a Stack Overflow solution from 2019, however that answer is outdated and no longer works. The other solution offered copies code from a different Stack Overflow answer verbatim, which is problematic since it doesn't correctly license the code — code on SO is CC BY-SA which means you have to both attribute credit and link to the license.


> that answer is outdated and no longer works

This is one of the biggest challenges that I see for LLMs in relation to codig: Giving answers that work on the particular language and library version(s) you're developing for.

Most of the data these LLMs are trained on aren't labeled as to version number, so they really have no way of determining which version of a particular language or library the code they provide will work on.

It might work if you're doing something generic enough. Otherwise you're going to have to rely on luck on it working with your particular version.

I can't think of a way to overcome this.


This is likely because it is using GPT 3.5 turbo in part of its stack who's knowledge base is cut off in September 2021.


Is a code example on how to use an OSS library API copyrighteable?

My intuition is it shouldn't be


The answer is actual code on how to manipulate datetimes forward and backwards between timezones, it's not simply an API call.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: