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.
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.
> 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?
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?
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...
Who's intended pattern? Where is this stated as being the "right" way to use JWTs?
I'm seeing a lot of claims about the intent behind JWTs but frankly I think it's because people are skipping over having a fundamental understanding about WHAT JWTs are and instead are cargo culting on what they believe they should be.
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.
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.
I remember FM radio in LA in the early 70s, there weren't really a lot of mediocre songs in the playlists. It wasn't just Classic Rock as we refer to it now, but a bunch of BB King and other blues artists, along with some of what you'd today call Country Rock.
But the "Country" Rock was Allman Brothers, CCR, The Band, and later ZZ Top, etc. The Blues were BB King, John Mayall, Hendricks, etc. The rock was Rolling Stones, Led Zeppelin, The Who, on and on. There was just so much that you didn't really need to fill out the playlists. And all of these bands were cranking out an Album a year in that 5-6 year period.
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)
I do agree and I also think that bands played to their listeners more rather than being employees of their producers like was more common earlier in the 60s. The bands in the later 60s played their music and then found their fanship, discovering their fame as opposed to having it designed in by the producers.
And as you mention, people used to hang out and listen to records together as a social activity. People cared about what they thought of as truth in music, so you would have arguments about Beck vs. Clapton vs. Hendricks from various standpoints, not just pure talent but honesty, faith to the material, etc.
Not to say that doesn’t happen today, people are still seeking that just as much, it’s just that the industry has changed to relagate music into just another form of “content” to market for ad revenue.
It was 4 years from their first records of blues influenced pop to Sgt Peppers, then 3 more years till they spun apart. There’s a density of creation and artistic evolution there that is incredibly rare.
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.
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.
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.
The argument I’m making is that there is a cynical thread in the politics around COVID in schools in the US driven by teachers’ unions. This leads people to make these self contradictory arguments.
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.
> 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.
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.