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

I guess the interesting question is whether @jeswin could have created this project at all if AI tools were not involved. And if yes, would the quality even be better?


Very true. However, to claim that the "API looks completely different for Postgre and SQLite" is disingenuous. What was he looking at?


There are two examples on the landing page, and they both look quite different. Surely if the API is the same for both, there'd be just one example that covers both cases, or two examples would be deliberately made as identical as possible? (Like, just a different new somewhere, or different import directive at the top, and everything else exactly the same?) I think that's the point.

Perhaps experienced users of relevant technologies will just be able to automatically figure this stuff out, but this is a general discussion - people not terribly familiar with any of them, but curious about what a big pile of AI code might actually look like, could get the wrong impression.


If you're mentioning the first two examples, they're doing different things. The pg example does an orderby, and the sqlite example does a join. You'll be able to switch the client (ie, better-sqlite and pg-promise) in either statement, and the same query would work on the other database.

Maybe I should use the same example repeated for clarity. Let me do that.

Edit: Fixed. Thank you.


Actually the interesting question is whether this library not existing would have been a loss for humanity. I'll posit that it would not.




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

Search: