2,086 karma · joined Dec 7, 2018 (7y ago) · 696 submissions
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
I don't think this is the right idiom for doing this. Frankly I don't think SQL query generation should look like string templating at all!
The sell seems to be "now you can write code that looks like an SQL injection vulnerability, without it actually being vulnerable!". I'd rather write code that isn't a vulnerability, and doesn't look like one, and doesn't have to bend the language grammar either.
comment 1y ago · link · parent
Python has historically been very conservative about this but in recent years has had one controversial language extension after another, while parts of the language that actually need love are left to languish IMO.
I wanna be very clear that this is me changing my mind -- I was (still am) very on board with the highly controversial assignment expressions ("walrus operator") for instance.
I don't have much faith about what the Python language will look like if you project the current rate of changes forward 10, 15, 20 years. It really doesn't help that I consider this new thing an active antifeature.
comment 1y ago · link · parent
This is of the category "things I wouldn't want to use even for the specific hyper niche things they're intended for". What even does a "t-string" represent? Because it's clearly not a string of any kind, it's a weird kind of function call notation. The programmer sees something that looks like string formatting, but the program executes some arbitrary procedure that might not return a string whatsoever.
comment 1y ago · link · parent
I wish X supported mixed DPI per monitor, ugh.
I will say one notable difference is that Linux issues as a rule at least are debuggable, whereas Windows issues can just be utterly intractible. It's not that rare for me to watch friends with computer science degrees frustratedly embark on the long misadventure that is "reinstalling Windows".