HackerTrans
TopNewTrendsCommentsPastAskShowJobs

DavidSharff

no profile record

comments

DavidSharff
·4 lata temu·discuss
While there are areas where my functional convictions have greatly diminished, my mid career zeal had the tremendous benefit of illuminating new architecture and data design principles.

Storing data as discreet changes and relying on pure function selectors to calculate values is wonderful.

It's not always a viable approach at scale (at least not for my ability in certain circumstances) but, when it is, testing is a breeze and I love being able to debug forward/backward in time with consistent results guaranteed.
DavidSharff
·4 lata temu·discuss
It would have been a beautiful "footprints in the sand" moment if you had turned off the ignition and carried the motorcycle those last hundred feet for the photo.
DavidSharff
·4 lata temu·discuss
> I gave up after a paragraph or two. It looked like it was going to moan about people trying to have fun and do some self care. I don’t have time for that.

The author had quite the opposite conclusion:

> The Great Regression isn’t really a regression at all. It’s a sign of resilience in the face of profound adversity.

Just as I was fading a few paragraphs in, one of the straw men (IMHO) thrown out caught my eye.

How had I not heard of Alexis de Tocqueville's 1835 critique, Democracy in America?

If you want to wrestle with someone making a much better form of the argument you (understandably) thought was in the article, check it out: https://xroads.virginia.edu/~Hyper/DETOC/ch4_06.htm

Honestly, you and Tocqueville are saying something very similar at the core. A polite society has a known exploit: not behaving politely. The exploit is used by those seeking to amass power and influence.

The result, he posits:

> It would be like the authority of a parent if, like that authority, its object was to prepare men for manhood; but it seeks, on the contrary, to keep them in perpetual childhood: it is well content that the people should rejoice, provided they think of nothing but rejoicing. For their happiness such a government willingly labors, but it chooses to be the sole agent and the only arbiter of that happiness; it provides for their security, foresees and supplies their necessities, facilitates their pleasures, manages their principal concerns, directs their industry, regulates the descent of property, and subdivides their inheritances: what remains, but to spare them all the care of thinking and all the trouble of living?
DavidSharff
·4 lata temu·discuss
My perspective is that I had recently realized that I didn't have a great justification for having used JWTs in my last two projects (and worried I had been part of a cargo cult myself). Truly.

I can't see their value against a bearer token + session tracking on the server for most cases (e.g. it won't be a huge performance hit to do a lookup of some sort on each request).

The two apps I'm referring to have a few thousand users who only make occasional requests.

I think a lot of apps fall into this broad category and I don't see what extra value JWT is providing. Encoding user data is pretty convenient (though more opaque) but if you want to be able to ad-hoc invalidate them you need refresh tokens or a session list. Not only does that re-introduce needing to do a sort of lookup and server user tracking, the encoded data on the token is no longer a positive, since you bifurcated knowledge of the user (token + list), and all its data would be more discoverable by including it where you are now tracking sessions anyways.

Help me out if I'm missing something. My mind is open.
DavidSharff
·4 lata temu·discuss
You can track JWTs on the server, via a sessionId or whatever you wish, it just breaks the intended pattern. If you have to do a lookup on each request (necessary to invalidate the token imperatively) your JWT is no longer stateless which is a core tenet of the JWT approach.

It'd be like building a React app and calling getElementById(id) to update DOM values. You _can_ do it but...
DavidSharff
·4 lata temu·discuss
And my favorite album, Abbey Road, was composed right before the crash. The concluding medley may only exist because they were spinning out.

RIP George Martin, you gave us much.
DavidSharff
·4 lata temu·discuss
Fascinating.

Do you think (remember) that the incentives for bands were different? I know people listened to more full albums because it'd be tedious otherwise, but was consuming music more of a dedicated activity than it is today?

