Better HN
topnewbestaskshowjobs
Log inSign up

coder543

6,699 karma · joined Jul 18, 2012 (14y ago) · 1,967 submissions

My email is at gmail using my username.

Backend-focused full-stack engineer with 8+ years of experience, mostly focused on Go, Rust, and TypeScript, but open to other options.

Resume: https://drive.google.com/file/d/1VNC272B3n7ZEfppMHkm2wGgaINwYl4Av/view

Submissions

comment 3y ago · link · parent

On my phone, when I click "Add to Home Screen", it immediately focuses the name text field and pops up a keyboard. As a user installing an app, I expect to see the name, the icon, possibly a description, and a big, obvious "install" button. I do not expect to suddenly be presented with a keyboard letting me edit the name of the app. When a user changes the name, it is far more likely to be a mistake than an intentional action, unless the PWA did a phenomenally poor job of naming itself. On Windows, when you install an application, do you expect it to start by highlighting the app shortcut and entering edit mode so you can choose the name of the app? No, that would be bizarre, and it is bizarre here too.

Regardless of it being auto-populated, I think being immediately presented with the option to choose the name will inevitably confuse many users. If the user accidentally hits any keys, that will mess up the name... then they have to try to fix it themselves, if they even notice before they hit the "add" button. That just doesn't seem like a great user experience.

Talking about the "add" button, it is not called "install", unfortunately. The "add" button by itself may confuse users into wondering if they clicked bookmark by mistake. In fact, the interface is nearly identical to the bookmark interface in Safari, except that the bookmark interface uses the word "save" instead of "add", and the bookmark interface shows you which folder you're saving into. How clear and simple!

The "add" button is also a small button in the top right, which is completely different from how the "GET" button with a vivid blue background is presented in the App Store. Renaming and restyling the button to match the one in the App Store would make the experience more consistent for the user.

None of this matters to technical users like us either way, but making PWAs more accessible to all users requires making the process as easy as possible, smoothing out weird rough edges like this. The option to edit the name would make more sense under the Settings app or maybe an additional "Edit" option in "jiggle mode" on the home screen, if it should even exist at all. I can't edit the name of other apps on my phone. From a technical perspective, someone might ask "why can't I edit those names too?" But, it should be consistent either way, in my opinion.

Those are my opinions on the current interface, anyways. I don't think Apple has meaningfully changed it for over a decade, and if they have decided to care about PWAs, they really should polish this interface up.

comment 3y ago · link · parent

> AFAIK, such prompts are regular HTML with links to the AppStore.

The ones under discussion are not: https://developer.apple.com/documentation/webkit/promoting_a...

Apple controls the experience. The developer just tells Apple which AppID is connected to this website, and Apple chooses how to present this information.

Smart App Banners also react to whether the app is currently installed or not, which random websites obviously should not be able to determine for privacy reasons.

comment 3y ago · link · parent

To be clear, this is all we’re talking about: https://developer.apple.com/documentation/webkit/promoting_a...

There is no shouting in these Smart App Banners. The entire user-visible experience is completely controlled by Apple. It is just a passive bar at the top of a webpage that informs the user of the option, which they can dismiss. It isn’t jumping up and down, it isn’t playing loud sound files at the user screaming at them to click it.

What really sucks is when websites like New Reddit provide their own custom modal prompts that cover the webpage and push you to the app, and they’re extremely hard to dismiss and oftentimes these half-baked implementations are broken even if you accept their suggestion to open the app. That type of prompt is not relevant to this discussion, at all. They can do that no matter what you think and no matter what Apple implements. The way you have been talking about these things makes me believe you think those prompts were what is under discussion. They’re not. Smart App Banners are not shouting “INSTALL THE APP!”

I’m personally surprised that Apple doesn’t offer a setting for Safari to disable Smart App Banners, which would be a simple way to stop annoying the few users who are bothered by them. I see at least one safari extension which claims to do this, but since this passive banner is extremely unobtrusive, why bother?

