Better HN
topnewbestaskshowjobs
Log inSign up

cachehit

6,998 karma · joined Dec 14, 2008 (17y ago) · 1,808 submissions

(Account pending deletion)
Submissions

comment 2y ago · link · parent

>fizzy enzyme drinks

Do you mean kombucha? Kefir?

comment 2y ago · link · parent

Every product that any company needs is a choice between source/create. It's not more "competent" to build everything in house.

comment 2y ago · link · parent

Thank you! It was just thinking of ways to get notified of unnecessary re-renders in a way that would be tolerable to have enabled most of the time. Polluting the console or showing visual cues didn't really fit that, so this came up.

comment 2y ago · link · parent

I am having trouble making it work on Firefox. I guess I could add an option to show a little button. Playing audio is allowed, it's the autoplay aspect that isn't.

comment 2y ago · link · parent

Thank you! The only concern is that it adds overhead as well, but it doesn't seem to be too bad.

216.

Show HN: React Geiger – performance profiling using sound

164 points · by cachehit · 2y ago · 36 comments

comment 2y ago · link · parent

I started experimenting with this recently. Neither my knowledge nor the maturity is at a level where I would use it for production work but there are definitely some promising aspects to this. I am preparing a talk about it.

The most significant unknown for me is how state management (like Redux etc.) would work in a larger app. I can think of many solutions but I can't figure out whether the tradeoffs then result in a net gain or loss.

comment 2y ago · link · parent

I've seen these benchmarks over and over and I wonder how they work. Seems to me you would need something close to a test or exam like in schools to properly rate a model. How useful are these metrics?

comment 2y ago · link · parent

Well that question implies that there is some intrinsic reason not to build it as a web app. That may be the case for you if you prefer Kotlin or Swift or something, but it wouldn't be the case for me.

comment 2y ago · link · parent

I know of several other issues like that. I myself made sure the highscore in a video game I was working on would work :-)

The thing that annoys me is that this is best case scenario when it comes to climate change. If we do in fact manage to avoid the apocalypse, all the "climate deniers" are going to feel vindicated.

comment 2y ago · link · parent

I don't see how this refutes GP's point. Yes, it's a big challenge but when they are allowing other browsers, the challenge is met already. The "install to home screen" feature adds but very minute extra features.

comment 2y ago · link · parent

There is great value in building one product instead of three.

>The kind of deep user information you can gather by installing a full blown app compared to a more sandboxed web app is worth way more than the 30% royalty cut.

What kind of information is that?

comment 2y ago · link · parent

>But the real question is where most of your users live.

Well, they "live" on their phone. I would just put a button on my website to install the app, users would find that easily.

comment 2y ago · link · parent

I'm upset about this and I am not making any money off the platform.

comment 2y ago · link · parent

This is so frustrating, PWA's were finally starting to be a real option on iOS. But I am sure they will get away with this pathetic excuse, so I guess that's it.

comment 2y ago · link · parent

Hah, that's exactly what I do, I can see that clearly now but I hadn't articulated it. Thank you!

comment 2y ago · link · parent

What are those searches? I am curious because I've used reverse image search 3-4 times in my life. It's just not something I think of..

comment 2y ago · link · parent

Like many others in here I had completely forgotten about DN. I don't think I stopped visiting it because of declining quality though, but rather that the concepts and principles of good design proliferated.

A decade ago I still had this feeling that design was a secret world that I wanted to grasp but which felt out of reach somehow. Today, for better or worse, the essence of what we've learned is embedded within components, templates, frameworks, and examples, making the web predominantly aesthetic. It's more uniform which is boring, but I think the era of changing trends is more or less behind us. However, industry-specific differentiation persists—a fashion retailer's site diverges from a SaaS platform's landing page, yet each conforms to the norms of their niche.

comment 2y ago · link · parent

But this is exactly what the article is about? I don't know what you mean by "option object" but it doesn't sound any more conventional than union types to me.

comment 2y ago · link · parent

"Stringly typed", the way I've heard it, is a valid criticism when people replace type safety with magic strings which may or may not be checked at runtime but certainly not at compile time.

However, that's not the case when it comes to Typescript, because literal and union string types are actually checked at compile time. So what is the problem?

comment 2y ago · link · parent

Sure, the TS type system is not sound but the idea is not to stop "bad guys", it's to help you realize you are doing something unintended.

comment 2y ago · link · parent

It will have a browser. You can do pretty much anything in a browser.

comment 2y ago · link · parent

>I think it's more that it's declarative that makes it simple

..it's no more or less declarative than other configuration languages?

And yes, I get that it looks simpler. I just think that it applies as long as your file can fit in about half a page. As it grows and becomes deeply nested, IMO, that simplicity disappears.

comment 2y ago · link · parent

You just pinpointed my biggest peeve with YAML. It looks like it's "human friendly" because there are no scary curly braces. But you still need to get the syntax exactly right, so that benefit is very small. And now you have to keep your finger on the screen while scrolling in order to figure out what a bullet belongs to.

comment 2y ago · link · parent

>This I would take away from React only for the reason that each major version introduces some new concept that flips things on its head

I don't think that's fair. The switch from classes to functions+hooks was a significant one. Besides from that I have never felt like the React team pushed anything on me, and even that was optional, class components still work. Now, the way I write React has certainly evolved but that applies to all my code..

comment 2y ago · link · parent

First of all, no, even if I did, that would only be hypocritical if I was rooting for the law not to apply to the app store. But I am not expecting either.

comment 2y ago · link · parent

>laws?

Maybe. I am not impressed so far, though.

>Or force everyone into ChromeOS once and for all.

I don't see that happening on iOS.

comment 2y ago · link · parent

>DHH really needs to control his temper.

What good would that do?

comment 2y ago · link · parent

This is a quote from DHH from LinkedIn:

>Of course we gave them a login. We’ve been publishing apps on the App Store for over a decade. This was not a low-level mistake. It went all the way to the app review board.

In another response he writes that the reviewers did in fact log in.

comment 2y ago · link · parent

This is a quote from DHH from LinkedIn:

>Of course we gave them a login. We’ve been publishing apps on the App Store for over a decade. This was not a low-level mistake. It went all the way to the app review board.

In another response he writes that the reviewers did in fact log in.

1
789
61