Remember: You might not need an Effect
Remember, always, immediately, push new updates to prod, specifically right before you go home at the end of the day.
That is what CI is for Commit Incident.
And CD is for Commit Disaster
We’ve all done it. …right?
I think most people have done, or been part of a team that did, something similar.
At least most of the engineers I’ve worked with have had similar stories from their past
Idk most teams I’ve worked with have either known better than to deploy anything at EOD or on a friday, or make heavy use of feature flags so any change that caused an issue just got swiftly rolled back. The ones that didn’t, I made it ABUNDANTLY clear that I won’t be available outside of work hours.
Maybe I haven’t been around the block enough or maybe I got lucky…
Probably depends on the type of company you work in. If it’s a long established one with lots of staff, they’ve probably realised this issue a long time ago and put plans in for it.
If it’s a more modern one that hired a bunch of solid old heads early on, they probably know better from the outset.
In both cases, someone, somewhere will have probably experienced it and said “never again”, so implemented (or improved) release procedures to ensure it doesn’t happen again
A lot of my teams have been on the younger side and for small companies/startups. So everyone either had a recent example to pull from or had first have experience
Bonus points if you do it the day before you leave for vacation!
Ah, a true chaos wizard, I see.
glad to know it’s not just me
Finally, a DDoS that even Cloudflare couldn’t stop
CloudFlare stopped the DDoS by destroying their own servers.
“I’ve won, but at what cost?”
I recently ran a session and wrote an internal blog post about why useEffect was a dangerous crutch that should be avoided wherever possible. This was due to recently experienced over-complicated logic and unexpected interaction bugs.
This is a little different but I still feel vindicated.
You are correct, useEffect can be dangerous if you don’t know exactly what you are doing. I would go so far as to say that most people use it incorrectly. This includes myself, I am not great at using React and end up using it in the wrong places, which according to a colleague, it should just be avoided if possible.
Clownflare staying true to its name.