HNHacker News
TopNewBestAskShowJobs

gyanreyer

174 karma · joined May 5, 2023

submissionscomments
gyanreyer··on Ask HN: Share your personal website
https://geyer.dev
gyanreyer··on A Texas "moth man" photographed 550 species in his own yard
I just saw an Ailanthus Webworm moth this morning in Michigan and was struck by how different it looked from most insects I see here. They're native to the south but have apparently been starting to adapt to colder conditions and move further north thanks to the massive explosion of the horribly invasive Tree of Heaven, which is somehow still legal for nurseries to sell even though it is extremely aggressive and is a host for Spotted Lanternflies.

Anyways, since I've gotten into native plant gardening I have gained a huge appreciation for insects. You can find some really amazing things in your own yard if you pay attention.

gyanreyer··on The upcoming iterator design for Go 1.23
I like iterators in JavaScript well enough. I understand the syntax of this just fine, it doesn't seem that ridiculous. It's definitely a little less simple than Go usually tends to be, but it's certainly not impenetrable. And you don't have to use it. I personally probably won't use it but I don't care that it's there.
gyanreyer··on Cancel Adobe if you are a creative under NDA with your clients
I really really like Affinity. I'm not a pro but they offer all of the tools I would possibly need in a much better designed package compared to open source alternatives like gimp. Adobe has more bells and whistles like AI, but I don't need that. And I'm very happy to support their no-subscription model, it's very refreshing.
gyanreyer··on Engineers find a new way to convert carbon dioxide into useful products
If the "unburning" could be done using zero-emission renewable energy it seems like that would the best or only way to effectively remove excess CO2. I'm skeptical that there will ever be a true magic bullet carbon capture technology like that though.
gyanreyer··on Show HN: Pages CMS – A CMS for GitHub
I have been wanting a simple CMS which is effectively just a layer on top of GitHub for a while, I took a stab at it a couple years ago but bounced off so I'm very excited to see this! Definitely going to give it a try.
gyanreyer··on Detroit wants to be the first big American city to tax land value
Yes, downtown Detroit is a wasteland of parking lots. Some incredibly beautiful old buildings have been demolished and turned into vacant lots, it's a real shame. Downtown really needs more development and I think this is a great way to force the issue. When I lived downtown, I had to drive 20 minutes to the suburbs for groceries. And now I have a house in the suburbs instead of Detroit because of that.
gyanreyer··on Close to 2k environmental activists killed over last decade
The autopsy found there wasn't gunpowder on their hands and protesters who were there claim that isn't what happened. Police lie all the time.
gyanreyer··on Texas just got closer to blackouts than it has since 2021. What happened?
I'm not from Texas so genuinely asking, is there hard proof that anyone specifically invested in power infrastructure because of bitcoin mines in a way they wouldn't have otherwise?
gyanreyer··on Making sense of React Server Components
The linting plugin is eslint-plugin-react-hooks[0], which enforces React's "rules of hooks"; it can detect when you access a value inside a React hook and will warn you that you should add it to your dependency array. It enforces some other rules here and there but that's the big one worth caring about the most. I would consider it essential for working with React hooks.

The only downside is that sometimes, the rule can end up being overly aggressive and tell you to add things which you explicitly don't want in your dependency array, but it's helpful probably 95+% of the time and not hard to opt out of or work around as needed.

[0] https://www.npmjs.com/package/eslint-plugin-react-hooks

gyanreyer··on Making sense of React Server Components
Agreed, everyone who complains about dependency arrays almost certainly hasn't used the linting rule. That being said, I'm not sure that an API is well-designed if the only way to use it effectively is by forcing you to even know there is an eslint plugin to begin with, and then once you do know that, that means now you're being forced to add eslint to your project whether you like it or not. And sometimes eslint just stops working for who knows what reason, I have a developer on my team who's constantly dealing with issues where his eslint/prettier setup isn't running correctly.
gyanreyer··on Climate Change Tracker
I think we have more than enough data points around the globe to say that the temperature increase is statistically significant. Rural USA is not the center of the world where all temperature measurements should be based on.
gyanreyer··on Show HN: XRss – RSS Reader and web stack demo
HTMX actually has a built-in way to show loading states. You just have to add a child element with the class "htmx-indicator" and HTMX will fade that element in while it's waiting for a response.
gyanreyer··on Not a single emperor penguin chick survived spring in parts of Antarctica
30% of the entire penguin population is a massive number though. That's tens, maybe hundreds of thousands of penguins affected. If we wait for a problem to have to affect more than 50% before we worry then it'll already be long past a lost cause.
gyanreyer··on Managed to death: How Canada turned its forests into a carbon bomb
When a forest burns down and regrows, it does so in a much more natural way than if humans just slap down some trees and nothing else and call it a day.
gyanreyer··on What dif­fer­enti­ates front-end frame­works
Well, JavaScript has no simple way to react to an assignment like count = count + 1 without introducing some magic between the code you write and the final code that runs in the browser. Svelte is only able to achieve that experience because it has a compilation step, but React does not; hence why setState() is necessary and why people argue it's more "just JavaScript" because the code you write is pretty much the final code that runs (aside from the transpilation necessary to convert JSX syntax into JS, but this doesn't alter the way that anything works).

This isn't to make any kind of judgement on either approach though, I personally really enjoy the DX that Svelte offers.

gyanreyer··on Ask HN: Python Serverless Functions?
Cloudflare has an example project where you can write a worker in python and have it transpiled to JavaScript, but that feels a little funky. https://github.com/cloudflare/python-worker-hello-world
gyanreyer··on Reddit.com appears to be having an outage
I was just looking at the documentation site for VSCode extensions and it was absolutely C R A W L I N G. As much as I love to clown on VSCode being slow, it definitely feels like I'm starting to see a pattern of degraded performance for a lot of sites.
gyanreyer··on JPEG XL against AVIF tested on ImageEngine
One of the biggest things I'm interested in is encode times. I have a static site where I automatically optimize and create a webp version of every image at build time and it's always very fast. When I tried adding avif into the mix as well, build times absolutely skyrocketed. Obviously I was able to resolve that problem with caching, but it just all becomes much more of a pain to manage.
gyanreyer··on Tiny Awards for Small Websites
What value is this comment adding to the discussion?