Better HN
topnewbestaskshowjobs
Log inSign up

gyanreyer

174 karma · joined May 5, 2023 (3y ago) · 26 submissions

Submissions

comment 10mo ago · link · parent

https://geyer.dev

2.

Some flag emojis aren’t working on Chrome on Windows(geyer.dev ↗)

288 points · by gyanreyer · 1y ago · 315 comments

3.

Using almost pure CSS to make fancy scroll-driven image sequence animations(geyer.dev ↗)

1 points · by gyanreyer · 1y ago · discuss

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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?

comment 3y ago · link · parent

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

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

19.

Netlify is no longer sponsoring full-time development on 11ty(zachleat.com ↗)

7 points · by gyanreyer · 3y ago · discuss

comment 3y ago · link · parent

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

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

What value is this comment adding to the discussion?

24.

How AI-generated video is changing film(technologyreview.com ↗)

1 points · by gyanreyer · 3y ago · discuss