I think a better word for this is
isolate instead of
avoid. State and side effects will happen in the application. The idea is to ask how do we isolate and control the state to minimize the software complexity. Separate the side effects from pure functions (stateless functional components).
Yes, without a
where clause this query will update all rows. But for that specific context, we only had one row in the table.
But I think I will update the post to have the
where clause as an adition, and explain it.