21,278 karma · joined Nov 23, 2012 (14y ago) · 6,746 submissions
blog: https://rtpg.co
email: raphael at above domain
comment 2y ago · link · parent
> The problem is the space of possible commands is waaaaay bigger than the space of commands you can manually handle, which means if you just randomly try stuff 95% of the time it won't work. Users learn that very quickly and end up sticking to the few commands they know work.
This is not strictly true. Context free grammars can be written to handle (finite) sentences of arbitrary length! if you have a rule like "play me <song>" and then <song> can be "a song that lasts longer than X" or "a song by <artist>" (then you have <artist> be "<some name>" or "some German singer" or whatever....). You can just keep on going.
comment 2y ago · link · parent
Of course you can abstract away a bit with functions or intermediate values in programming, but at one point if you do that too much you now have a bunch of indirection that harms overall readability.
All a balance of course, but "what takes part in this calculation" often feels more valuable than "what is the calculation itself".
comment 2y ago · link · parent
Like if both environments feel equivalent but one has a better speaker setup (or inversely if one environment feels better and both have equivalent-feeling speakers) now you're locked in? It's good marketing I guess? Very hand-wave-y
comment 2y ago · link · parent
It feels very fractal but on the other hand if Alexa has only a specific gamut of responses it's not exactly a limitless state space right?
Very curious about how those rules look like though
comment 2y ago · link · parent
Of course I could put that on my fridge and have a marker. But it's "I need my list right now and have almost no free hands to do this" in other parts of the house too (toilet paper etc). Meanwhile my phone is always in my pocket.
Maybe time to just keep a pocket pad + pencil in my pocket though...
comment 2y ago · link · parent
While I understand the appeal of this, the world would have been a lot simpler for a lot of stuff if (for example) every text file had tagged its encoding.
I wonder about if we could have moved forward as society a touch faster if Unix wasn't "all byte streams", and had a touch of metadata.
I feel like HTTP and friends shows we can just organically end up with a certain kind of structure that "works" (and at one point you have a spec, and then you can yell at programs that don't follow the spec)
comment 2y ago · link · parent
This sort of property is nice to have in huge codebases where you really start losing confidence in shipping changes that don't subtly break things. But of course a huge codebase is hard to rewrite in general...
comment 2y ago · link · parent
Despite that, it would be very, very, very cool if some languages built rr directly into their tooling. Obviously you can always "just" use rr/gdb, but imagine if rr invocations were as easy to set up and do as pdb is in Python!
comment 2y ago · link · parent
Of course you gotta get it running (or pay people like WP Engine), but you're going to end up with a thing that will work.
That or dev.to is a good spot I think.
comment 2y ago · link · parent
> Unless you use and optimise for persisted queries which just makes it REST with extra steps.
GraphQL offering a syntax and a way to state exactly what will be used makes it possible to chip away what is sent over the wire in persisted queries. This is not a negligable thing in environments with very wide and deep data models. These are places where their "REST" queries end up with "GraphQL with extra steps" through path inclusion/exclusion logic and expansion logic.
Obviously at the end of the day context matters most, but there's been loads of places and APIs I've used where you could feel REST causing performance issues in an end-to-end way, either by generating N+1 HTTP queries, or just shipping way too much data to show a list of names of resources.
comment 2y ago · link · parent
Unbounded queries and extreme overfetching in general are problems that are ... easy-ish to solve when it's totally internal. Just be measuring perf, tag queries you are making to the frontend page you're making them from, and coordinate with frontend people if there's a problem.
Performance doesn't magically improve if you're using REST. And joins don't magically make things slower than "join via HTTP request" either. There might be patterns that are dangerous in GraphQL but honestly I feel like most internal APIs would benefit from easier scoping of fields and the like (rather than everyone re-inventing ad-hoc expansion and filtering)
comment 2y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
I don't fully believe this, but I kind of believe that having the staging model is what allows git to be very good at modelling almost anything nicely. New workflows can be easily rolled out because we have this phase separation between committing and simply staging.
And just as a general thing, `git add -p` totally made me a better developer overnight, at least in terms of actually rereading my changes seriously (and fixing them up etc). The model isn't necessary to this kind of workflow but it helps!
comment 2y ago · link · parent
I think an underrated idea from visual programming is that futzing around with linear files to try and connect a bunch of stuff together is not that fun in an event-based system. Stuff like Scratch unlock the right idea, that code structure is important at a micro level, but at a macro level it's... kind of busy-work, and it's hard to offer good structure in a way that's discoverable.
My main complaint with Unreal blueprints, though, is that sometimes you really do just want to write a bunch of code in a linear sequence. Give me a little textbox to just pop into within my diagram!
comment 2y ago · link · parent
The main hope for the future would be the SE getting the 12 mini form factor... but then Apple probably would be worried about it canabalizing bigger phone!
comment 2y ago · link · parent
As a former iPhone 12 mini user (whose spouse is on their second one because the other phones are getting too big)... I don't need the screen to be tiny but I legit wonder what people with smaller hands/pockets/whatever are going to do.
comment 2y ago · link · parent
I think it's easy to compile Python, but it's easy to end up just having to go re-compile it for some random component that was not compiled in the "standard" fashion.
If you have a good test suite this stuff shows up quite loudly though. At one point the core issue is more collaborators wanting to not have to compile things themselves.
(And to "automating away" as a comment... indygreg's releases _are_ this! Someone has done the work for us all)
comment 2y ago · link · parent
The rule is simple: you running a non-commercial event? You can use the space for free. Commercial component? Pay an hourly rate that comes out to ~$5 per person or so. There are some restrictions on events based on space but it's an obviously good thing in the same way a public park or water fountains are.
comment 2y ago · link · parent