I’m immensely bothered by all sorts of ads and anti-features, but just knowing if there is an app is a legitimately useful thing, so this does not bother me. Even calling it a “prompt” is a stretch since it does not require any action to dismiss. It is a very light “call to action”, of course. If I’m browsing a website I don’t care about and they use this feature, I can ignore it or hide it. It doesn’t get in the way. I'm fairly certain you can even scroll down and the Smart App Banner will automatically scroll off the top of the screen, resizing the website to fill the entire screen.

comment 3y ago · link · parent

> As long as installing PWAs requires user initiation with actions in the browser chrome, and can't be initiated by a link in site content, that shouldn't be a problem with PWAs.

And that’s all anyone is asking for, which would make PWAs equal to native apps in that regard.

Your fervent opposition higher in the thread seems like a different position.

comment 3y ago · link · parent

If you add a second page of apps, go into jiggle mode, tap the page indicator dots at the bottom to enter the overview mode, then uncheck a Home Screen. It will still exist, but it will be hidden.

comment 3y ago · link · parent

> I thought it was fairly straightforward to add an "add to home screen" overlay to a webpage with javascript.

On Android, yes. On iOS, users have to click “share” and “add to Home Screen”, which practically nobody knows how to do, and it presents the user with a rather confusing prompt for them to choose the name of the PWA they’re about to install. The website could tell you to do that, of course, but then it only works in safari at the moment, and it is very clunky.

iOS allows websites to show a banner that will help them install the equivalent app from the App Store, but there is no similar functionality for PWAs.

Some people speculate that Apple relies on the PWA install process being confusing to help push developers into the App Store.

comment 3y ago · link · parent

> There isn't a one size fits all approach.

That's exactly why having a smaller device allows everyone to customize it to their needs. If Steam Deck 2.0 were more portable (i.e. smaller and lighter) and that made it too small for you to hold comfortably, a cheap attachment could trivially fix that. Professional photographers have used extended grips for decades when they've wanted a larger grip than the manufacturer provided. This is not some novel solution. The Steam Deck is currently trying to be a single size that fits all, since it is already at the large end of what people will tolerate, and aftermarket customization cannot realistically make it smaller, only bigger.

> You are free to use a tiny Switch. [...] I'm perfectly happy with my choice.

You're setting up a weird comparison. When I owned the Steam Deck, I owned a Switch. Now that I own an AYANEO Air, I still own a Switch. Neither device is a replacement for the Switch. The Switch is not really the competition here. It is nice to imagine a world where the Steam Deck is somehow a full replacement for the Switch (or vice versa!), but such a world does not currently exist.

For now, I replaced my Steam Deck with an AYANEO Air for the reasons outlined in my first comment.

> that can not only play switch games

No, the Steam Deck cannot play Switch games effectively. Every time someone brings this up, they proudly throw out Breath of the Wild as an example... and it turns out to be the Wii U version, not the Switch version, because the Switch version runs like crap on the Steam Deck. Certain lightweight Switch games might work, but you're definitely not going to get the benefits of almost any Switch-exclusive game, especially once you factor in multiplayer issues.

comment 3y ago · link · parent

It's always possible to make a device physically larger after you get it, but it is obviously much harder to make it smaller.

The Switch has a large variety of comfort grips available for people who want a larger device, which also lets the user choose how it is larger, instead of forcing a one-size-fits-some approach. Here's one chosen at random that appears to have great reviews: https://www.amazon.com/dp/B085VHHLGK

comment 3y ago · link · parent

It's just a standard Windows 11 computer, so it is entirely trivial.

They have a fullscreen console-like interface you can choose to launch, but it's completely unnecessary apart from controlling the TDP of the device. So, I just use the normal Windows desktop, and launch games just as if it were any other Windows computer. You could also use the Steam Deck's game launcher interface on Windows, which is now available on any Windows computer as an alternative to the traditional Steam Big Picture Mode.

