HNHacker News
TopNewBestAskShowJobs

gr__or

439 karma · joined May 11, 2017

https://bsky.app/profile/watwa.re
submissionscomments
gr__or··on Yes, social media is undermining democracy
After reading this book review on Haidt's Righetous Mind (https://astralcodexten.substack.com/p/your-book-review-the-r...), I've been wondering if I falsely gave him credence for channeling a neutral voice. This article pushes me further in that direction.
gr__or··on Hooks Considered Harmful
I don't think this is quite right.

The difference between observer approaches like SolidJS or MobX (and I'd also put Svelte in this box) and React's data-flow centric one is one of explicitness. With the observer approach change tracking is more implicit, i.e. embedded into the values you are using and the functions that are using it. Which does fix the problem of forgetting to declare dependencies, because using == declaring.

Now what it does not guard you against *per se* is unnecessary re-runs, I am willing to bet there are tricky cases with tracking of nested objects and updates based on partial changes there. SolidJS does expose various tools for untracking and batching signals, so it might be a matter of trading initial explicitness/complexity for adding it later.

This might be the right trade-off and untracking might be the smaller problem. But that feels like a somewhat team and product specific question. I think it is clear that without state libs React is to barebone to handle most somewhat-complex interactive apps, and a lot of them are observer based (MobX, Recoil, ...). But I do not see it as a silver bullet just yet.

gr__or··on Quit Your Job
Hi Jon Stewart, big fan (wink wink)

I was satisfied with this reaction from Jonah wrt the mailing list and such:

https://medium.com/@thejonahbennett/statement-on-emails-83c5...

The Web3 stuff is making me more skeptical, but let's see!

gr__or··on Mozilla Foundation pausing cryptocurrency donations
https://astralcodexten.substack.com/p/the-phrase-no-evidence...
gr__or··on Tauri – Electron alternative written in Rust
I'd argue Babel-ing and polyfill-ing the webcompat delta is wiser than shipping chromium
gr__or··on Watching video twice at 2x can benefit learning better than once at normal speed
I'm seeing d = .54 which afaik is considered a medium effect size?
gr__or··on Germany is closing half of its reactors before the end of the year
Lots of housing in Germany is well-insulated enough that AC is not needed. This argument seems dubious.
gr__or··on Next.js 12
> I guess replacing configuration with code is one way of achieving "zero-configuration".

> Feels like all tooling starts out with "We're simple, no config or code needed!" and eventually ends up so extensible that it's hard to figure out how to even use it. Then another competitor appears and shouts "We're so simple compared to X, no config or code needed!", and the cycle repeats.

I think that is missing the point of middlewares. They are not a thing you _have to_ configure before you can even get going (which is what zero-config usually alludes to). Instead middleware is a mechanism for sharing code between different routes.

Now that code might contain functionality that can be eliminated through strong conventions (i.e. always parse JSON instead of having to configure a content-type aware body-parser middleware). But that is a very specific use case and middlewares do a whole lot more than that. So even with goodest faith, I think your point does not land.

gr__or··on Are software engineering “best practices” just developer preferences?
The wonderful Hillel Wayne has two great essays on the "Engineer"ing question:

https://www.hillelwayne.com/post/are-we-really-engineers/

https://www.hillelwayne.com/post/we-are-not-special/

gr__or··on Usage statistics of server-side programming languages for websites
Can you provide a source with information on what those variables are exactly?
gr__or··on Biden to mandate coronavirus vaccine for federal workers
For a nuanced take on long COVID I recommend Scott's post: https://astralcodexten.substack.com/p/long-covid-much-more-t...
gr__or··on “People have asked if we'll adopt this system for WhatsApp. The answer is no.”
I was about to post this. I am surprised most publications give FB/WhatsApp the moral highground, given what this tweet suggests. Is there an angle I am missing?
gr__or··on Sci-Hub Twitter account suspended
I am wondering if it's because they were linking to the Sci-Hub pages in both tweets and the profile
gr__or··on Second-guessing the modern web (2020)
I would say the popular server-focused frameworks that came before suffered from complementing problems which also did not lead to a pit of success.

Namely view code (HTML/CSS/JS) was harder to compose in a scalable fashion, Rails'/Django's template composition feels vastly inferior to proper componentization. Namely limited type checking, globals sharing, ... These things do make it harder to refactor and get rid of unused code, which also has real impact on users.

Another biggie was that there is no great gradual path from server-code to client-code, with potentially additional data. Now React SSR does make you work more for the server use case, in that you tend to write code which should also work on the client-side (which might change with React Server Components) but at least you don't have to face lots of decisions when expanding the interactivity of your app.

All that said, I also agree with the blog that there is still lots of refinements to be done on the React side of the world, I just view the world we came from as far less rosy.

gr__or··on Job descriptions should show a salary or salary range
I've done basically that but with auto-email reply and a short survey: https://gregor11.typeform.com/to/CjaodBIc (I call it my recruiter-shield)
gr__or··on Berlin rent cap overturned by Germany's top court
Berliner here with a fairly leftie friend group, but decently interested in market dynamics:

There was money to be made in housing 10 years ago when rents were half of what they are today. What changed is the demand / supply ratio. I guess the laissez-faire logic would be that higher demand drives up the prices so much that investors can't help themselves but build more. Do we have empirical data from other cities that show that relationship? I.e. as rental prices rise so does private investment in housing? And also the opposite, how much do rent caps like the one in Berlin influence housing investment longer-term? I'd argue our Berlinian experiment did not get a real chance to run, given the expectations around it were that the courts might over-turn it, as they did.

From my understanding and from I read over on freakonomics a lot of the assumptions about rent caps come from single neighborhoods in NY which I'd argue does not generalize.

gr__or··on ISO 8601: a better date format
> a lesser-known date format called ISO 8601

is he being ironic? One of the things I love most about 8601 is it being supported by basically every* std lib (and definitely every library working with dates)

* JS, Python, Ruby, PostgreSQL,...

gr__or··on European Citizen's Initiative for Unconditional Basic Income
> Secondly it creates dependency between receivers and givers. I'd rather empower workers collectively than make people dependent on welfare. This, in contrast to UBI is I think viable across the spectrum and actually what people want.

This one I don't get. Empowering workers, in leftie politics, usually means some version of labor, wage, union,... protection laws (not saying this wrong, I'm myself seeped in leftisms). Thus creating a dependency to the state to protect one's work from the ruthless.

