Better HN
topnewbestaskshowjobs
Log inSign up

rtpg

21,281 karma · joined Nov 23, 2012 (14y ago) · 6,748 submissions

real name: Raphael

blog: https://rtpg.co

email: raphael at above domain

Submissions

comment 4y ago · link · parent

The interesting thing here is you can still get the error and display the message! Just that you _might_ be able to catch issues beforehand as well, and avoid even getting to that kind of code.

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

crazy that they would put a touch screen. Ones in Japan are just like little plus/minus arrows (plus button serving as the per-heat-source on button as well). Built-in timer and everything.

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

I get what you're talking about but you can actually pick up an induction pan for a bit and shuffle things around and then put it back on the pan.

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

ignoring all of this, the fact that you can use SSO and then people will have access to most services without having to login to most of these services (loads of services have "anyone in this G Suite org can get into your account") is a godsend.

No more chasing around for each service figuring out who is the admin for what.

comment 4y ago · link · parent

Free markets _do_ presuppose supply being available if given enough money! Free markets assume atomic actors, instant feedback loops, and nothing like a supply ceiling.

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

It turns out that efficiency isn't the be-all and end-all of all of society! The objective is not necessarily to maximize efficiency/production/have costs be as low as possible for every product under the sun!

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

The 12 mini is in between the original SE and the iPhone 8/existing mainline iphones/new SEs.

Talking about a pretty small size difference, but hey everyone has their preferences (I loved my xperia with a 3.5 inch screen)

comment 4y ago · link · parent

I had a top of the line samsung, and the _native_ google maps app was slower than a web view google maps on an iphone SE.

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

Isn't it also possible to just pay Apple like 30 bucks to do it? I thought battery replacements fell into a special category

comment 4y ago · link · parent

I've had my extremely shitty bike stolen in Japan! It was a normal mama-chari, and I called all the usual suspects to confirm it hadn't been towed.

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

Beyond ... everything, sometimes people just want a thing to work. A thing that previously worked, and ... supposedly, was kind of a solved problem with stuff like Pepper.

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

We have transitioned over to Dramatiq.

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

A reminder that The Hill can put MP4s on their own servers and host them this way.

comment 4y ago · link · parent

I'm on expensive machine and notice a lot, too!

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

Multi-page forms without some front end stuff ends up with the very clunky either "rerender previous form pages over and over again, except hidden", or "have some token to track partial form data", or "build up a DB to store a partially complete form".

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

The thing is that there are many other programs which require process control, which are not shells. Orders and orders of magnitudes of programs which are not shells. So we can optimize an API for building shells, but it's not going to make writing those other programs easier.

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

Seems ripe for "use it or lose it" patent policies. It's good when research is going towards useful things, but having all of those patents locked up is not serving anyone.

comment 4y ago · link · parent

Shells have relatively simple operational models, so _any_ API would probably be workable for shells.

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

Well sure, you can quit after all.

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

"Majority of the web" is _not_ news sites and message boards and shopping sites. It's bank websites, ERP software, various CRMs (granted, like news sites...), time tracking, logistics sofware....

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

Personally I think htmx is an interesting strategy because it unifies the rendering tech on the server (you still gotta be careful to properly scope your incremental changes).

"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

It's a bit unfortunate because there's like... there's a way to have pretty periodic meeting up in the office, if you plan ahead. Ultimately people are a bit whimsical but if you're like "hey, I'm coming to the office on Thursday, you want to come in too, and have lunch?" then it could be a good booster if the option is available.

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

Except it’s not “let us have an office”! It’s “let’s force everyone back to the office”!

The cynical view is that a lot of people are lonely at home, and can already go back to the office but it’s too empty for their tastes and want to force people back.

comment 4y ago · link · parent

It's actually not how things worked just a few years ago.

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

It's handing over multiple pieces of paper, getting back of mix of paper and coin, and then having to futz around with that. Compare with just tapping a single card against a machine, having records of the payment for yourself (for keeping track of spending, etc), etc. It's obviously not all "objectively better" but "strictly easier" is not true if you amortize across all usages of cash vs non-cash (going to ATMs after figuring out you don't have enough on you?)

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

comment 4y ago · link · parent

To be fair steam has always been a wrapper around a browser for its store content etc. Maybe the outer chrome has been pulled into that though…
1
838485
225