Better HN
topnewbestaskshowjobs
Log inSign up

bennettdams

40 karma · joined Jan 25, 2021 (5y ago) · 14 submissions

Submissions

1.

Caching mechanisms in Next.js (new App Router)(nextjs.org ↗)

1 points · by bennettdams · 3y ago · discuss

2.

Show HN: Summora – Everything, in summary(summora.com ↗)

1 points · by bennettdams · 3y ago · discuss

comment 3y ago · link · parent

It is naive to believe that these 86%, assuming the numbers are true, have any impact on the food production at all.

Of all the cropland we have, 57% is used to produce human food and 43% is used to produce animal food.

https://ourworldindata.org/land-use-diets#more-plant-based-d...

The whole point is that you need way more crops in general to "produce" the same amount of calories & proteins. That's because feeding the animals with crops instead of eating them is highly inefficient in comparison to eating them directly. "As an example: beef has an energy efficiency of about 2%. This means that for every 100 kilocalories you feed a cow, you only get 2 kilocalories of beef back."

https://ourworldindata.org/land-use-diets#livestock-waste-a-...

With how much meat is eaten right now, there is just no way we have enough grazing land to produce enough meat. 99% of meat comes from factory farms. [1] These animals are always fed with crops, so there will always be land usage to product food for animals. And it is way more inefficient.

[1]: https://www.livekindly.com/99-animal-products-factory-farms/

comment 3y ago · link · parent

You're quoting a literal farming foundation, so here is a neutral source:

https://ourworldindata.org/land-use#half-of-the-world-s-habi...

"If we combine pastures used for grazing with land used to grow crops for animal feed, livestock accounts for 77% of global farming land. Of all the land we use for agriculture, 77% of it is used for livestock."

These 77% are only responsible for 18% of the produced calories and 37% of the produced proteins.

So, if you leave out water consumption and most importantly animal walfare, eating meat is the worst thing you can to for the environment (when talking about food).

5.

A review of my time at Remix(kentcdodds.com ↗)

3 points · by bennettdams · 4y ago · discuss

comment 4y ago · link · parent

Does someone know why the counter for this issue is at "70", but the repo only shows "21" issues in total? Maybe there are deleted issues that are not part of the total counter?

https://github.com/preactjs/signals/issues?q=is%3Aissue

comment 4y ago · link · parent

If you look at the land usage for animal products and compare it to their calorie & protein supply, the story gets even worse.

In short: Of all agricultural land, ~77% is used for meat/dairy production. This 77% are responsible for only 18% of the calories and 37% of proteins, the rest comes from the plants in our diet.

The numbers may vary a bit, but the scale stays the same. It's ridiculous.

https://u4d2z7k9.rocketcdn.me/wp-content/uploads/2021/03/Glo...

https://earth.org/data_visualization/adopting-a-plant-based-...

https://ourworldindata.org/land-use-diets#more-plant-based-d...

comment 4y ago · link · parent

I'm suprised no one has mentioned "exurb1a", by far my most favorite channel on YouTube.

The videos are always thought-provoking, intelligent and hilarious as well.

I can recommend every single video of him.

https://www.youtube.com/channel/UCimiUgDLbi6P17BdaCZpVbg

comment 4y ago · link · parent

I can recommend giving your component name (not file name) some identifier (like an underscore), so using VS Code's "Symbols" via command palette makes it easy to find and open them.

Screenshots: https://twitter.com/BennettDams/status/1529051702351085568

comment 4y ago · link · parent

Facebook stopped actively maintaining Jest months (years?) ago, so this is a good move for the community.

See this old HN thread:

https://news.ycombinator.com/item?id=30168241

..and the comment from the "only" remaining maintainer:

https://github.com/facebook/jest/pull/11529#issuecomment-102...

comment 4y ago · link · parent

Isn't it ironic that even the writers of this article don't follow these rules in the examples on that page?

There is "Mistake 3: Not Enabling Keepalive Connections to Upstream Servers", where it says:

    In the location{} block that forwards requests to an upstream group, include the following directives along with the proxy_pass directive:

    proxy_http_version 1.1;
    proxy_set_header   "Connection" "";
Then, at "Mistake 10: Not Taking Advantage of Upstream Groups", the "location" block does not include these two directives, even though the "upstream" block contains a "keepalive" directive.

12.

Automatic (Tailwind) Class Sorting with Prettier(tailwindcss.com ↗)

2 points · by bennettdams · 4y ago · discuss

comment 5y ago · link · parent

> are already searching for the wrong tool from the beginning

Agreed, that's why I wrote "realizing" and not "having". Some devs use Redux as a hammer when they actually need a screwdriver - they just don't know better.

comment 5y ago · link · parent

The combination of React's native context with hooks and realizing that a lot of your state is just "server cache" data (which can be handled "better" than using Redux) is probably enough for 95% of React applications.

Kent C. Dodds has a great article covering both topics:

https://kentcdodds.com/blog/application-state-management-wit...