Where is the principal difference between being dependent on the state for cash vs protection?

Wrt the larger UBI point: I see it more as an opportunity for people to find deeper, more personally meaningful, work. My inner optimist hopes people would seek out more fulfilling, self-determined, work. My inner pessimist sees the Wall-E thing, though I would not call it underpinning. My inner realist would like to see more studies.

gr__or··on Google Maps' Moat Is Evaporating
I so so much appreciate this article. Google's maps dominance has been frustrating me, both as a user who wants innovation, and as a developer who wants affordable access. Very excited to read about these combined efforts (and, like you said, anti-tragedies-of-the-commons)

Thank you!

gr__or··on Tokio 1.0 – async runtime for Rust
Fair distinction, thanks for making it! My async use cases so far have been in a realm where everything modeled was everything I cared about, and those specifics of the runtime didn't become relevant. I wanted to refer to your example because I do see how that is a thing that needs to be explicitly modeled.

I'd be curious to hear about examples where the runtime did or would surprise you!

gr__or··on Tokio 1.0 – async runtime for Rust
I think the pain you went through with Java is not quite compareable, as the described havoc (and I do really feel your pain here) would not happen like that in Rust, for the reason that you would have to model these things more explicitly. In detail, it sounds like a cascade of implicit null-ness (aka the billion dollar mistake) and weak references. In Rust null (called None) is explicit through the Option type and the Weak type returns exactly that.