comment 3y ago · link · parent

In case you haven't seen, the Switch OLED screen took about six months[0] of showing a static screenshot (zero motion!) at full brightness for any burn in to occur whatsoever, and it was barely there. If you're doing literally anything else, the OLED pixels will get exercise and this burn in would not have even happened.

Longevity is really not a concern with the types of OLED panels we're talking about. (It's more of a concern for the technology LG puts into their TV W-OLED panels, but those do not exist in handheld sizes.)

I have not seen a single report of anyone experiencing burn-in on the Switch OLED outside of this extreme, unrealistic test. I also haven't seen anyone who owns a smartphone report that their smartphone had burn-in since many, many years ago, even though there are plenty of static elements on a smartphone screen, including the wireless signal indicators. QD-OLED would be nice, but it is absolutely unnecessary for longevity based on the available data.

Switch OLED is also incredibly nicer to look at than even decent IPS panels, let alone the Steam Deck's current awful screen.

[0]: https://www.youtube.com/watch?v=PaC5RbGAeVo

comment 3y ago · link · parent

For me, the Steam Deck was just too large, and the screen was truly terrible. It made games that I'm familiar with look visibly wrong with how poor the color gamut coverage was. I ended up selling it. The Steam Deck was also a bad experience for launchers outside of Steam, and I didn't want to get banned from Overwatch or Fortnite for trying to play them on an unsupported operating system, if they were even compatible.

I currently have a Nintendo Switch OLED which is fantastic in many ways, and I also have an AYANEO Air, which has a beautiful OLED screen too. The Air is also an equally good (or arguably even fuller, given Windows 11 + WSL) "desktop" experience compared to the Steam Deck, which so many people around here are touting as a feature. It also uses hall effect triggers and joysticks, so drift should never be a problem, ever. The Air is also the size of a Switch Lite, so even smaller than my Switch OLED, but the Air has a full x86-64 processor and 16GB of RAM running Windows smoothly, which is just crazy to behold.

Whenever I can use the Switch OLED for a game, that is the best available portable experience: whisper quiet, long battery life, never gets hot, the kickstand is incredibly good, and I can always take the controllers off when I want to put the Switch on a table. The only exception is a few titles that had truly terrible ports, but those aren't common in my experience at all. HD Rumble is also a really good implementation of controller rumble. With the Switch, it is also possible to buy physical versions of many games, and sell those when you're done, which really isn't possible on the Steam Deck or the AYANEO Air.

The AYANEO Air is great for using Steam In-Home Streaming or playing some of the titles that I can't play on the Switch (like Horizon Zero Dawn or the various Halo titles), but the battery life isn't as good, the controllers aren't detachable, there's no kickstand, and (like the Steam Deck) it is a much hotter and louder device.

Either the Switch or the AYANEO are small enough to throw in a carry-on bag (important because I don't think I've checked luggage a single time in the past decade), whereas the Steam Deck is like trying to bring a second, chunkier laptop (4x the thickness of my M2 MacBook Air, for reference), which just does not work with the size restrictions on a carry-on bag when you're also bringing a real laptop, clothes, chargers, and everything else needed to travel.

My wish list for Steam Deck 2.0 is basically: it would be physically smaller (but shrinking the bezels would allow the screen to not shrink as much as the device), the screen would be OLED like my other handhelds (and implicitly more color accurate), perfect driver support for Windows 11, hall effect controls, and the screen would support Variable Refresh Rate, which seems like a killer feature that no handheld has bothered to implement.

It's also completely baffling to me that the AYANEO Air has a full 2280 NVMe SSD in a chassis the size of a Nintendo Switch Lite, but the Steam Deck only manages to fit a 2230 in a chassis that's probably twice the physical volume. Given how much more I use my Switch than my Air, I've considered selling the Air, but it does still offer some unique capabilities.

comment 3y ago · link · parent

