8

I have a custom hook that I'm working on to make a fetch request to an api, and it is causing infinite re-renders. I'm struggling a bit to understand how the various parts of my application fit together -- in particular, my store (zustand) is using a middleware (immer) for immutable state, and I'm not certain why its drafting system isn't protecting me from changes in object identity. What tools can I use to try to track down what I've gotten wrong? I can't really leave the web page open very long because I'm making 1000s of requests per minute to the api I'm working against, so the Chrome dev tools are out, and the static analysis tools I set up (typescript and eslint) haven't identified any errors, like missing a dependency from the useEffect hook dependency array.

2
2

My Sounders are at three; where’s your team?

105
24
13

Why .7 and not .5? The world may never know.

1

ROCKS ARE IMMUTABLE

Rocks are immutable and hold No scope for self-aggrandizement, Each well-worn pebble churned and rolled Suffers a like predicament.

Gripped in what mesh of causal schemes Endures each casual atom what When one perchanced electron screams A stuttering signal, and is not?

Grant then a gamete, grant a score By crabbed environment beset, And man the instrument, no more, And where’s the credit? Where the debt?

Or grant pure chaos, flickering chance, And life’s defection near and soon, Then mark the shock of circumstance, The day from solid darkness hewn — Rock is a shivering miracle, Betrayed in sunlight, gleaming wet, And love cries out in chlorophyll To welcome truth in petals yet!

— From These Our Matins (1930) by Michael Roberts.

20
39
9

I'm definitely most interested in trying out the 50/50 shots

50/50 shot: A shot featuring two ingredients measured in equal parts. Damon Boelte kick-started the trend with the Hard Start (Fernet-Branca and Branca Menta) at New York’s Grand Army, and it’s since evolved to cover just about every imaginable combination of booze and bitter, including the aforementioned Ferrari, M&M (mezcal and Montenegro), Bro-Nar (bourbon and Cynar) and the Maserati (mezcal and Ramazzotti).

0
20
The Fall Guy | Everything (www.youtube.com)
[-] CombatWombatEsq@lemmy.world 55 points 4 months ago

