21,278 karma · joined Nov 23, 2012 (14y ago) · 6,746 submissions
blog: https://rtpg.co
email: raphael at above domain
comment 3y ago · link · parent
In the hypothesis that it’s actually kind of easy to figure out if somebody is impaired, I’m pretty conflicted because the upside of not having an impaired person driving is really high. Just I don’t know how possible it is, nor how reliably that would work. On top of that it seems like one step between that and “and the car reports you”.
comment 3y ago · link · parent
The "can't" variants often imply that it would cross the Rubicon on some issue. My contention is that usually, the supposed Rubibon has already been crossed ages (often centuries!) ago.
Of course "crossing the Rubicon" itself is a social construct, so at least those arguments can warp reality enough to become self-fulfilling. If everyone is convinced that something is impossible, it becomes very hard to argue that doing it is reasonable.
EDIT: and to be clear, I am not looking to litigate the illegal number issue. I've heard the arguments, this isn't a question of ignorance. It's a question of having different base axioms. I reserve my right to be extremely wrong on this issue to prove a point in an internet discussion
comment 3y ago · link · parent
And nobody is really immune to this line of thinking! There are people who scoff at "mixing cash into the jar is not illegal" but will state that "math can't be made illegal" or "you can't copyright numbers". I'm definitely not immune to it.
comment 3y ago · link · parent
I suppose in a way I'm complaining about a (mostly) non-issue, since bundlers all have good typescript support at this point.
comment 3y ago · link · parent
This makes sense but honestly means a lot of QoL fixes are kinda impossible to do. At this point I, personally, would almost want tsc (the compiler component) to stop being almost a good bundler and remove some features. Every project I've worked on that uses tsc directly ends up needing a "come to Jesus" moment where a "real" bundler gets introduced and suddenly a lot of stuff becomes easier. Doubly frustrating for me to feel this because tsc does a lot of stuff and it is hard to imagine how Typescript the language moves forward without Typescipt the compiler. I just really don't want to type `.js` for files that are, pre-build, `.ts`.
[0]: "blame" here meant in the weakest sense of "there are people who could make decisions in another way to make this better". Not so much in assigning moral blame
comment 3y ago · link · parent
And you're totally right about `time` existing, it slipped my mind that time has a tzinfo slot. I do think you should still take care and I would avoid having any naive time objects just floating around beyond the serialization layer though.
comment 3y ago · link · parent
There are 3 other people on the board, right? Maybe they're all buddies of some big masterminding, but I dunno..
comment 3y ago · link · parent
This is all court intrigue of course, but why else are we in the comments section of an article talking about the internals of this thing? We love the drama, don't we.
comment 3y ago · link · parent
I really think it’s so valuable to take what you use internally seriously, exposing and documenting it to end users is a great way to avoid hackiness, and just leads to more regular designs IMO. More work of course but … not that much in the vast majority of cases
comment 3y ago · link · parent
I think django-components only has part of the story there, because even if that helps writing out your page, you're still looking at going to the other side of the frontend/backend wall to add, at the very least, an endpoint using that template. And if you're following this whole "hypertext API and data API as separate things", you'll need to also code handling of submitting any data, and routing involved.
I'm not against this stuff entirely, because I think there's a bit of a Go-like niceness to how it's "at worst" boilerplate (that you can abstract over on a per-project basis). But if you have a comfortable, well designed API all that work spread over you templates and controllers might actually all just be in one place.
comment 3y ago · link · parent
Then you get into things like how no server side rendering strategy has the equivalent to React “just write an inline helper function for this page”, so you need to create partials in files all over. And what if you’d like to statically verify that your templates have all the content in place? Proper typing? Who hasn’t had a page fall over because there was some missing context variable 3 layers deep.
The thing with the API based flow and client side rendering (with React at least) when you have it set up nicely is “add a list view with pagination and search with a modal to create a resource if needed, and some inline editing” can be done by opening a single file and getting there with 2 dozen lines. Server side rendering strategies in practice tend to buckle a bit if you try to be modular enough, and in many cases you need to open one file per checklist on your project. Code locality issues are real IMO
Disclaimer: I’ve done both, messing around with HTMX on a project and think it’s pretty cool. But it’s mainly because I don’t have all of the nice patterns from work projects that I’m tying this. If startup costs weren’t a thing I’d go with a client side system most days of the week.
comment 3y ago · link · parent
I have basically never seen a nice user-facing API when it’s been split out. Sometimes that’s fine, but at least for enterprise use cases having a “real” API just feels like table stakes in so many domains for getting bigger clients onboard.
comment 3y ago · link · parent
I think anyone who does anything nontrivial with datetimes should always use non-naive datetimes (unless you have a really really really good reason to)
Even when I started doing Python web dev 10 years ago this knowledge was bestowed upon me and has saved me many headaches (and helped me find bugs in third party code). The fact this article claims otherwise makes me doubtful of other advice given.
Unfortunately, Pythons date/datetime APIs make it way too easy to do the wrong thing on this topic.
comment 3y ago · link · parent
Oof, talk about a nasty abstract. Will need to find a way to look at this paper later.
comment 3y ago · link · parent
A nation made a bet on "let's do all nuclear". It basically worked, but there was no magical cost decrease. They have an immense amount of institutional knowledge, huge educational system, massive amounts of resources. Their nukes are big and expensive and not really on time. There is no magic at the end of the tunnel if Greenpeace disappears.
The world isn't Sim City, power plants need water access and have location concerns, and it's not a question of just dropping a bunch of truck-sized plants across the world and magically solving everything.
Having said that, France is a success story of course. It's cool that it's all set up. But even after building it up, running these plants are expensive, there's often load issues meaning they are not fully utilized... "nuclear is free easy energy" is science fiction. That's fine, though! It's normal that we have to do stuff to power society.
EDIT: to be clear, I'm cool with nuclear, but I am not picky about where my watts come from.
comment 3y ago · link · parent
Like if your job is to make a bunch of money predicting crop futures you could probably justify spending.... $10k/year on pictures I bet? Though you gotta be careful with this kind of reasoning and not double-count your profits. And like all of this kind of stuff I bet that Maxar lives off of people with inflated budgets being able to ask for stuff.
comment 3y ago · link · parent
Source: I read the Wikipedia article on inquisitorial systems and watch tv. So I don’t know what I’m talking about but it sounds nice (also aligns with what I’ve heard about French court procedure) I think this covers Japan too (anyone who plays phoenix wright might wonder: why is the judge just declaring a result?)
comment 3y ago · link · parent
In that model and imbalance of resources, having statue of limitations in place alleviates the need for defendents to, for example, keep records of their actions and reasoning for 30+ years. How would you navigate being charged for tax evasion from 35 years ago, for example?
EDIT: to be clear, I don't think this is necessarily a precise defense of statuetes of limitations specifically, just a "well they're not a bad idea" sort of defense
comment 3y ago · link · parent