Unfortunately, the data has not been updated in years either.

If you're a Googler and you find this project interesting, maybe you can find the right people internally to work with to revitalize this project. It's a really cool concept, just so far out of date that it isn't very useful any more.

comment 3y ago · link · parent

> You're correct in that the design hasn't been updated in years, but... so?

I checked a house that was built about 4 years ago in a major metro area, and Project Sunroof just showed an empty field and "sorry, we haven't reached that address yet".

I'm fairly sure nothing about this site is being updated. That also means that any structural changes to houses (including additions, remodeling of the roof, or just complete bulldoze-and-rebuild) or the surrounding property (tree growth, trees being cut down, etc) are not reflected in the estimates.

> Though I wonder if the estimates are now out of date

By all appearances, they are. Massively. The older this data gets, the less useful it becomes. It's not really a "so what?" situation if the data isn't being kept up to date.

comment 3y ago · link · parent

Your comment is simply incorrect. Amazon has had their own TPU equivalents for training and inference for years:

https://aws.amazon.com/machine-learning/trainium/

https://aws.amazon.com/machine-learning/inferentia/

I really don't think this would be a limiting factor regardless, even if Amazon didn't already have multiple generations of these products. It's not as if an Amazon or Microsoft sized company is incapable of developing custom silicon to meet an objective, once an objective is identified. TPUs also aren't really that complicated to design, at least compared to GPUs.

I'm slightly surprised Microsoft hasn't bothered to release any custom ML chips for Azure yet, but I guess they've run the numbers and decided to focus on other priorities for now.

comment 3y ago · link · parent

The person at the top of the thread claimed €45/month, but the configuration they're describing actually seems to be €37/month.

If you want ECC RAM, that appears to be €60/month, and it also steps up to a more powerful 8-core CPU.

Regardless, if we're talking about a "full production environment and a duplicate staging/standby environment" (to quote the person you replied to), then €60/month * (2 or 3) is still dirt cheap compared to any startup's AWS bill that I've seen.

Use cases vary, but I tend to agree that AWS/GCP/Azure is not the answer to every problem.

For someone who can fit their application onto a $4 VPS, that's obviously going to be cheaper than anything bare metal, but the cloud scales up very expensively in many cases. Bare metal isn't the answer to every problem either, but a lot of people in the industry don't seem to appreciate when it can be the right answer.

comment 3y ago · link · parent

> and to better understand this "pseudo-ECC"

Page 2 discusses it in great depth: https://www.anandtech.com/show/18732/asrock-industrial-nucs-...

tl;dr it reserves 3% of your RAM for ECC parity/check values, which is all handled transparently without your operating system needing to know anything.

comment 3y ago · link · parent

"Similar sizes" are not "the same size", obviously. I've never found any manufacturer that actually makes 10TB SSDs. Whether it is "unreasonable" or not is entirely irrelevant when they don't exist. The price is an obvious clue to anyone who knows anything about storage, as you mention.

But, choosing to use 10TB for the size in a scam seems like an odd choice. I have to imagine the scam would work equally well with a size that actually exists, but the current size should make it trivial for Amazon to filter out these listings, so it's odd that they aren't even tackling the low-hanging fruit.

comment 3y ago · link · parent

You don't see any scams...? How? 10TB SSDs do not exist. Any listing claiming to offer a 10TB SSD is a scam, by definition.

comment 3y ago · link · parent

> the critical password from the poor security of password managers

Just because one restaurant has a bad health inspection score and is constantly making everyone who eats there sick does not mean all restaurants are bad. People who just lump "password managers" into one group are fundamentally assuming that one bad password manager means that all password managers are automatically bad, we just somehow don't know it yet. Don't bother eating at restaurants ever again if you feel that way, I guess. I know people who have gotten sick eating at restaurants, but that doesn't stop me from finding good restaurants.

Most password managers have a very good security track record. Users creating and remembering their own passwords does not have a good security track record at all.