Growing up, I was Mormon (though I no longer am), and I served my mission in Russia. I was serving in a little town outside Moscow called Lobyna (meaning "the place of the skull"), and it was mid-winter and my companion (that's what the other missionary in a pair is called) and I were sign-boarding, handing out free Books of Mormon. I noticed that there was a man who had walked by our station a couple of times, dressed kinda bedraggled -- I noticed him because he wasn't wearing any shoes -- who seemed interested in talking but shy about starting a conversation. I offered him a copy of the book, and struck up a reasonably pleasant conversation that resulted in my inviting him to take the discussions by meeting with us in the church building.

Our companionship lived on the second floor of the church building, which was a converted dacha (a Russian summer home), and then the first floor and half of the second floor was reserved for church activities. We scheduled our meeting with this investigator (I don't remember his name, it's been a few years) to be right after morning study, so we didn't have to leave the house and come back.

Come the day of, and I go downstairs to the kitchen to make breakfast, and lo and behold, our new investigator is sitting in the middle of the biggest room (the chapel/former living room) on a folding chair just waiting. I called down my companion, and we did our discussion earlier than expected, which was fine, and then did morning study afterwards. I don't remember a lot of that first meeting, other than he seemed like a reasonable Russian Orthodox member who was chatting with American missionaries. What I do remember is that when I went to let the investigator out, I had to unbolt both front doors to do it.

After he'd left, I asked my companion if next time he'd please tell me when he lets people into our house, to which he replied that he didn't let the investigator in, he just assumed I'd done it. This was when I started to get concerned. You see, Russian doors aren't like American doors. Generally speaking, there are two doors -- a wooden door with a lock like I'm used to, and then a "fire door", which is like an inch and a half thick steel with five deadbolts into the frame (three into the wall, and one into each of the floor and ceiling). This isn't a "tee-hee" kinda situation to open up the door to get in, you would have to do major structural damage to enter through a door. And it was mid-winter (like -30 - -40 degrees mid-winter), so it wasn't like we forgot and left a window open or something. We resolved to be extra certain to lock up the house next time.

Which is why it was so surprising when, a few days later, he was sitting in the middle of the chapel-living-room waiting for our appointment an hour early again. We had checked all the bolts and windows and everything, yet there he was. And this time, the discussion went thoroughly off the rails. He was telling us about how the spirits of the dead congregate behind a comet that circles the solar system, and that they're awaiting the confluence of some celestial bodies and would get free and so on. We wrapped up the conversation and did not invite him back, and never saw him again.

And sure as shootin', when we checked the doors and windows when he left, they were all still locked and barred. It's been 15 years and I still don't know how he got into our house.

[-] CombatWombatEsq@lemmy.world 35 points 6 months ago

All in all, car bloat has increased vehicle prices while making autos more destructive to human life, natural ecosystems, and pavement alike. Because the full societal costs of crashes, pollution, and road repairs are not borne by owners of SUVs and trucks, every American is effectively subsidizing car bloat. Even if they drive a sedan. Even if they don’t own a car at all.

[-] CombatWombatEsq@lemmy.world 35 points 9 months ago

I'm from Seattle, Washington, and it's illegal to pretend your parents are rich here. Not sure why, though 🤷‍♂️

[-] CombatWombatEsq@lemmy.world 98 points 10 months ago

Me, developing a headless component library:

[-] CombatWombatEsq@lemmy.world 29 points 10 months ago

I would absolutely not use the word "superficial" to describe Barbie, and feel fairly confident you haven't seen the movie given that you've chosen it.

[-] CombatWombatEsq@lemmy.world 87 points 10 months ago* (last edited 10 months ago)

I dunno about taboo, but I think there'll be a lot fewer "monosexual" (homo/hetero people) and a lot more bi/pan people. I think we're seeing an increase already in acceptance that most people have at least a few people of their non-preferred gender they're attracted to, and those kinds of mentalities will permeate to a mushy continuum of sexuality, rather than hard categories.

[-] CombatWombatEsq@lemmy.world 31 points 11 months ago

I think both things can be true -- we have a superior replacement, so Reddit is now of considerable lower value, but also Reddit was super important to me and I'm still deeply invested in it's "demise".

I certainly think that reports of Reddit's death are greatly exaggerated and also would like to see less Reddit-related content, but I think there's space for people who were avid Redditors to have become true believers in the fediverse.

[-] CombatWombatEsq@lemmy.world 68 points 11 months ago

We're working on it! Here's the spec-in-progress: https://www.w3.org/TR/did-core/

These things take time. We'll get there.

[-] CombatWombatEsq@lemmy.world 40 points 11 months ago

Kinda. What you're referring to is "decompilation", which is the process of taking the output of a compiler and trying to reverse-engineer the code that produced it. But decompiled code is really hard to read and modify, because it isn't what humans wrote, it's what the compiler translated it into, and that can have some unexpected changes than are mostly irreversible. And, since it's closed source, if you somehow manage to make a change, you can't re-release it -- you don't have the license to do so.

With open source, you see the same code as the maintainers, so it has the high-level programming concepts and good variable names, and you have permissions to fork and release your own version.

[-] CombatWombatEsq@lemmy.world 77 points 11 months ago

The answer is yes! It's called FunkWhale.

I doubt it'll be what you're imagining, though, because of the licensing requirements for music hosted in a decentralized system. In particular, everything in the fediverse is public, so all music and podcasts hosted in the fediverse has to be licensed under the creative commons, and can't be gated to paying customers, which does not include most music or podcasts.

[-] CombatWombatEsq@lemmy.world 30 points 11 months ago

Maybe it's time to socialize social media? All these activitypub-based projects are open source, open governance, and many of them are receiving government grants already, so let's just pay the server costs via taxpayer money and call it a public service.

[-] CombatWombatEsq@lemmy.world 134 points 11 months ago

I'm supposed to stop using Lemmy because some random user with no evidence said that one of the admins went to a meeting?

view more: next ›

CombatWombatEsq

joined 11 months ago
MODERATOR OF