Re:Python: Just Write SQL
by jddj on Monday August 14, 2023 @05:10PM
(#37126835)
> My ideal workflow is: 1. Query exactly what I want 2. Make it valid data in the form I want
> That valid data shouldn't have a ton of extra stuff attached to it, I want plain old data that is validated and the correct type.
I'm in this camp too, and I really don't mind it. The database call is an API boundary, so right there is exactly where that occasionally tedious mapping + validating code is supposed to live. If it's not there then where is it?
> That valid data shouldn't have a ton of extra stuff attached to it, I want plain old data that is validated and the correct type.
I'm in this camp too, and I really don't mind it. The database call is an API boundary, so right there is exactly where that occasionally tedious mapping + validating code is supposed to live. If it's not there then where is it?
Copilot took some of the tedium away, too.