News for hackers. Stuff that matters.
Re:Show HN: Prisma Python – A fully typed ORM for Python by probablyrobert on Monday February 21, 2022 @05:03PM (#30421218)
How do you suggest to improve it?
Re:Show HN: Prisma Python – A fully typed ORM for Python by IanCal on Monday February 21, 2022 @05:53PM (#30421803)
Not the original author, but "or" at the start then a list may be better called "any". That (to me) would read more clearly. Particularly if you were passing in the contents, '"or": var' would make me think "var or what?" But '"any": var' seems more obvious.

Has a clear link to the python "any" as well

Re:Show HN: Prisma Python – A fully typed ORM for Python by probablyrobert on Monday February 21, 2022 @07:21PM (#30422574)
Thanks for the suggestion, I've created an issue to track this as I do agree that `ANY` conveys the operation more clearly.

https://github.com/RobertCraigie/prisma-client-py/issues/293

Re:Show HN: Prisma Python – A fully typed ORM for Python by jjice on Monday February 21, 2022 @05:06PM (#30421266)
I think the parent is saying that the SQL example is simpler and easier to read.
Re:Show HN: Prisma Python – A fully typed ORM for Python by vonseel on Monday February 21, 2022 @07:43PM (#30422760)
Yeah, but he’s completely skipping over the fact that you’re going to lose some of the readability of short SQL statements switching to an ORM with methods, types/classes, functions, etc., but you can gain in maintainability of code.
Re:Show HN: Prisma Python – A fully typed ORM for Python by inshadows on Friday February 25, 2022 @04:06AM (#30465170)
Write SQL.