21,276 karma · joined Nov 23, 2012 (14y ago) · 6,746 submissions
blog: https://rtpg.co
email: raphael at above domain
comment 1y ago · link · parent
An example of a thing that movie theaters can do that live event shows can no longer do is say "a ticket costs $14", while in reality there's a booking fee to cover card payments if you pay online, but you can walk into a movie theater and pay just $14.
I think the FTC is saying that while there might be good faith reasons to have booking fees, the industry clearly is using this stuff in bad faith so the industry no longer has this sort of good faith "out" to simplify messaging on pricing.
comment 1y ago · link · parent
I think B2B SaaS, for "normal" teams (read: people not that adept at building scalable systems), when not careful, tend to make omnipages where about 20 different things are happening. Even just navigating to a page ends up triggering random side effects (driven by various needs).
There you can easily find yourself in a performance pit that you have to dig yourself out of (often redesigning features in the process to remove some stuff).
I just find that setting fairly easy performance goals can help to make perf seem more tractable.
comment 1y ago · link · parent
"Home page should load under 2 seconds at P95", "reports should load under 10 seconds at P99", "this background task should take under 30 seconds at P99".
Having these targets (and, frankly, remembering in the B2B space is that the status quo is _so slow_) can let you set performance objectives without chasing milliseconds that you don't need to.
Django has a lot of intrinsic slowness to it, "easy" DB access patterns often lead to heavy messes, but if at the end of the day most customers are getting served under some benchmark you can reap the advantages of the tooling without sweating perf too much.
And when you set these SLOs, you can then push for even tighter ones as you figure out your problem space!
In the B2B space companies get away with _so much_ sluggish behavior, if you're better than the median that's already improving things.
comment 1y ago · link · parent
I just think it's pretty easy to do things like start a flow back up halfway through the book and not fix some underlying ordering issues.
With scripts that you tend to have to run top to bottom you end up having to be more diligent with making sure the initial steps are still OK because on every test you tend to run everything. Notebook style environments favor running things piecemeal. Also very helpful! It introduces a much smaller problem in the process of solving the larger issue of making it easier to do this kind of work in the first place.
comment 1y ago · link · parent
I do think that given the fragile nature of shell scripts people tend to write their operation workflows in a pretty idempotent way, though...
comment 1y ago · link · parent
To be honest I know so many people who use Pydantic and so many people who seem to get stuck because of Pydantic 2. I’m glad I have minimal exposure to that lib, personally.
I suppose the biggest issue really is type annotation usage by libs being intractable
comment 1y ago · link · parent
While there are places where the build out itself looks fast, in reality I think most any train line ever build spends decades in "would be a good idea" phase of planning. The Hokkaido Shinkansen idea was on the books since the 70s, and we're still just up to Hakodate!
The Utusnomiya rail line (a local tram line) was in the proposal phase since 2001, and launched in 2023. It's been super successful (profitable!), but was still 20+ years for a single line.
Having said all of that, plenty of ideas gestate for a while, so hooking into an existing idea and getting that actually happening feels like a very good use of energy compared to trying to come up with your own special new idea.
comment 1y ago · link · parent
We still have a long way to go in figuring out how to get our type systems to be easy enough to use to where this stuff doesn't surprise people anymore (because it shouldn't! identifier manipulation should be table stakes and yet)
[0]: modulo soundness of course! Though I don't think that's intrinsic to the expressiveness
comment 1y ago · link · parent
This sort of work would likely mean that test suites would be built in a way to be run in a more diverse sets of environments. That leads to just less brittle tests overall, and hopefully a better foundation to debug things.
comment 1y ago · link · parent
The other ones at least are based on the same format string syntax.
"foo {}".format("bar") would be an obvious "just use f-string" case, except when the formatting happens far off. But in that case you could "just" use t-strings? Except in cases where you're (for example) reading a format string from a file. Remember, t- and f- strings are syntactic elements, so dynamism prevents usage of it!
So you have the following use cases:
- printf-style formatting: some C-style string formatting is needed
- .format: You can't use an f- string because of non-locality in data to format, and you can't use a t- string due to dynamism in
- f-string: you have the template and the data in the same spot lexicographically, and you just want string concatenation (very common!)
- t-string: you have the template and the data in the same spot lexicogrpahically, but want to use special logic to actually build up your resulting value (which might not even be a string!)
The last two additions being syntax makes it hard to use them to cover all use cases of the first two.
But in a specific use case? It's very likely that there is an exact best answer amongst these 4.
comment 1y ago · link · parent
There are also loads of people basically defaulting to "no" on new features, because they understand that there is a cost of supporting things. I will often disagree about the evaluation of that cost, but it's hard to say there is no cost.
Nobody wants a system that is unusable, slow, hard to implement for, or hard to understand. People sometimes just have different weights on each of these properties. And some people are in a very awkward position of overestimating costs due to overestimating implementation effort. So you end up in discussions like "this is hard to understand!" "No it isn't!"
Hard to move beyond, but the existence of these kinds of conversations serve, in a way, as proof that people aren't jumping on every new feature. Python is still a language that is conservative in what it adds.
This should actually inspire more confidence in people that features added to Python are _useful_, because there are many people who are defaulting to not adding new features. Recent additions to Python speeding up is more an indicator of the process improving and identifying the good stuff rather than a lowering of the bar.
[0]: I often think that these discussions often get fairly intense. Understandability is definitely a core Python value, but I Think sometimes discussions confuse "understandability" with "amount of things in the system". You don't have to fully understand pervasive hashing to understand Python's pervasive value equality semantics! A complex system is needed to support a simple one!
comment 1y ago · link · parent
Seriously, if you find yourself annoyed at Gnome, you can set up KDE and (mostly) have no issues.
I say all this... Qt is a tricky beast to use. I prefer it to GTK but it's chunky.
comment 1y ago · link · parent
Love this thought. You disagree with an extreme interpretation, do you take the exact opposite? If not, up to where do you go?
This idea is applicable to so much
comment 1y ago · link · parent
Plenty of people happy to carry water for the admin as well. I just don't really have a great view of what people actually think about this issue.
[0]: to be clear, I do not believe there are normal people on that website.
comment 1y ago · link · parent
There's just a cohort of people who claim to be in favor of free speech, but also use it as a defense to associate themselves with people they really don't need to. Even the worst people in the world need _a_ lawyer, your local fascist doesn't need a booster on Twitter. There's a spectrum and subjectivity here of course.
"Free speech" has turned into a fun little bad faith thing to throw into arguments where it (for most people) doesn't belong. And even for fellow travelers, these people arguing in bad faith tend to throw in some other stupid garbage into their arguments! So it gets a bad rap, as an indicator that an argument is about to get stupid.
comment 1y ago · link · parent
Concretely, Django is way more usable than basically any web framework from the "strongly typed" space, especially for "dumb" CRUD stuff. And you're not hit with making decisions about how to do a bunch of things (though you can swap out mostly any part of Django for something else if you want to).
comment 1y ago · link · parent
I'm curious about what he would want to get into Django that feels like he couldn't though. Since this _is_ a fork of Django, he's still gonna hit a lot of issues that people wanting to improve Django hit.
Backwards compat is an issue, but "all of this code within the library is built off of existing assumptions" is _also_ an issue.
If all the improvements could be third party packages, just making plain be a big third party omnipackage that also has a helper to "fix" settings feels like it would go a long way.
comment 1y ago · link · parent
But more seriously I think tree based algos tend to be overhyped, and people get a bit absorbed into thinking about big-O behavior when the constant factors are super important even when you’re looking at hundreds of thousands of elements. Not to mention stuff like data locality. Like sometimes your computer will be faster at just looking in a seq scan rather than dealing with the bookkeeping of a fancier structure. Sometimes.
I think a nicer argument overall is to build a tiny wrapper around your operations, build out what is easy, and then figure it out through measurements.
Worst case you end up entirely rewriting your program to accommodate a different structure to try for better perf but in my experience rewriting entire files from scratch tends to get you a good number of improvements for free.
comment 1y ago · link · parent
Good way to explore ideas without having to do concensus building with those around you. Its your own little pet project!