Better to use a completely offline password manager (which risks you losing your backups or getting into a conflicting sync state) than no password manager at all, but a password manager that actually encrypts all your data end to end (which LastPass does not) and requires a strong key to unlock (such as the 2SKD method, which again... LastPass does not) is extremely safe, even if you don't trust "the cloud", because you don't need to trust the cloud.

comment 3y ago · link · parent

100% correct. You might have 2 factor enabled, so they also need to check that and phish the 2FA code as well. That 2FA code expires quickly, so it needs to be used in real time to get a session.

I'm sure there are some very basic phishing attacks that just save whatever you entered, but... let's avoid trying to come up with "clever hacks" that only lend a false sense of security.

comment 3y ago · link · parent

No, that button is enough. That button did not exist on older versions, so you definitely did not click it if it did not work. If you're running the version of macOS that was released over a year ago (Monterey) or running Ventura (released more recently), then the button will exist.

https://support.apple.com/en-us/HT208987

"Other ways to disable Activation Lock"

"Activation Lock is disabled when you use the Erase All Content and Settings feature."

Apple confirms that the feature works exactly as I said and exactly as users expect. I've used it myself, and it does work.

Users running software that is several major versions out of date will have a more difficult experience, since that button did not exist, and they would have to first remove Activation Lock before going into Recovery Mode to manually format the Mac. Those are the remaining steps that were linked several comments up from here: https://news.ycombinator.com/item?id=34505523

Apple has made the process as easy as it possible can be now, identical to the process used to factory reset an iPhone.

comment 3y ago · link · parent

1Password works everywhere too, and it works much better than LastPass from everything I've heard and seen.

1Password also actually encrypts your entire vault, and it uses a strong, generated secret key in addition to your password, so even if a user does not use a strong password, their vault would still be very hard to crack.

comment 3y ago · link · parent

> I went with unix pass installed inside of a FreeBSD jail.

> And, for added benefit, there are only a handful of things you need to have printed out and stored in a safe or whatever so that your family can access all of the encrypted important stuff if you get struck by lightning.

Presumably this print out includes an instruction manual for using FreeBSD, opening a terminal on a FreeBSD machine, launching a shell inside a jail, and accessing this "user friendly" software? Exactly how technical is your family?

Forgive my disbelief that this is an actual solution for anyone but yourself.

> but I have not much of an idea how everything works behind the curtain

You could choose to learn: https://1passwordstatic.com/files/security/1password-white-p...

Any good password manager documents this stuff very well. LastPass has a very shallow white paper that constantly refers to encrypting "sensitive data", but they never define what that sensitive data is, which is suspicious, and it turns out that LastPass doesn't encrypt everything, which everyone who cares about this stuff has known for years. In the 1Password document, they talk about how every item in the vault is encrypted, and every item contains various fields such as Title, URL, etc. 1Password encrypts everything.

1Password also talks about the benefits of using a user password plus a generated 128-bit "Secret Key" (2SKD), which is a security feature I strongly appreciate.

comment 3y ago · link · parent

If everyone knows the password, then it's really just 1FA at that point. If you want it to remain 2FA, then yes, you would need to have a new password.

comment 3y ago · link · parent

I believe the person you replied to was being sarcastic.

comment 3y ago · link · parent

Things were harder in older versions of macOS, but you can read step 2 yourself: https://support.apple.com/en-us/HT201065

Any T2 Mac or newer requires only that button to be pressed, and then click through the wizard to complete the process. If someone is running outdated macOS, they won't have that button at all, since older versions of macOS required you to format computers the hard way using recovery mode, which didn't handle activation lock concerns.

You can also read this document: https://support.apple.com/en-us/HT208987

"Other ways to disable Activation Lock"

"Activation Lock is disabled when you use the Erase All Content and Settings feature."

which confirms the same thing. The experience that people have is very simple these days.

1
282930
66