If so, with record sales being viable income streams, it'd make sense why it'd optimize for more varied, blended, complex, and interesting listens (indexing on FM play for comparison; we're awash with incredible music elsewhere).

I enjoy some music for accompaniment or sing alongs, and then some as a captivating experience (like a movie or even more so a roller coaster).

The blues, jazz, and fusion scenes were vibrant as well and had the same _music as activity_ feature distinct from a dance floor. The audience is expected to actively respond mid song to leads and fills that were moving.

(I know I riffed on my own question but it's not intended to be rhetorical)
DavidSharff
·4 lata temu·discuss
Love it.

I feel similarly about the quality (don't know what else to call it) of the many songs I listen to from that time, compared to similarly popular songs over the past decades.

Though for me they're also nostalgic in a way which clouds my judgement: I was introduced to vast amounts by my dad in the 90s.

I do think there's some selection bias when we sample tunes that already ran through the filter of their time and 50 to 60 more years of collective filtering.

One group I still didn't know much about and I think many people still don't (paradoxically so) was the Beatles.

When I was 18, a friend lent me every album from Revolver through Abbey Road.

If you haven't listed to those all the way through, you may be in for a treat.

Also, if you want to hear an incredible modern artist's own version of a protest song, check out Sturgill Simpson's Sea Stories. Dude was in the navy and wrote it as part of a concept album dedicated to giving his first child life advice.
DavidSharff
·4 lata temu·discuss
I have similar thoughts but they can be broken into two distinct feelings:

Ideally everyone would routinely have their attention called to the sword of Damocles, or at least listen to Dan Carlin's Destroyer of World's once every few years. So I should take what I can get from the NYC ad...but having one produced seemingly apropos of nothing with the tone of an Ad Council billboard creeps me out too.

I also want people to be respectfully fearful but fear populations who are afraid.

I'm just going to reread Slaughter House Five, cloak myself in cynical realism, and then spend time outdoors while I enjoy the back 9 of life.

So it goes
DavidSharff
·4 lata temu·discuss
It may seem so boring at first because it is so real. The depth of insight into the characters and culture is what makes it so moving as the plot picks up.

Another perspective shift that makes it more enjoyable: it's a time machine. I wouldn't care for that level of detail in a modern American context or even a fantasy, but a distinct culture nearly 200 years ago? Sign me up.

Then again, if you don't dig it no shame in moving on. There are more books than there is time to read them.
DavidSharff
·4 lata temu·discuss
I think his point's logic is as follows:

If you don't think the default school is important, why would you care if a kid switched?

--

If the response was that it's too expensive to allow them to switch that'd be logical, but I don't think that's the common response. Tbf I am not really aware of people matching the initial premise either.

Edit: formatting
DavidSharff
·4 lata temu·discuss
I agree about the contradictions and hypocrisy but the answer can be much more pragmatic:

> As a non-US, non-Chinese citizen, is there something that makes TikTok espionage and Facebook not? Or is it just "china scary"?

There's problems with US big tech and TikTok but the case against TikTok is easier to push through.

There's nothing wrong with patching the first of many holes in your roof and starting with the one easiest to get to.

---------

My primary emotional and ethical driver is to point out my own government (the US) not living up to its marketing material, but it doesn't mean I wouldn't support eliminating a vector for another (openly autocratic) government to meddle with my country as well.

Edit: distinguish my reply to prior comment from my ramblings about my reply.
DavidSharff
·4 lata temu·discuss
> Overcomplicating things leads to overcomplicating things.

This would be the most efficient title, subtitle, and entire contents of most posts about programming principles.

However, each reader has to have a similar enough perspective, background, and experience to understand and apply it. In that sense, the trend line measuring the value of commenting about comments about random blog posts indeed indicates wasted time, but hopefully it's a local minima.

My pithy corollary to your helpful tautology is a quote from Tommy Angelo that's stuck with me since my poker days: "The decisions that trouble us most are the ones that matter least."

Decisions are necessarily difficult to make when the expected value of either outcome are similar. We waste an awful lot of time on choices that could have been made just as well with a coin flip.

So there you go world: two quotes that are generally useful about generalities that are locked, loaded, and ready to shoot you in the foot when misapplied.

Edit: formatting improvement.
DavidSharff
·4 lata temu·discuss
I appreciated their synthesis but I think some general recommendations would have also been useful for the public (imperfect but helpful):

1. Ask primary care physician for a lab referral or purchase a nutrient deficiency test from a straight to consumer lab (cost was lower than I expected at ~$100-$200).

2. Google whether nutrient is actually bioavailable when taken as a supplement.

3. Use independent tests to ascertain brand quality for specific supplement or overall trustworthiness (labdoor is the one I'm familiar with).
DavidSharff
·4 lata temu·discuss
Oh if only the fallout stopped there.

The proliferation of these sources have torpedoed my Google effectiveness.

Not only do these sources amplify themselves, they are of near necessity targeted at simple use cases. The result? Google has ample popular material filled with my relevant keywords but void of any usefulness to anyone not just getting started. As it happens, the people with the most questions _are_ just getting started, and do find the results relevant pushing content on the margins further down the list.

Worse still, with Google's increased focus on natural language processing, their seeming approach of "what you're really asking is..." makes loose queries even more difficult. Definitionally the most common questions aren't edge cases, at least not the single one you're interested in.

After all these years, I think I need to retrain myself on how to Google (distinct keywords no longer cut it unless I have a sequence where I can look for an exact match), and recently started falling back to other search engines with some success.

Edit: grammar (believe it or not)