197 karma · joined December 23, 2022
Speaking as a Minnesotan, this is probably pretty fucking good for alfalfa prices, not so good for marginal wetlands.
The Kazakhstan government has attempted on multiple occasions to require trust of their own CA, and to proxy all traffic in and out of the country, and probably to enable snooping on all network activity at will.
Which, I mean, the US was doing prior to the widespread adoption of TLS.
The dynamic type system makes it easier to write testable code with less abstraction overhead.
Faster to train up junior devs.
That said, you * must * set up the codebase with appropriate guard rails or bad things can happen.
The project uses password auth and websockets, and I was starting to get bugs around refreshing things that I couldn't easily fix.
I had implemented this originally using a singleton pattern for an AuthService and a MessageBus for the websockets. I created those at app start and put them in a React Context.
Converting things to xstate is working great, but it's nearly a rewrite. The approach I had stashed state in a couple different places and had a bunch of callbacks passed around. Now all that state is just in the state machine's context, and what were methods turn into pure functions.
One thing that's a little non obvious is that if you have async operations (ie waiting for a new token) you probably want a state for waiting for that, where you invoke the async method followed by transitions on success and failure. The docs reflect this, but it's not narratively obvious.
Anyway, liking it so far. Changing to a state machine is going to hurt if your code already sucks.
Nothing like the realization you're stuck somewhere pointless that costs $1500 an hour.
Better yet, figure out where local bands are playing and watch people do their thing.
Still, it's interesting to me that Proxy is more valuable to author than private member variables. Curious about some common use cases.
Distributing this work ironically makes it much easier to centralize the authentication.
Like, Target does not compete with Amazon. They have a totally different home delivery model that is not in the same category of reliability or service.
It's annoying.
Like, there was a fifty fifty chance we made it out of the 1980's without nuking ourselves. Average person's ability to influence this? Zero. So, you know. Chill out and enjoy the consumer products while they're available.
Thank you.
I got to the part where he's describing Hispanics at the DMV and had to check if this was an HP Lovecraft story or something. Yikes
If the DMV sucks, and there's no republican party, maybe go complain to the Dems about it? I understand that decisions are being made are entirely within that party, because nobody likes the other guys. Maybe vote in the primary?
First junior dev job it's not as important because you just need to find something. After that you will want to be very careful to make sure the job has actual business impact, otherwise you are likely to end up in some kind of bullshit vanity project that only has to appear to work.