chris.stakutis@gmail.com

Special oddness with useState()/useEffect()

This is interesting/weird.  The following code does NOT work: const [refresh, setRefresh] = useState(10); useEffect(() => { setInterval(() => { console.log(“Timeout, refresh:”, refresh); setRefresh(refresh + 3); }, 1000); return list.unsubscribe; }, []); What happens is that each time the timer-interval goes off, the value of ‘refresh’ is still at 10. Why? The value goes to …

Special oddness with useState()/useEffect() Read More »

A different approach to data-sharing of server data/lists across components.

  I ran into a new challenge when I was refactoring and organizing code and components into smaller reusable pieces.  I ran into a case where HOC-like approaches wont work, but perhaps an Inheritance model will, and settled on a much different approach. Let’s discuss the use case.  Imagine your server holds a list of …

A different approach to data-sharing of server data/lists across components. Read More »

Some in-the-trenches tips/experiences with React/Jest (autotesting)

I love React, and mostly like Jest (and Jasmine and Java predecessors) but I will say: I spent a WAY MORE ENORMOUS time chasing simple debugging of jest scripts. Simple stuff. Why? I really dont know. It wasn’t designed for what I really want. It is designed for HUGE systems (like Citibank, Bank America, Amazon) …

Some in-the-trenches tips/experiences with React/Jest (autotesting) Read More »

AWS and PEM madness–ever lost or hurt your PEM file?

Yeah, we all have. What I went thru many of you (I hope!) wont…but ever faced that “Lose your PEM file and you’re dead” from AWS? Been there. Turns out, it is survivable. AND do you even know what the files mean? I did not. It happens. Sometimes you lose or trash your PEM file …

AWS and PEM madness–ever lost or hurt your PEM file? Read More »

The new age of trust: Is it tech-enabled?

I grew up a bit in a fear of theft and crime, even though I was in a nice upper-class suburban ‘hood. I think (checking) the world different is today. We *might* have more trust than before. And why? Technology. Like many new-age-work-reformers, our life is the road. Yes, work-from-home (WFH) really means: work “wherever” …

The new age of trust: Is it tech-enabled? Read More »

The TRANSPARENT beauty of technology (and, Boston Pops!)

We recently attended the Boston Pops Holiday concert; short: It was AMAZING (and always is!!!).   You simply sit there in the beauty of the theatre, the magic of the perfect music, and the wonder of a detailed theatrical experience.  And maybe, for a moment, you’re not thinking about technology (maybe). But in a very good …

The TRANSPARENT beauty of technology (and, Boston Pops!) Read More »