21,281 karma · joined Nov 23, 2012 (14y ago) · 6,748 submissions
blog: https://rtpg.co
email: raphael at above domain
comment 4y ago · link · parent
Typescript's practicality here does let you walk and chew bubblegum. This sort of stuff is super practical for UI development, because ultimately at the interfaces with servers you're likely to make some assumptions about incoming data, and so you'll have that fundamental cast in your code from any to Foo, and this sort of error will be reportable.
comment 4y ago · link · parent
The buttons are those little plastic overlays on simple button, so super easy to clean, usable when dirty... and definitely dirt cheap.
American appliance designers should really try just copying good foreign products one of these days. Y'all are in million dollar homes with appliance setups worse than student appartments in many places
comment 4y ago · link · parent
It's not 100% exactly the same heat distribution but when you pick your pan off of the fire it's also not getting mots of that heat either.
Somebody can correct me if I'm wrong about this (apparently wok cooking "needs the fire"), but like... I dunno, I've done a lot of stir fries and messing around with pots on an induction thing. The "auto-turn-off" thing only happens for me if I really leave it picked up for a couple minutes, otherwise it just re-engages pretty quickly.
comment 4y ago · link · parent
No more chasing around for each service figuring out who is the admin for what.
comment 4y ago · link · parent
The Texas blackout had a supply ceiling, but no price ceiling (and low elasticity in choice from the consumers, because people didn't want to freeze). It's a far cry from a free market during that week.
comment 4y ago · link · parent
And of course there are duals to price controls such as production subsidies that can smooth things out. And policies that can otherwise influence things. Money is fungible, after all! And thanks to taxation as a general concept, the universe of people paying for all of this is not necessarily the universe of people buying it, so it's not necessarily "the consumers pay in one way or the other".
comment 4y ago · link · parent
I think that there's a lot of stuff about tuning, but the latency story (at least up until 3 or 4 years ago) on Android has been absolutely garbage, no matter what geekbench scores the phones get.
Sony phones and the Google mainline phones seem to work well when I use them though (though ultimately lots of android apps are also just not very good)
comment 4y ago · link · parent
The main thing was that it was parked in a place it shouldn't be parked, for enough time.
Meanwhile my much nicer replacement bike is parked like 50cm away, but inside actual bike parking, and is just there. My neighbor has an even nicer bike, with a fancy GPS thingy attached to the frame, there for the taking. And it's still there!
The Completist's Guide mentions that cheaper bikes are more likely to get stolen, and I heard that from police here as well.
Though I think the general contours of "everyone has a bike anyways" is very true. They're also harder to fence cuz bikes in Tokyo are registered (not 100% but enough).
Personally, I think that just social dynamics from having real bike parking (read: not attaching to stop signs...) helps a lot as well.
comment 4y ago · link · parent
I understand that big surface areas are a thing, but there's just loads of content that exists as Flash and is fine.
An extra layer here, Flash CS3 Professional is better as a quick iterating game tool than basically everything out there for people nowadays (Game Maker Studio is up there but still...). I think that making _new_ content in Flash is justifiable except for the whole "can't get it to run anywhere" issue.
comment 4y ago · link · parent
It has its own set of problems (mostly from starting at the set of "we will remove all of Celery features" and then going from there), in particular its logging policies are extremely frustrating and we have had to work around them. But the code is so simple in general that we get good compensation for that.
I personally would have liked to use dq instead but that's mostly an aesthetics thing.
comment 4y ago · link · parent
I also use a lot of "classic" websites where they fall over because of bad server-side state.
An example, a train reservation site, where I choose dates + a destination. The next page, it shows me some results. I decide to change the date. I hit the back button, and it falls over, cuz the state management on the server is messed up.
This happens a lot for me (this is mainly on Japanese websites), and it's extremely frustrating.
I don't like a lot of SPAs, I also don't like a lot of "classic" apps, but I do feel like SPA-y stuff at least demands less of the developers so the failure cases are a bit less frustrating for me. In theory.
And to the connections, the terrible websites with many megs of JS were likely terrible websites with many megs of HTML and huge uncompressed images before that... I don't want to minimize it (thank god for React, but old Angular bundles were the worst), just think comparing like-for-like is important.
EDIT: thinking about it more though, it's definitely _easier_ to send giant bundles on certain websites.
Given how many times this discussion happens on HN, I feel like instead of the hypotheticals, people should make a list of actual websites in both domains so that comparisons and proper critiques could be made...
comment 4y ago · link · parent
With some frontend work you can have a multi-page form just work, with the data stored in the client up until final submission, and only sending in partial checks ahead of time. This is qualitatively easier to handle, in my opinion.
It also seems extremely uncontroversial that sending data for a single item is going to require less text generation than sending over that data + the entire page.
These are all gradients, but people make absolute claims that don't hold up in these arguments.
comment 4y ago · link · parent
Shells are cool and good, and I don't want to discount fork too much, just saying that the API design space isn't _only_ for shells.
comment 4y ago · link · parent
Meanwhile, programs with more complex requirements have to work around these APIs. And many programs call other programs, or otherwise have to do tricky process lifecycle management.
The lowest-level APIs should, in theory, cater to the most complex cases, not to the simplest ones. This doesn't prevent a simpler API from existing, but catering to a simple use case in the primitives does hinder more complex needs.
(I think the more nuanced point is that the OS itself might not have a much better design available in any case. Unixes have a lot of neat stuff, but it's a lot of "design by user feature request", and "standardize 4 slightly different ways of doing things", so there is a lot of weirdness and it's hard to have The Perfect API in that case)
comment 4y ago · link · parent
There are many places where management are demanding people come into the office. Those are "forcing", for all intents and purposes.
There are people who want to work in the office. My understanding is that those people can all do that if they choose so. They can even choose to go every day of the week if they want to.
So what is the problem? Why is there a debate? People can do what _they_ want, after all, right? Except that some people not only want to be in the office, but they want their coworkers to be in the office as well.
That is what is meant by "forcing" in this discussion. And that is where I have read the most pushback (especially for the big tech companies with huge, mostly unused, offices.
comment 4y ago · link · parent
And, importantly, a lot of those websites have complex admin-side backends to deal with a lot of things as well! Of course in those cases you might say that the UX requirements are lower (true), but when you are basically serving as a DB frontend, you want to be able to do things quickly, even on a really bad connection.
There's a lot of cool work into partials for SSR, but React and friends are also very nice because you can build out complex UIs that operate through an API, without having to figure out a bunch of workarounds for stateless HTTP/HTML (form wizards anyone?)
comment 4y ago · link · parent
"Advanced forms" come up all the time, and are usually when you have even a bit of non-trivial business logic. For example "if people pick this set of options, show this other option" (but you want to avoid having a form wizard, cuz then you're having to track state across multiple page loads). There's also stuff like in business applications, previewing calculations and the like.
"A few JS event handlers" can handle a lot of tiny things, but many B2B SaaS have a handful of pages with a loooot of these things, and at the end of the day you could have your hacks, or you could try to be principled about loading it.
Though it's also about just finding the right mix, there are people who can architecture their stuff "correctly", completely SSR + some JS flavoring. But it requires having people who are really good at backend and frontend figuring out the right pieces and putting it together. That diligence is hard!
comment 4y ago · link · parent
I don't really blame people who want to socialize with their coworkers (I want to as well, sometimes!), it's just unfortunate that we've gotten to this point where leadership seems to be really insistent on choosing the worst way to go about this.
comment 4y ago · link · parent
How things worked a few years ago: you wrote SSR pages with one set of tools (like Django Template Language), then hooked into it with another set of tools. If your pages are complex enough, you end up with weird brittleness because the "initial page load" is not handled the same way as modifications of that page.
Now it's much closer to using the same set for the initial load and subsequent edits. This is a net win for people working on the frontend, in theory.
The more nuanced thing is that frontend tooling is so lacking in terms of performance, despite being something that theoretically should work very fast. In particular, having a bunch of language tooling written in Javascript is the JS ecosystem's billion dollar mistake IMO.
2515.
American Airlines Boarding Pass(airticketshistory.com ↗)
2 points · by rtpg · 4y ago · discuss
comment 4y ago · link · parent
I'm not going to argue against cash existing, but "swipe the machine" works 98 times out of 100. For the other 2 times, yeah carry some cash on you. I think it's a very good system of last resort, but especially in places with contactless payments cash is less practical