More to your point, as I think you were using this as an analogy for the perils of giving up control: Rust's explicitness should entail all the semantics of your program, and hence async Rust makes you model out all the potentially-racy async interactions with Arc, Mutex, etc. The same middle-man (the borrow checker) who watches over your regular ol' sync code's memory-correctness, now expects extra constraints to be upheld for values passing through async-boundaries. And for me the whole point of Rust is that this correctness proof will do a better job than any person could, for any moderately sized program. So this is middle man you'd want between you and the CPU.

That said, your async runtime could definitely do shenanigans that screw up your nicely modeled program, but that would be a bug in that specific runtime. I haven't deeply read Tokio's source and even if I did, making a qualified judgment about it is beyond me.

gr__or··on Write code. Not too much. Mostly functions.
Phew, I remembered tweeting that comment (https://twitter.com/watware/status/1323610182560161792) and was about to flame this post for lack of attribution. Glad I read on! Good stuff.
gr__or··on Ask HN: How do you find and evaluate open source modules for production use?
1. Google for different keywords describing your use case. If you've exhausted Google, search your Lang's package repository directly (Google tends to only show a couple results per page)

2. Is it solving your problem?

2. Check low resolution metrics like stars, open issues, size or recency of commits. Weigh that against your use case. For example if it's a niche, stars matter less. If the requirements are well defined and in a slow moving space, recency matters less. Etc. If it's doing something big and fundamental for you, make sure that it has enough contributors who are likely to not suddenly stop contributing (preferably businesses whose success is tied to it).

3. Read the docs, examples/demos, tests etc. Find posts by people applying it for similar use cases. Does it solve your particular problem well (incidental vs inherent complexity)? Read through some of its GitHub issues to get a feel for the maturity, usability and support of the project.

4. Loop through those steps until you find something that holds up. If everything speaks for it except for longevity concerns start reading the code and consider whether you'd be able to contribute to it.

gr__or··on Mozilla lays off 70
Afaik companies can't ask for donations in the US.
gr__or··on Mozilla lays off 70
They did clearly state "given the context". The context being someone who, supposedly (I don't know, that was before my time and outside of my circles), had those traits.

So I think saying "by thinking anyone with differing opinions is Xist" is a mischaracterization of what was expressed originally.

gr__or··on Sanders to propose canceling entire $1.6T in US student loan debt
I don't think this slippery slope style reasoning captures interesting disagreement. Imo we should look at the majority of cases and not get lost in edge cases. Which category does what you describe fall into? My intuition says the latter.
gr__or··on Virtual DOM is pure overhead (2018)
I wrote about this a while ago, and now I wonder whether I read this post at some point in the past. Anyway, here it is:

https://dflate.io/svelte-react-reconciliation

gr__or··on Vanishing Violence
Number 3, please. A world in which there's other ways to give back then selling out your privacy, thereby having great choice and privacy simultaneously. I know, I'm naive.
gr__or··on Ask HN: Is it just me, or is CSS too damn hard?
Could you give some examples of how specifically layouting is solved more elegantly in these systems? I don't have too much experience outside of the web and I'm certainly not enthusiastic about layouting in CSS (though with flex & grid it certainly isn't as bad anymore).
gr__or··on Our Software Dependency Problem
> that suggests that the standard for what constitutes a valuable quantity of functionality is 7.5X lower in the JS community.

Err, does it? The first thing this suggests is that the JS community is 7.5x larger (true for Ruby, even larger factor for Perl and not true for Pyhthon [1]). The second thing this suggests to me is that npm is X times more usable than those languages package managers, which from my experience true for Python (not for Ruby though, dunno about Perl).

1 - https://insights.stackoverflow.com/survey/2018/#technology

← PreviousPage 4 of 6Next →